forked from rachelsanders/Flask-FeatureFlags
-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.py
68 lines (60 loc) · 1.92 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
import codecs
import os
import re
from setuptools import setup
from sys import argv
here = os.path.abspath(os.path.dirname(__file__))
try:
README = open(os.path.join(here, 'README.md')).read()
CHANGES = open(os.path.join(here, 'CHANGES.rst')).read()
except:
README = ''
CHANGES = ''
install_requires = ["Flask"]
if "develop" in argv:
install_requires.append('Sphinx')
install_requires.append('Sphinx-PyPI-upload')
def find_version(*file_paths):
here = os.path.abspath(os.path.dirname(__file__))
with codecs.open(os.path.join(here, *file_paths), 'r') as f:
version_file = f.read()
version_match = re.search(r"^__version__ = ['\"]([^'\"]*)['\"]",
version_file, re.M)
if version_match:
return version_match.group(1)
raise RuntimeError('Unable to find version string.')
setup(
name='Flask-FeatureFlags',
version=find_version('flask_featureflags', '__init__.py'),
url='https://github.com/trustrachel/Flask-FeatureFlags',
license='Apache',
author='Rachel Sanders',
author_email='[email protected]',
maintainer='Rachel Sanders',
maintainer_email='[email protected]',
description='Enable or disable features in Flask apps based on configuration',
long_description=README + '\n\n' + CHANGES,
zip_safe=False,
test_suite="tests",
platforms='any',
include_package_data=True,
packages=[
'flask_featureflags',
'flask_featureflags.contrib',
'flask_featureflags.contrib.inline',
'flask_featureflags.contrib.sqlalchemy',
],
install_requires=[
'Flask',
],
classifiers=[
'Development Status :: 3 - Alpha',
'Environment :: Web Environment',
'Intended Audience :: Developers',
'License :: OSI Approved :: Apache Software License',
'Operating System :: OS Independent',
'Programming Language :: Python',
'Topic :: Internet :: WWW/HTTP :: Dynamic Content',
'Topic :: Software Development :: Libraries :: Python Modules'
]
)