-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsetup.py
58 lines (46 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
57
58
from pathlib import Path
from setuptools import setup
import re
def get_version(package):
data = Path(package, "__version__.py").read_text()
version = re.findall(r"^__version__ = \"([^']+)\"\r?$", data, re.M)[0]
return version
def get_packages(package):
return [str(path.parent) for path in Path(package).glob("**/__init__.py")]
with open("README.rst", "r", encoding="utf-8") as readme:
long_description = readme.read()
with open("requirements.txt", "r", encoding="utf-8") as requirements:
install_requires = [dependency.strip('\n') for dependency in requirements]
with open("requirements-dev.txt", "r", encoding="utf-8") as requirements_dev:
tests_require = [dependency_dev.strip("\n") for dependency_dev in requirements_dev]
setup(
name="aio2ch",
version=get_version("aio2ch"),
python_requires=">=3.6",
packages=get_packages('aio2ch'),
package_dir={"aio2ch": "aio2ch"},
url="https://github.com/wkpn/aio2ch",
license="MIT",
author="wkpn",
description="Fully asynchronous read-only API wrapper for 2ch.hk (dvach)",
long_description=long_description,
install_requires=install_requires,
tests_require=tests_require,
keywords=["2ch", "Двач", "Dvach", "api", "wrapper", "async"],
zip_safe=False,
classifiers=[
"Development Status :: 5 - Production/Stable",
"Framework :: AsyncIO",
"Intended Audience :: Developers",
"License :: OSI Approved :: MIT License",
"Programming Language :: Python :: 3.6",
"Programming Language :: Python :: 3.7",
"Programming Language :: Python :: 3.8",
"Programming Language :: Python :: 3.9"
],
entry_points={
"console_scripts": [
"aio2ch = aio2ch.cli:download",
]
}
)