-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathsetup.py
34 lines (28 loc) · 1007 Bytes
/
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
# encoding=utf-8
import os
import setuptools
with open(os.path.join(os.path.join(os.path.dirname(__file__), "fastspider"), "VERSION"), "rb") as f:
version = f.read().decode().strip()
with open("README.md", 'rb') as f:
readme = f.read().decode().strip()
all_requires = []
with open(os.path.join(os.path.join(os.path.dirname(__file__), "fastspider"), "requirements.txt"), "rb") as f:
requires = f.readlines()
for package in requires:
if package.decode().strip():
all_requires.append(package.decode().strip())
setuptools.setup(
name="fastspider",
version=version,
author="wanghaifei",
author_email="[email protected]",
python_requires=">=3.6",
description="fastspider 爬虫框架",
long_description=readme,
entry_points={"console_scripts": ["fastspider=fastspider.start:main"]},
url="https://github.com/coco369/fastspider.git",
install_requires=all_requires,
packages=setuptools.find_packages(),
include_package_data=True,
classifiers=["Programming Language :: Python :: 3"],
)