-
-
Notifications
You must be signed in to change notification settings - Fork 46
/
setup.py
47 lines (39 loc) · 1.62 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
import re
import sys
from pathlib import Path
from setuptools import find_packages, setup
if not sys.version_info >= (3, 9):
raise RuntimeError("aiohttp_admin doesn't support Python earlier than 3.9")
def read_version():
regexp = re.compile(r'^__version__\W*=\W*"([\d.abrc]+)"')
init_py = Path(__file__).parent / "aiohttp_admin" / "__init__.py"
with init_py.open() as f:
for line in f:
match = regexp.match(line)
if match is not None:
return match.group(1)
raise RuntimeError("Cannot find version in aiohttp_admin/__init__.py")
classifiers = (
"License :: OSI Approved :: Apache Software License",
"Intended Audience :: Developers",
"Programming Language :: Python :: 3",
"Development Status :: 3 - Alpha",
"Topic :: Internet :: WWW/HTTP",
"Framework :: AsyncIO",
"Framework :: aiohttp",
)
setup(name="aiohttp-admin",
version=read_version(),
description="admin interface for aiohttp application",
long_description="\n\n".join((Path("README.rst").read_text(),
Path("CHANGES.rst").read_text())),
classifiers=classifiers,
url="https://github.com/aio-libs/aiohttp-admin",
download_url="https://github.com/aio-libs/aiohttp-admin",
license="Apache 2",
packages=find_packages(),
install_requires=("aiohttp>=3.9", "aiohttp_security", "aiohttp_session",
"cryptography", "pydantic>2,<3",
'typing_extensions>=3.10; python_version<"3.12"'),
extras_require={"sa": ["sqlalchemy>=2.0.4,<3"]},
include_package_data=True)