-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.py
49 lines (41 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
#!/usr/bin/env python3
"""Setup and configuration."""
import os
from setuptools import setup
from setuptools import find_packages
NAME = 'flask_shell'
PWD = os.path.abspath(os.path.dirname(__name__))
METADATA_FILE = os.path.join(PWD, NAME, '__init__.py')
METADATA = {}
with open(METADATA_FILE) as init_file:
exec(init_file.read(), METADATA)
REQUIREMENTS_FILE = os.path.join(PWD, 'requirements.txt')
REQUIREMENTS = []
with open(REQUIREMENTS_FILE) as req_file:
REQUIREMENTS = req_file.read().splitlines()
setup(
name=NAME,
version=METADATA['__version__'],
description=METADATA['__description__'],
author=METADATA['__description__'],
author_email=METADATA['__author_email__'],
url=METADATA['__url__'],
license=METADATA['__license__'],
packages=find_packages('.'),
install_requires=REQUIREMENTS,
zip_safe=True,
entry_points={
'console_scripts': ['{0}={0}.{0}:launch_api'.format(NAME)]
},
classifiers=(
'Development Status :: 4 - Beta',
'Environment :: Console',
'Intended Audience :: Developers',
'License :: OSI Approved :: GNU General Public License v3 (GPLv3)',
'Natural Language :: English',
'Operating System :: POSIX :: Linux',
'Programming Language :: Python :: 3 :: Only',
'Topic :: Software Development :: Build Tools',
'Topic :: Utilities',
)
)