Skip to content

Commit 79c341b

Browse files
authored
Remove support for py2, py34, py35 (#116)
1 parent f05f37c commit 79c341b

File tree

6 files changed

+19
-33
lines changed

6 files changed

+19
-33
lines changed

.github/workflows/tests.yml

Lines changed: 4 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -6,19 +6,7 @@ jobs:
66
runs-on: ubuntu-latest
77
strategy:
88
matrix:
9-
include:
10-
- python-version: 2.7
11-
env:
12-
TOXENV: py
13-
- python-version: 3.5
14-
env:
15-
TOXENV: py
16-
- python-version: 3.6
17-
env:
18-
TOXENV: py
19-
- python-version: 3.7
20-
env:
21-
TOXENV: py
9+
python-version: [3.6, 3.7, 3.8, 3.9]
2210

2311
steps:
2412
- uses: actions/checkout@v2
@@ -29,10 +17,10 @@ jobs:
2917
python-version: ${{ matrix.python-version }}
3018

3119
- name: Run tests
32-
env: ${{ matrix.env }}
3320
run: |
21+
pip install -U pip
3422
pip install -U tox
35-
tox
23+
tox -e py
3624
3725
- name: Upload coverage report
38-
run: bash <(curl -s https://codecov.io/bash)
26+
run: bash <(curl -s https://codecov.io/bash)

.gitignore

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,4 +5,6 @@
55
/dist
66
/docs/_build
77
/.coverage
8-
.idea
8+
.idea
9+
htmlcov/
10+
coverage.xml

README.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ extracted as a stand-alone project.
3333
Quick facts:
3434

3535
* Free software: BSD licensed
36-
* Compatible with Python 2.7 and 3.4+
36+
* Compatible with Python 3.6+
3737
* Latest documentation `on Read the Docs <https://cssselect.readthedocs.io/>`_
3838
* Source, issues and pull requests `on GitHub
3939
<https://github.com/scrapy/cssselect>`_

setup.py

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -31,18 +31,16 @@
3131
url="https://github.com/scrapy/cssselect",
3232
license="BSD",
3333
packages=["cssselect"],
34-
python_requires=">=2.7, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*",
34+
python_requires=">=3.6",
3535
classifiers=[
3636
"Development Status :: 4 - Beta",
3737
"Intended Audience :: Developers",
3838
"License :: OSI Approved :: BSD License",
39-
"Programming Language :: Python :: 2",
40-
"Programming Language :: Python :: 2.7",
4139
"Programming Language :: Python :: 3",
42-
"Programming Language :: Python :: 3.4",
43-
"Programming Language :: Python :: 3.5",
4440
"Programming Language :: Python :: 3.6",
4541
"Programming Language :: Python :: 3.7",
42+
"Programming Language :: Python :: 3.8",
43+
"Programming Language :: Python :: 3.9",
4644
],
47-
**extra_kwargs
45+
**extra_kwargs,
4846
)

tests/requirements.txt

Lines changed: 0 additions & 5 deletions
This file was deleted.

tox.ini

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,14 @@
22
envlist = black,flake8,security,py
33

44
[testenv]
5-
basepython = python3
6-
deps=
7-
-r tests/requirements.txt
5+
deps =
6+
lxml>=4.4
7+
pytest-cov>=2.8
8+
pytest>=5.4
89
commands =
9-
py.test --cov-report term --cov=cssselect
10+
pytest --cov=cssselect \
11+
--cov-report=term-missing --cov-report=html --cov-report=xml \
12+
--verbose {posargs: cssselect tests}
1013

1114
[testenv:black]
1215
deps =

0 commit comments

Comments
 (0)