Ai
1 Star 0 Fork 0

touchx/scrapy-selenium

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
setup.py 872 Bytes
一键复制 编辑 原始数据 按行查看 历史
Leon Feng 提交于 2018-09-09 03:51 +08:00 . fix: pip 10 compatibility (#12)
"""This module contains the packaging routine for the pybook package"""
from setuptools import setup, find_packages
try:
from pip.download import PipSession
from pip.req import parse_requirements
except ImportError:
# It is quick hack to support pip 10 that has changed its internal
# structure of the modules.
from pip._internal.download import PipSession
from pip._internal.req.req_file import parse_requirements
def get_requirements(source):
"""Get the requirements from the given ``source``
Parameters
----------
source: str
The filename containing the requirements
"""
install_reqs = parse_requirements(filename=source, session=PipSession())
return [str(ir.req) for ir in install_reqs]
setup(
packages=find_packages(),
install_requires=get_requirements('requirements/requirements.txt')
)
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/touchx_admin/scrapy-selenium.git
git@gitee.com:touchx_admin/scrapy-selenium.git
touchx_admin
scrapy-selenium
scrapy-selenium
master

搜索帮助