-
Notifications
You must be signed in to change notification settings - Fork 21
/
Copy pathsetup.py
56 lines (50 loc) · 1.76 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
import pathlib
import re
from setuptools import setup
BASE = pathlib.Path(__file__).parent
readme_file = BASE / "README.rst"
version_file = BASE / "aiohttp_swagger3" / "__init__.py"
version = re.findall(r'^__version__ = "(.+?)"$', version_file.read_text("utf-8"), re.M)[0]
with open(BASE / "requirements.txt") as f:
install_requires = f.read().splitlines()
setup(
name="aiohttp-swagger3",
version=version,
packages=["aiohttp_swagger3"],
package_data={
"aiohttp_swagger3": [
"schema/schema.json",
"swagger_ui/*",
"redoc_ui/*",
"redoc_ui/fonts/montserrat/*",
"redoc_ui/fonts/roboto/*",
"rapidoc_ui/*",
],
},
url="https://github.com/hh-h/aiohttp-swagger3",
license="Apache 2",
author="Valetov Konstantin",
author_email="[email protected]",
description="validation for aiohttp swagger openAPI 3",
long_description=readme_file.read_text("utf-8"),
long_description_content_type="text/x-rst",
setup_requires=["pytest-runner"],
tests_require=["pytest"],
classifiers=[
"License :: OSI Approved :: Apache Software License",
"Intended Audience :: Developers",
"Programming Language :: Python :: 3 :: Only",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Programming Language :: Python :: 3.13",
"Development Status :: 4 - Beta",
"Operating System :: POSIX",
"Operating System :: MacOS :: MacOS X",
"Framework :: AsyncIO",
"Topic :: Internet :: WWW/HTTP",
],
python_requires=">=3.9",
install_requires=install_requires,
)