-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsetup.py
42 lines (35 loc) · 1.11 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
import os
import re
from setuptools import setup, find_packages
ROOT = os.path.dirname(__file__)
VERSION_RE = re.compile(r'''__version__ = ['"]([0-9.]+)['"]''')
requires = [
'requests',
'pyrfc3339',
'beartype',
]
def get_version():
init = open(os.path.join(ROOT, 'selfhost_client', '__init__.py')).read()
return VERSION_RE.search(init).group(1)
setup(
name='selfhost_client',
version=get_version(),
description='NODA Self Host Client API Library',
long_description=open('README.rst').read(),
author='NODA Intelligent Systems',
author_email='[email protected]',
url='https://github.com/self-host/selfhost-python-client',
scripts=[],
packages=find_packages(),
install_requires=requires,
license='MIT License',
python_requires='>= 3.7',
classifiers=[
'License :: OSI Approved :: MIT License',
'Operating System :: OS Independent',
'Programming Language :: Python :: 3.7',
'Programming Language :: Python :: 3.8',
'Programming Language :: Python :: 3.9',
'Programming Language :: Python :: 3.10',
]
)