forked from betagouv/sqlalchemy-api-handler
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsetup.py
58 lines (54 loc) · 2.25 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
import io
import os
import re
from setuptools import setup
with io.open("README.rst", "rt", encoding="utf8") as f:
readme = f.read()
with io.open("{}/__init__.py".format(os.environ.get('MODULE_NAME')), "rt", encoding="utf8") as f:
version = re.search(r'__version__ = "(.*?)"', f.read(), re.M).group(1)
setup(
name=os.environ.get('PIP_NAME'),
version=version,
url="https://github.com/{}".format(os.environ.get('GITHUB_NAME')),
project_urls={
"Code": "https://github.com/{}".format(os.environ.get('GITHUB_NAME')),
"Issue tracker": "https://github.com/{}/issues".format(os.environ.get('GITHUB_NAME')),
},
license="MPL-2.0",
author="Erwan Ledoux",
author_email="[email protected]",
maintainer="Ledoux",
maintainer_email="[email protected]",
description="Adds SQLAlchemy support to your Flask application for handle apis.",
long_description=readme,
long_description_content_type="text/x-rst",
packages=[
"sqlalchemy_api_handler",
"sqlalchemy_api_handler.bases",
"sqlalchemy_api_handler.mixins",
"sqlalchemy_api_handler.serialization",
"sqlalchemy_api_handler.utils"
],
include_package_data=True,
python_requires=">= 2.7, != 3.0.*, != 3.1.*, != 3.2.*, != 3.3.*",
install_requires=["Flask>=0.10", "SQLAlchemy>=0.8.0"],
classifiers=[
"Development Status :: 5 - Production/Stable",
"Environment :: Web Environment",
"Intended Audience :: Developers",
"License :: OSI Approved :: Mozilla Public License 2.0 (MPL 2.0)",
"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",
"Programming Language :: Python :: 3.5",
"Programming Language :: Python :: 3.6",
"Programming Language :: Python :: 3.7",
"Programming Language :: Python :: Implementation :: CPython",
"Programming Language :: Python :: Implementation :: PyPy",
"Topic :: Internet :: WWW/HTTP :: Dynamic Content",
"Topic :: Software Development :: Libraries :: Python Modules",
],
)