-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.py
63 lines (51 loc) · 1.88 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
import re
from pathlib import Path
from setuptools import setup
install_requires = ["croniter>=1.0.1"]
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_background", "__init__.py").splitlines():
match = regexp.match(line)
if match is not None:
return match.group(1)
else:
raise RuntimeError("Cannot find version in aio_background/__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-background",
version=read_version(),
description="A thing to run tasks in the background",
long_description=long_description,
long_description_content_type="text/markdown",
platforms=["macOS", "POSIX", "Windows"],
author="Iurii Pliner",
python_requires=">=3.11",
project_urls={},
author_email="[email protected]",
license="MIT",
packages=["aio_background"],
package_dir={"aio_background": "./aio_background"},
package_data={"aio_background": ["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",
"Operating System :: OS Independent",
"Environment :: Web Environment",
"Development Status :: 5 - Production/Stable",
"Framework :: AsyncIO",
"Typing :: Typed",
],
)