-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathsetup.py
56 lines (48 loc) · 1.49 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
import os
import re
from setuptools import setup, find_packages
init_file_path = os.path.join(
os.path.dirname(__file__),
'helixswarm/__init__.py'
)
with open(init_file_path, encoding='utf-8') as f:
try:
version = re.findall(r"__version__ = '(.*)'", f.read())[0]
except IndexError:
raise RuntimeError('Unable to get package version')
with open('README.rst', encoding='utf-8') as f:
README = f.read()
NAME = 'helix-swarm'
setup_args = dict(
name=NAME,
version=version,
description='Python client for Perforce Helix Swarm (review board)',
long_description_content_type='text/x-rst',
long_description=README,
classifiers=[
'Programming Language :: Python',
'Programming Language :: Python :: 3',
'Programming Language :: Python :: 3.7',
'Programming Language :: Python :: 3.8',
'Programming Language :: Python :: 3.9',
'Programming Language :: Python :: 3.10',
'Programming Language :: Python :: 3.11',
],
license='MIT',
packages=find_packages(),
package_data={'helixswarm': ['*']},
author='Petr Belskiy',
keywords=['helix', 'swarm', 'swarm review', 'perforce helix swarm'],
url='https://github.com/pbelskiy/helix-swarm',
download_url='https://pypi.org/project/' + NAME
)
install_requires = [
'aiohttp>=3.6.2,<4',
'requests>=2.24.0,<3.0.0',
'urllib3>=1.26,<3',
]
setup(
install_requires=install_requires,
python_requires='>=3.7',
**setup_args
)