-
Notifications
You must be signed in to change notification settings - Fork 7
/
Copy pathsetup.py
53 lines (46 loc) · 1.43 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
import os
import re
from setuptools import setup
init_file_path = os.path.join(
os.path.dirname(__file__),
'aiojenkins/__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()
setup_args = dict(
name='aiojenkins',
version=version,
description='Asynchronous library of Jenkins API based on aiohttp',
long_description_content_type='text/x-rst',
long_description=README,
classifiers=[
'Programming Language :: Python',
'Programming Language :: Python :: 3',
'Programming Language :: Python :: 3.8',
'Programming Language :: Python :: 3.9',
'Programming Language :: Python :: 3.10',
'Programming Language :: Python :: 3.11',
'Programming Language :: Python :: 3.12',
],
license='MIT',
packages=['aiojenkins'],
package_data={
'': ['py.typed', '*.pyi'],
},
author='Petr Belskiy',
keywords=['aiojenkins', 'async jenkins api'],
url='https://github.com/pbelskiy/aiojenkins',
download_url='https://pypi.org/project/aiojenkins'
)
install_requires = [
'aiohttp<4.0'
]
if __name__ == '__main__':
setup(install_requires=install_requires,
python_requires='>=3.8',
**setup_args)