-
Notifications
You must be signed in to change notification settings - Fork 110
/
setup.py
52 lines (39 loc) · 1.37 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
import os
from codecs import open
from setuptools import setup, find_packages
import backend
ROOT_DIR = os.path.abspath(os.path.dirname(__file__))
with open(os.path.join(ROOT_DIR, 'README.md'), encoding='utf-8') as f:
long_description = f.read()
def is_pkg(line):
return line and not line.startswith(('-r', '--', 'git', '#'))
def read_requirements(filename):
with open(os.path.join(ROOT_DIR, filename), encoding='utf-8') as f:
return [line.split('#')[0].strip()
for line in f.read().splitlines()
if is_pkg(line)]
setup(
name='flask_react_spa',
version=backend.__version__,
description=backend.__doc__,
long_description=long_description,
url=backend.__homepage__,
author=backend.__author__,
license=backend.__license__,
# https://pypi.python.org/pypi?%3Aaction=list_classifiers
classifiers=[
'Development Status :: 4 - Beta',
'Intended Audience :: Developers',
'Programming Language :: Python :: 3',
'Programming Language :: Python :: 3.6',
],
packages=find_packages(exclude=['ansible', 'tests']),
install_requires=read_requirements('requirements.txt'),
extras_require={'dev': read_requirements('requirements-dev.txt')},
include_package_data=True,
zip_safe=False,
entry_points='''
[console_scripts]
flask=manage:main
''',
)