-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.py
40 lines (37 loc) · 1.27 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
from setuptools import setup, find_packages
from smawe_pyppeteer.__version__ import version
from pathlib import Path
import shutil
AUTHOR = "Smawe"
EMAIL = "[email protected]"
URL = "https://github.com/Smawexi/SmawePyppeteer"
NAME = "smawe_pyppeteer"
DESCRIPTION = "一个使用pyppeteer进行渲染的请求库"
with open("README.md", "r", encoding="utf-8") as fp:
long_description = fp.read()
REQUIRES_PYTHON = '>=3.6.0'
REQUIRED = ["pyppeteer"]
shutil.rmtree(Path("./dist"), ignore_errors=True)
shutil.rmtree(Path("./smawe_pyppeteer.egg-info"), ignore_errors=True)
setup(
name=NAME,
version=version,
description=DESCRIPTION,
long_description=long_description,
long_description_content_type='text/markdown',
author=AUTHOR,
author_email=EMAIL,
python_requires=REQUIRES_PYTHON,
url=URL,
install_requires=REQUIRED,
packages=find_packages(where=".", exclude=("tests",)),
include_package_data=False,
classifiers=[
'Programming Language :: Python :: 3.6',
'Programming Language :: Python :: 3.7',
'Programming Language :: Python :: 3.8',
'Programming Language :: Python :: 3.9',
'Programming Language :: Python :: 3.10',
'Programming Language :: Python :: Implementation :: CPython',
],
)