-
Notifications
You must be signed in to change notification settings - Fork 29
/
setup.py
59 lines (48 loc) · 1.61 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
from typing import List
import setuptools
def fetchRequirements(path: str) -> List[str]:
"""
This function reads the requirements file.
Args:
path (str): the path to the requirements file.
Returns:
The lines in the requirements file.
"""
with open(path, "r") as f:
return [r.strip() for r in f.readlines()]
def fetchReadme(path: str) -> str:
"""
This function reads the README file.
Args:
path (str): the path to the README file.
Returns:
The content in the README file.
"""
with open(path, "r", encoding="utf-8") as f:
return f.read()
setuptools.setup(
name="pixiv_utils",
version="1.0.1",
author="Wenhao Chen",
author_email="[email protected]",
description="Pixiv Utils implemented in Python, including Pixiv crawler and mosaic puzzles, support for rankings, personal favorites, artist works, keyword search and other filtering functions, and provide high-performance multi-threaded parallel download.",
long_description=fetchReadme("README.md"),
long_description_content_type="text/markdown",
url="https://github.com/CWHer/PixivCrawler",
packages=setuptools.find_packages(
exclude=(
"docs",
"tests",
"requirements",
"*.egg-info",
),
),
py_modules=["tutorial"],
install_requires=fetchRequirements("requirements/requirements.txt"),
python_requires=">=3.9",
classifiers=[
"Programming Language :: Python :: 3",
"License :: OSI Approved :: MIT License",
"Operating System :: OS Independent",
],
)