-
Notifications
You must be signed in to change notification settings - Fork 29
/
setup.py
47 lines (46 loc) · 1.69 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
from setuptools import setup, find_packages
import sys
from ichrome import __version__
"""
mkdocs serve
mkdocs gh-deploy
linux:
rm -rf "dist/*";rm -rf "build/*";python3 setup.py bdist_wheel;twine upload "dist/*;rm -rf "dist/*";rm -rf "build/*""
win32-git-bash:
rm -r -f dist;rm -r -f build;python3 setup.py bdist_wheel;twine upload "dist/*";rm -r -f dist;rm -r -f build;rm -r -f ichrome.egg-info
"""
version = __version__
if sys.version_info < (3, 7):
sys.exit("Python 3.7+ requires")
py_version = sys.version_info
with open("requirements.txt") as f:
install_requires = f.read().strip().splitlines()
with open("README.md", encoding="utf-8") as f:
README = f.read()
desc = "Chrome controller for Humans, base on Chrome Devtools Protocol(CDP) and python3.7+. Read more: https://github.com/ClericPy/ichrome."
setup(
name="ichrome",
version=version,
keywords=["chrome", "Chrome Devtools Protocol", "daemon", "CDP", "browser"],
description=desc,
license="MIT License",
install_requires=install_requires,
long_description=README,
long_description_content_type="text/markdown",
py_modules=["ichrome"],
author="ClericPy",
author_email="clericpy@gmail.com",
url="https://github.com/ClericPy/ichrome",
extras_require={"web": ["uvicorn", "fastapi"]},
packages=find_packages(),
platforms="any",
classifiers=[
"License :: OSI Approved :: MIT License",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.7",
"Programming Language :: Python :: 3.8",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
],
)