-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathsetup.py
60 lines (50 loc) · 1.85 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
57
58
59
60
import json
from setuptools import setup, find_packages
def last_version():
with open("./release/package.json") as fp:
version = json.load(fp)
return version['version']
fb_version = last_version()
def parse_requirements(filename):
lineiter = (line.strip() for line in open(filename))
return [line for line in lineiter if line and not line.startswith("#")]
base_reqs = parse_requirements('./requirements.txt')
dev_reqs = parse_requirements('./dev-requirements.txt')
with open('README.md') as f:
long_description = f.read()
setup(
name='fb-python-sdk',
version=fb_version,
author='Dian SUN',
author_email='[email protected]',
packages=find_packages(),
url='https://github.com/featbit/featbit-python-sdk',
project_urls={
'Code': 'https://github.com/featbit/featbit-python-sdk',
'Issue tracker': 'https://github.com/featbit/featbit/issues',
},
description='A Python SDK for FeatBit plateform',
long_description=long_description,
long_description_content_type='text/markdown',
install_requires=base_reqs,
classifiers=[
'Development Status :: 5 - Production/Stable',
'Intended Audience :: Developers',
'License :: OSI Approved :: Apache Software License',
'Operating System :: OS Independent',
'Topic :: Software Development',
'Topic :: Software Development :: Libraries',
'Programming Language :: Python :: 3.6',
'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',
'Programming Language :: Python :: 3.12',
],
extras_require={
"dev": dev_reqs
},
tests_require=dev_reqs,
python_requires='>=3.6, <=3.12'
)