-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.py
94 lines (80 loc) · 2.3 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
import ast
import codecs
import re
from os import path
from setuptools import find_packages, setup
here = path.abspath(path.dirname(__file__))
def read(*parts):
with codecs.open(path.join(here, *parts), 'r') as fp:
return fp.read()
_version_re = re.compile(r"__version\s+=\s+(.*)")
def find_version(*where):
return str(ast.literal_eval(_version_re.search(read(*where)).group(1)))
test_reqs = [
'pytest',
'pytest-cov',
'pytest-mock',
]
doc_reqs = [
'Sphinx',
]
dev_reqs = test_reqs + doc_reqs + [
'pip',
'setuptools',
'wheel',
'ipython',
'ipdb',
'watchdog',
'flake8',
'flake8-builtins',
'flake8-bugbear',
'flake8-comprehensions',
'flake8-pytest-style',
'pep8-naming',
'dlint',
'python-dotenv',
'rstcheck',
]
setup(
name='kristall',
description='Lightweight web framework for building APIs and backends',
version=find_version('src', 'kristall', '_version.py'),
author='Jarek Zgoda',
author_email='jarek.zgoda@gmail.com',
url='https://github.com/zgoda/kristall',
project_urls={
'Documentation': 'https://kristall.readthedocs.io/',
'Source': 'https://github.com/zgoda/kristall',
'Issues': 'https://github.com/zgoda/kristall/issues',
},
long_description=read('README.rst'),
long_description_content_type='text/x-rst',
packages=find_packages('src'),
package_dir={'': 'src'},
include_package_data=True,
python_requires='~=3.7',
zip_safe=False,
install_requires=[
'Werkzeug'
],
extras_require={
'dev': dev_reqs,
'docs': doc_reqs,
'test': test_reqs,
},
classifiers=[
'Development Status :: 4 - Beta',
'Environment :: Web Environment',
'Intended Audience :: Developers',
'License :: OSI Approved :: BSD License',
'Operating System :: POSIX :: Linux',
'Programming Language :: Python :: 3 :: Only',
'Programming Language :: Python :: 3.7',
'Programming Language :: Python :: 3.8',
'Programming Language :: Python :: 3.9',
'Programming Language :: Python :: Implementation :: CPython',
'Topic :: Internet :: WWW/HTTP :: Dynamic Content',
'Topic :: Internet :: WWW/HTTP :: WSGI :: Application',
'Typing :: Typed',
],
)