-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsetup.py
executable file
·103 lines (89 loc) · 3.4 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
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
#!/usr/bin/env python
# -*- encoding: utf-8 -*-
from __future__ import absolute_import
from __future__ import print_function
import os
from setuptools import setup, find_packages
# Utility function to read the README file.
# Used for the long_description. It's nice, because now 1) we have a top level
# README file and 2) it's easier to type in the README file than to put a raw
# string in below ...
def read(fname):
orig_content = open(os.path.join(os.path.dirname(__file__), fname)).readlines()
content = ""
in_raw_directive = 0
for line in orig_content:
if in_raw_directive:
if not line.strip():
in_raw_directive = in_raw_directive - 1
continue
elif line.strip() == '.. raw:: latex':
in_raw_directive = 2
continue
content += line
return content
core_dependencies = [
'uvicorn',
'fastapi==0.100.0',
'pydantic==1.10.11',
'annotated-types',
'tendril-config',
'tendril-auth>=0.3.0',
'python-multipart',
'fastapi-pagination'
]
install_requires = core_dependencies + ['wheel']
setup_requires = ['setuptools_scm']
doc_requires = setup_requires + ['sphinx', 'sphinx-argparse', 'alabaster', 'sphinxcontrib-documentedlist']
test_requires = doc_requires + ['pytest', 'pytest-flake8', 'pytest-cov', 'coveralls[yaml]']
build_requires = test_requires # + ['doit', 'pyinstaller']
publish_requires = build_requires + ['twine', 'pygithub']
setup(
name='tendril-apiserver-core',
use_scm_version={"root": ".", "relative_to": __file__},
author="Chintalagiri Shashank",
author_email="shashank@chintal.in",
description="Tendril API Server Core Infrastructure",
long_description='\n'.join([read('README.rst'), read('CHANGELOG.rst')]),
long_description_content_type='text/x-rst',
keywords='tendril',
url='https://github.com/tendril-framework/tendril-apiserver-core',
project_urls={
'Documentation': 'https://tendril-apiserver-core.readthedocs.io/en/latest',
'Bug Tracker': 'https://github.com/tendril-framework/tendril-apiserver-core/issues',
'Source Repository': 'https://github.com/tendril-framework/tendril-apiserver-core',
},
packages=find_packages('src'),
package_dir={'': 'src'},
classifiers=[
'Development Status :: 4 - Beta',
'License :: OSI Approved :: GNU Affero General Public License v3 or later (AGPLv3+)',
'Natural Language :: English',
'Operating System :: OS Independent',
'Programming Language :: Python',
'Programming Language :: Python :: 2.7',
'Programming Language :: Python :: 3',
'Programming Language :: Python :: 3.5',
'Programming Language :: Python :: 3.6',
'Programming Language :: Python :: 3.7',
'Programming Language :: Python :: Implementation :: CPython',
'Programming Language :: Python :: Implementation :: PyPy',
],
python_requires='>=2.7, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*',
install_requires=install_requires,
setup_requires=setup_requires,
extras_require={
'docs': doc_requires,
'tests': test_requires,
'build': build_requires,
'publish': publish_requires,
'dev': build_requires,
},
platforms='any',
entry_points={
'console_scripts': [
'apiserver = tendril.apiserver.server:run_server'
]
},
include_package_data=True
)