1
0
mirror of https://github.com/scrapy/scrapy.git synced 2025-02-24 09:04:16 +00:00
scrapy/setup.py

80 lines
2.6 KiB
Python
Raw Normal View History

2014-08-01 15:29:59 -03:00
from os.path import dirname, join
from pkg_resources import parse_version
from setuptools import setup, find_packages, __version__ as setuptools_version
2014-08-01 15:29:59 -03:00
with open(join(dirname(__file__), 'scrapy/VERSION'), 'rb') as f:
version = f.read().decode('ascii').strip()
def has_environment_marker_platform_impl_support():
"""Code extracted from 'pytest/setup.py'
https://github.com/pytest-dev/pytest/blob/7538680c/setup.py#L31
The first known release to support environment marker with range operators
it is 18.5, see:
https://setuptools.readthedocs.io/en/latest/history.html#id235
"""
return parse_version(setuptools_version) >= parse_version('18.5')
extras_require = {}
if has_environment_marker_platform_impl_support():
extras_require[':platform_python_implementation == "PyPy"'] = [
'PyPyDispatcher>=2.1.0',
]
2014-08-01 15:29:59 -03:00
setup(
name='Scrapy',
version=version,
2017-10-28 16:24:40 +05:30
url='https://scrapy.org',
description='A high-level Web Crawling and Web Scraping framework',
2014-08-01 15:29:59 -03:00
long_description=open('README.rst').read(),
author='Scrapy developers',
maintainer='Pablo Hoffman',
maintainer_email='pablo@pablohoffman.com',
license='BSD',
2014-08-01 16:23:37 -03:00
packages=find_packages(exclude=('tests', 'tests.*')),
2014-08-01 15:29:59 -03:00
include_package_data=True,
2014-08-01 16:26:08 -03:00
zip_safe=False,
2014-08-01 15:29:59 -03:00
entry_points={
'console_scripts': ['scrapy = scrapy.cmdline:execute']
},
classifiers=[
'Framework :: Scrapy',
2009-09-17 11:22:48 -03:00
'Development Status :: 5 - Production/Stable',
'Environment :: Console',
2014-08-01 15:29:59 -03:00
'Intended Audience :: Developers',
'License :: OSI Approved :: BSD License',
'Operating System :: OS Independent',
'Programming Language :: Python',
'Programming Language :: Python :: 2',
'Programming Language :: Python :: 2.7',
2016-03-01 16:34:13 +05:00
'Programming Language :: Python :: 3',
'Programming Language :: Python :: 3.4',
'Programming Language :: Python :: 3.5',
2017-01-09 14:40:02 +01:00
'Programming Language :: Python :: 3.6',
'Programming Language :: Python :: Implementation :: CPython',
'Programming Language :: Python :: Implementation :: PyPy',
2014-08-01 15:29:59 -03:00
'Topic :: Internet :: WWW/HTTP',
2009-09-17 11:22:48 -03:00
'Topic :: Software Development :: Libraries :: Application Frameworks',
'Topic :: Software Development :: Libraries :: Python Modules',
2014-08-01 15:29:59 -03:00
],
2017-12-19 17:59:05 +02:00
python_requires='>=2.7, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*',
2014-08-01 15:29:59 -03:00
install_requires=[
'Twisted>=13.1.0',
2017-02-13 21:06:05 +05:00
'w3lib>=1.17.0',
'queuelib',
'lxml',
'pyOpenSSL',
'cssselect>=0.9',
2014-01-15 13:05:00 +06:00
'six>=1.5.2',
2018-02-08 14:49:26 -03:00
'parsel>=1.4',
2015-07-25 17:38:07 +02:00
'PyDispatcher>=2.0.5',
'service_identity',
2014-08-01 15:29:59 -03:00
],
extras_require=extras_require,
2014-08-01 15:29:59 -03:00
)