forked from rbw/flask-snow
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsetup.py
More file actions
64 lines (53 loc) · 1.74 KB
/
setup.py
File metadata and controls
64 lines (53 loc) · 1.74 KB
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
# -*- coding: utf-8 -*-
"""
flask-snow
------------
Adds ServiceNow support to Flask applications with the help of the `pysnow`_ library.
"""
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-snow version
"""
with io.open('flask_snow/__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-snow',
version=get_version(),
url='https://github.com/rbw0/flask-snow',
license='MIT',
author='Robert Wikman',
author_email='rbw@vault13.org',
maintainer='Robert Wikman',
maintainer_email='rbw@vault13.org',
description='Pysnow extension for Flask',
download_url='https://github.com/rbw0/flask-snow/tarball/%s' % get_version(),
long_description=readme.read(),
packages=['flask_snow'],
zip_safe=False,
include_package_data=True,
platforms='any',
install_requires=[
'Flask',
'Flask-Sphinx-Themes',
'pysnow',
'requests'
],
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'
]
)