Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 4 additions & 16 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,19 +6,7 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
include:
- python-version: 2.7
env:
TOXENV: py
- python-version: 3.5
env:
TOXENV: py
- python-version: 3.6
env:
TOXENV: py
- python-version: 3.7
env:
TOXENV: py
python-version: [3.6, 3.7, 3.8, 3.9]

steps:
- uses: actions/checkout@v2
Expand All @@ -29,10 +17,10 @@ jobs:
python-version: ${{ matrix.python-version }}

- name: Run tests
env: ${{ matrix.env }}
run: |
pip install -U pip
pip install -U tox
tox
tox -e py

- name: Upload coverage report
run: bash <(curl -s https://codecov.io/bash)
run: bash <(curl -s https://codecov.io/bash)
4 changes: 3 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,6 @@
/dist
/docs/_build
/.coverage
.idea
.idea
htmlcov/
coverage.xml
2 changes: 1 addition & 1 deletion README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ extracted as a stand-alone project.
Quick facts:

* Free software: BSD licensed
* Compatible with Python 2.7 and 3.4+
* Compatible with Python 3.6+
* Latest documentation `on Read the Docs <https://cssselect.readthedocs.io/>`_
* Source, issues and pull requests `on GitHub
<https://github.com/scrapy/cssselect>`_
Expand Down
10 changes: 4 additions & 6 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,18 +31,16 @@
url="https://github.com/scrapy/cssselect",
license="BSD",
packages=["cssselect"],
python_requires=">=2.7, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*",
python_requires=">=3.6",
classifiers=[
"Development Status :: 4 - Beta",
"Intended Audience :: Developers",
"License :: OSI Approved :: BSD License",
"Programming Language :: Python :: 2",
"Programming Language :: Python :: 2.7",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.4",
"Programming Language :: Python :: 3.5",
"Programming Language :: Python :: 3.6",
"Programming Language :: Python :: 3.7",
"Programming Language :: Python :: 3.8",
"Programming Language :: Python :: 3.9",
],
**extra_kwargs
**extra_kwargs,
)
5 changes: 0 additions & 5 deletions tests/requirements.txt

This file was deleted.

11 changes: 7 additions & 4 deletions tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,14 @@
envlist = black,flake8,security,py

[testenv]
basepython = python3
deps=
-r tests/requirements.txt
deps =
lxml>=4.4
pytest-cov>=2.8
pytest>=5.4
commands =
py.test --cov-report term --cov=cssselect
pytest --cov=cssselect \
--cov-report=term-missing --cov-report=html --cov-report=xml \
--verbose {posargs: cssselect tests}

[testenv:black]
deps =
Expand Down