-
Notifications
You must be signed in to change notification settings - Fork 12
/
setup.py
90 lines (82 loc) · 2.75 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
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
"""Package setup."""
from pathlib import Path
from setuptools import setup, find_packages
root_dir = Path(__file__).parent.resolve()
exec(open(root_dir / "foca" / "version.py").read())
file_name = root_dir / "README.md"
with open(file_name, "r") as _file:
long_description = _file.read()
install_requires = []
req = root_dir / 'requirements.txt'
with open(req, "r") as _file:
install_requires = _file.read().splitlines()
docs_require = []
req = root_dir / 'requirements_docs.txt'
try:
with open(req, "r") as _file:
docs_require = _file.read().splitlines()
except FileNotFoundError:
"Docs requirements unavailable."
dev_requires = []
req = root_dir / 'requirements_dev.txt'
try:
with open(req, "r") as _file:
dev_requires = _file.read().splitlines()
except FileNotFoundError:
"Docs requirements unavailable."
setup(
name="foca",
version=__version__, # noqa: F821
description=(
"Archetype for OpenAPI microservices based on Flask and Connexion"
),
long_description=long_description,
long_description_content_type="text/markdown",
url="https://github.com/elixir-cloud-aai/foca",
author="ELIXIR Cloud & AAI",
author_email="[email protected]",
maintainer="Alexander Kanitz",
maintainer_email="[email protected]",
classifiers=[
"Development Status :: 3 - Alpha",
"Environment :: Console",
"Environment :: Web Environment",
"Framework :: Flask",
"Intended Audience :: Developers",
"Intended Audience :: Information Technology",
"Intended Audience :: System Administrators",
"License :: OSI Approved :: Apache Software License",
"Natural Language :: English",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Topic :: Internet :: WWW/HTTP",
"Topic :: System :: Systems Administration",
"Topic :: Utilities",
"Typing :: Typed",
],
keywords=(
'rest api app openapi python microservice'
),
project_urls={
"Repository": "https://github.com/elixir-cloud-aai/foca",
"ELIXIR Cloud & AAI": "https://elixir-europe.github.io/cloud/",
"Tracker": "https://github.com/elixir-cloud-aai/foca/issues",
},
packages=find_packages(),
setup_requires=[
"setuptools_git>=1.2",
"twine>=3.8.0"
],
install_requires=install_requires,
extras_require={
"dev": dev_requires,
"docs": docs_require,
},
include_package_data=True,
package_data={
"foca.security.access_control.api": ["*.yaml", "*.conf"],
"": ["py.typed"],
},
)