|
2 | 2 |
|
3 | 3 | import re |
4 | 4 | import os.path |
| 5 | + |
5 | 6 | try: |
6 | 7 | from setuptools import setup |
7 | | - extra_kwargs = {'test_suite': 'cssselect.tests'} |
| 8 | + |
| 9 | + extra_kwargs = {"test_suite": "cssselect.tests"} |
8 | 10 | except ImportError: |
9 | 11 | from distutils.core import setup |
| 12 | + |
10 | 13 | extra_kwargs = {} |
11 | 14 |
|
12 | 15 |
|
13 | 16 | ROOT = os.path.dirname(__file__) |
14 | | -README = open(os.path.join(ROOT, 'README.rst')).read() |
15 | | -INIT_PY = open(os.path.join(ROOT, 'cssselect', '__init__.py')).read() |
| 17 | +README = open(os.path.join(ROOT, "README.rst")).read() |
| 18 | +INIT_PY = open(os.path.join(ROOT, "cssselect", "__init__.py")).read() |
16 | 19 | VERSION = re.search("VERSION = '([^']+)'", INIT_PY).group(1) |
17 | 20 |
|
18 | 21 |
|
19 | 22 | setup( |
20 | | - name='cssselect', |
| 23 | + name="cssselect", |
21 | 24 | version=VERSION, |
22 | | - author='Ian Bicking', |
23 | | - author_email='ianb@colorstudy.com', |
24 | | - maintainer='Paul Tremberth', |
25 | | - maintainer_email='paul.tremberth@gmail.com', |
26 | | - description= |
27 | | - 'cssselect parses CSS3 Selectors and translates them to XPath 1.0', |
| 25 | + author="Ian Bicking", |
| 26 | + author_email="ianb@colorstudy.com", |
| 27 | + maintainer="Paul Tremberth", |
| 28 | + maintainer_email="paul.tremberth@gmail.com", |
| 29 | + description="cssselect parses CSS3 Selectors and translates them to XPath 1.0", |
28 | 30 | long_description=README, |
29 | | - url='https://github.com/scrapy/cssselect', |
30 | | - license='BSD', |
31 | | - packages=['cssselect'], |
32 | | - python_requires='>=2.7, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*', |
| 31 | + url="https://github.com/scrapy/cssselect", |
| 32 | + license="BSD", |
| 33 | + packages=["cssselect"], |
| 34 | + python_requires=">=3.6", |
33 | 35 | classifiers=[ |
34 | | - 'Development Status :: 4 - Beta', |
35 | | - 'Intended Audience :: Developers', |
36 | | - 'License :: OSI Approved :: BSD License', |
37 | | - 'Programming Language :: Python :: 2', |
38 | | - 'Programming Language :: Python :: 2.7', |
39 | | - 'Programming Language :: Python :: 3', |
40 | | - 'Programming Language :: Python :: 3.4', |
41 | | - 'Programming Language :: Python :: 3.5', |
42 | | - 'Programming Language :: Python :: 3.6', |
43 | | - 'Programming Language :: Python :: 3.7' |
| 36 | + "Development Status :: 4 - Beta", |
| 37 | + "Intended Audience :: Developers", |
| 38 | + "License :: OSI Approved :: BSD License", |
| 39 | + "Programming Language :: Python :: 3", |
| 40 | + "Programming Language :: Python :: 3.6", |
| 41 | + "Programming Language :: Python :: 3.7", |
| 42 | + "Programming Language :: Python :: 3.8", |
| 43 | + "Programming Language :: Python :: 3.9", |
44 | 44 | ], |
45 | | - **extra_kwargs |
| 45 | + **extra_kwargs, |
46 | 46 | ) |
0 commit comments