-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.py
64 lines (54 loc) · 1.77 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
from codecs import open
from pathlib import Path
import tomli
from setuptools import find_packages, setup
with open("pyproject.toml", "rb") as f:
pyproject = tomli.load(f)
def get_long_description() -> str:
return (Path(__file__).parent / "README.rst").read_text()
def get_requirements(filename: str) -> list[str]:
return (Path(__file__).parent / filename).read_text().splitlines()
extra_requirements = {
"readthedocs": [
"furo",
"readthedocs-sphinx-search",
"Sphinx",
"sphinx-hoverxref",
]
}
setup(
name=pyproject["tool"]["poetry"]["name"],
version=pyproject["tool"]["poetry"]["version"],
author="Damego",
author_email="[email protected]",
description=pyproject["tool"]["poetry"]["description"],
extras_require=extra_requirements,
include_package_data=True,
install_requires=[
"aiohttp>=3.8.3",
"attrs==22.2.0",
"cattrs==22.2.0",
"orjson==3.8.5",
"tomli==2.0.1",
],
license="GPL-3.0 License",
long_description_content_type="text/markdown",
long_description=get_long_description(),
url="https://github.com/Damego/anilibria.py",
packages=find_packages(),
python_requires=">=3.10",
classifiers=[
"Intended Audience :: Developers",
"License :: OSI Approved :: MIT License",
"Natural Language :: English",
"Operating System :: OS Independent",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Topic :: Internet",
"Topic :: Software Development :: Libraries :: Python Modules",
"Topic :: Software Development :: Libraries",
"Topic :: Utilities",
"Typing :: Typed",
],
)