-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsetup.py
45 lines (38 loc) · 862 Bytes
/
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
# -*- coding: utf-8 -*-
#
import os
from setuptools import find_packages, setup
extras_require = {
'tests': [
'click==7.1.2',
'pytest==4.6.11',
'six==1.16.0',
'py-postgresql',
]
}
setup_requires = [
'pytest-runner>=3.0.0,<5',
]
install_requires = [
'click==7.1.2',
'six==1.16.0',
'sqlalchemy==1.3.24',
'py-postgresql',
]
# Get the version string. Cannot be done with import!
g = {}
with open(os.path.join('app', 'version.py'), 'rt') as fp:
exec(fp.read(), g)
version = g['__version__']
setup(
name='app',
version=version,
extras_require=extras_require,
install_requires=install_requires,
setup_requires=setup_requires,
tests_require=extras_require['tests'],
entry_points={
'console_scripts': ['app=app.main:go'],
},
packages=find_packages()
)