-
Notifications
You must be signed in to change notification settings - Fork 2
/
setup.py
68 lines (56 loc) · 2 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
import re
from pathlib import Path
from setuptools import setup
install_requires = (
"multidict>=4.5,<7.0",
"yarl>=1.12.0,<2.0",
)
def read(*parts):
return Path(__file__).resolve().parent.joinpath(*parts).read_text().strip()
def read_version():
regexp = re.compile(r"^__version__\W*=\W*\"([\d.abrc]+)\"")
for line in read("aio_request", "__init__.py").splitlines():
match = regexp.match(line)
if match is not None:
return match.group(1)
else:
raise RuntimeError("Cannot find version in aio_request/__init__.py")
long_description_parts = []
with open("README.md", "r") as fh:
long_description_parts.append(fh.read())
with open("CHANGELOG.md", "r") as fh:
long_description_parts.append(fh.read())
long_description = "\r\n".join(long_description_parts)
setup(
name="aio-request",
version=read_version(),
description="Various strategies for sending requests",
long_description=long_description,
long_description_content_type="text/markdown",
platforms=["macOS", "POSIX", "Windows"],
author="Iurii Pliner",
python_requires=">=3.11",
project_urls={},
url="https://github.com/Pliner/aio-request",
author_email="[email protected]",
license="MIT",
packages=["aio_request"],
package_dir={"aio_request": "./aio_request"},
package_data={"aio_request": ["py.typed"]},
install_requires=install_requires,
include_package_data=True,
classifiers=[
"License :: OSI Approved :: MIT License",
"Intended Audience :: Developers",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3 :: Only",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Programming Language :: Python :: 3.13",
"Operating System :: OS Independent",
"Environment :: Web Environment",
"Development Status :: 5 - Production/Stable",
"Framework :: AsyncIO",
"Typing :: Typed",
],
)