-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsetup.py
76 lines (64 loc) · 1.99 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
#!/usr/bin/env python
# -*- coding: utf-8 -*-
"""
app
~~~
Example of living Styleguide made with Flask-Styleguide.
:copyright: (c) 2015 by Vital Kudzelka <[email protected]>
:license: MIT
"""
import io
import os
import sys
from setuptools import (
find_packages,
setup,
)
from app import (
__version__,
cli,
)
def read(*parts):
try:
return io.open(os.path.join(*parts), 'r', encoding='utf-8').read()
except IOError:
return ''
requirements = read('requirements', 'main.txt').splitlines()
tests_require = read('requirements', 'test.txt').splitlines()
setup(
name='flask-styleguide-example',
version=__version__,
author='Vital Kudzelka',
author_email='[email protected]',
url='https://github.com/vitalk/flask-styleguide-example',
description='Example of Live Style Guide made with Flask-Styleguide.',
long_description=read('README.md'),
license='MIT',
packages=find_packages(exclude=['docs', 'tests']),
zip_safe=False,
platforms='any',
install_requires=requirements,
tests_require=tests_require,
test_suite='tests',
cmdclass={
'freeze': cli.freezer.freeze,
'serve': cli.serve.run,
'test': cli.test.pytest,
},
# See https://pypi.python.org/pypi?%3Aaction=list_classifiers
classifiers=[
# Pypi will refuse to accept packages with unknown classifiers, so
# the following line prevents me from uploading private package to
# pypi. Just remove this line before publish.
'Private :: Do Not Upload',
'Development Status :: 3 - Alpha',
'Framework :: Flask',
'Environment :: Web Environment',
'Intended Audience :: Developers',
'License :: OSI Approved :: MIT License',
'Operating System :: OS Independent',
'Programming Language :: Python',
'Topic :: Internet :: WWW/HTTP :: Dynamic Content',
'Topic :: Software Development :: Libraries :: Python Modules',
]
)