-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsetup.py
More file actions
57 lines (48 loc) · 1.81 KB
/
setup.py
File metadata and controls
57 lines (48 loc) · 1.81 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
# -*- coding: utf-8 -*-
from __future__ import absolute_import
from __future__ import division
from __future__ import print_function
from __future__ import unicode_literals
import codecs
import os
import runpy
from setuptools import setup, find_packages
def get_version_from_pyfile(version_file="flask_restful_hal/_version.py"):
file_globals = runpy.run_path(version_file)
return file_globals["__version__"]
def get_long_description_from_readme(readme_filename="README.md"):
long_description = None
if os.path.isfile(readme_filename):
with codecs.open(readme_filename, "r", "utf-8") as readme_file:
long_description = readme_file.read()
return long_description
version = get_version_from_pyfile()
long_description = get_long_description_from_readme()
setup(
name="flask-restful-hal",
version=version,
packages=find_packages(),
python_requires=">=2.7, !=3.0.*, !=3.1.*, !=3.2.*, <4",
install_requires=["Flask", "Flask-RESTful", "future"],
author="Ingo Meyer",
author_email="i.meyer@fz-juelich.de",
description="HAL extension for Flask-RESTful",
long_description=long_description,
long_description_content_type="text/markdown",
license="MIT",
url="https://github.com/sciapp/flask-restful-hal",
keywords=["Flask", "RESTful", "HAL"],
classifiers=[
"Development Status :: 4 - Beta",
"Environment :: Web Environment",
"Framework :: Flask",
"Intended Audience :: Developers",
"License :: OSI Approved :: MIT License",
"Programming Language :: Python :: 2.7",
"Programming Language :: Python :: 3.3",
"Programming Language :: Python :: 3.4",
"Programming Language :: Python :: 3.5",
"Programming Language :: Python :: 3.6",
"Topic :: Internet :: WWW/HTTP",
],
)