This repository has been archived by the owner on Jan 5, 2019. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.py
65 lines (54 loc) · 1.82 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
# -*- coding: utf-8 -*-
"""
flask-journey
------------
Lightweight extension for Flask that primarily assists with blueprint and route management,
but also (de)serialization and validation in API routes.
"""
import io
import ast
try:
from setuptools import setup
except ImportError:
from distutils.core import setup
def get_version():
""" Parses main module and fetches version attribute from the syntax tree
:return: flask-journey version
"""
with io.open('flask_journey/__init__.py') as input_file:
for line in input_file:
if line.startswith('__version__'):
return ast.parse(line).body[0].value.s
with io.open('README.rst') as readme:
setup(
name='flask-journey',
version=get_version(),
url='https://github.com/rbw0/flask-journey',
license='MIT',
author='Robert Wikman',
author_email='rbw@vault13.org',
maintainer='Robert Wikman',
maintainer_email='rbw@vault13.org',
description='Flask blueprint management',
download_url='https://github.com/rbw0/flask-journey/tarball/%s' % get_version(),
long_description=readme.read(),
packages=['flask_journey'],
zip_safe=False,
include_package_data=True,
platforms='any',
install_requires=[
'Flask',
'marshmallow',
'furl',
'Flask-Sphinx-Themes',
],
classifiers=[
'Environment :: Web Environment',
'Intended Audience :: Developers',
'License :: OSI Approved :: BSD License',
'Operating System :: OS Independent',
'Programming Language :: Python',
'Topic :: Internet :: WWW/HTTP :: Dynamic Content',
'Topic :: Software Development :: Libraries :: Python Modules'
]
)