-
Notifications
You must be signed in to change notification settings - Fork 88
/
setup.py
65 lines (55 loc) · 1.7 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
"""
GitHub-Flask
------------
Adds support to authorize users with GitHub and make API requests with Flask.
Links
`````
* `documentation <http://github-flask.readthedocs.org>`_
* `development version
<http://github.com/cenkalti/github-flask/zipball/master#egg=GitHub-Flask-dev>`_
"""
import os
import re
from setuptools import setup
def read(*fname):
path = os.path.join(os.path.dirname(__file__), *fname)
with open(path) as f:
return f.read()
def get_version():
for line in read('flask_github.py').splitlines():
m = re.match(r"__version__\s*=\s'(.*)'", line)
if m:
return m.groups()[0].strip()
raise Exception('Cannot find version')
setup(
name='GitHub-Flask',
version=get_version(),
url='http://github.com/cenkalti/github-flask',
license='MIT',
author='Cenk Alti',
author_email='[email protected]',
description='GitHub extension for Flask microframework',
long_description=__doc__,
py_modules=['flask_github'],
test_suite='test_flask_github',
zip_safe=False,
include_package_data=True,
platforms='any',
install_requires=[
'Flask',
'requests',
],
tests_require=['mock'],
classifiers=[
'Environment :: Web Environment',
'Intended Audience :: Developers',
'Operating System :: OS Independent',
'Programming Language :: Python',
'Programming Language :: Python :: 2',
'Programming Language :: Python :: 2.7',
'Programming Language :: Python :: 3',
'Programming Language :: Python :: 3.4',
'Topic :: Internet :: WWW/HTTP :: Dynamic Content',
'Topic :: Software Development :: Libraries :: Python Modules'
]
)