-
Notifications
You must be signed in to change notification settings - Fork 1
/
setup.py
56 lines (49 loc) · 1.42 KB
/
setup.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
#!/usr/bin/env python
from pathlib import Path
import re
from setuptools import setup, find_packages
import shutil
import sys
def read(*parts):
return Path(__file__).parent.joinpath(*parts).read_text()
def find_version(*parts):
vers_file = read(*parts)
match = re.search(r'^__version__ = "(\d+\.\d+\.\d+)"', vers_file, re.M)
if match is not None:
return match.group(1)
raise RuntimeError("Unable to find version string.")
setup(
name="Redmine-zulip",
version=find_version("redmine_zulip", "__init__.py"),
author="Thomas Michelat",
author_email="[email protected]",
maintainer="Thomas Michelat",
url="",
description=("Publish Redmine issues to Zulip"),
long_description=read("README.md"),
license="BSD-3-Clause",
entry_points={
"console_scripts": [
"redmine-zulip-publisher = redmine_zulip.redmine:main",
],
},
python_requires='>=3.7',
install_requires=[
'atoma',
'dataset',
'html2text',
'loguru',
'python-redmine>=2.3.0',
'toml',
'zulip>=0.7.1',
],
packages=find_packages(),
classifiers=[
'Development Status :: 3 - Alpha',
'Environment :: Console',
'License :: OSI Approved :: BSD License',
'Operating System :: POSIX :: Linux',
'Programming Language :: Python :: 3.7',
'Programming Language :: Python :: 3.8',
]
)