cerry-pick packaging & ci changes from reverted PR #2879

This commit is contained in:
Cosimo Lupo 2022-11-14 13:48:39 +00:00
parent 2f0b065b30
commit cf28372e2d
No known key found for this signature in database
GPG Key ID: DF65A8A5A119C9A8
3 changed files with 20 additions and 9 deletions

View File

@ -9,6 +9,10 @@ on:
permissions:
contents: read
env:
# turns off tox's output redirection so we can debug package installation
TOX_OPTIONS: -vv
jobs:
lint:
runs-on: ubuntu-latest
@ -46,9 +50,9 @@ jobs:
- name: Install packages
run: pip install tox coverage
- name: Run Tox
run: tox -e py-cov
run: tox $TOX_OPTIONS -e py-cov
- name: Run Tox without lxml
run: tox -e py-cov-nolxml
run: tox $TOX_OPTIONS -e py-cov-nolxml
- name: Produce coverage files
run: |
coverage combine
@ -71,11 +75,11 @@ jobs:
- name: Set up Python 3.x
uses: actions/setup-python@v4
with:
python-version: "3.10"
python-version: "3.11"
- name: Install packages
run: pip install tox
- name: Run Tox
run: tox -e py-cy-nolxml
run: tox $TOX_OPTIONS -e py-cy-nolxml
test-pypy3:
runs-on: ubuntu-latest
@ -85,8 +89,8 @@ jobs:
- name: Set up Python pypy3
uses: actions/setup-python@v4
with:
python-version: "pypy-3.7"
python-version: "pypy-3.8"
- name: Install packages
run: pip install tox
- name: Run Tox
run: tox -e pypy3-nolxml
run: tox $TOX_OPTIONS -e pypy3-nolxml

View File

@ -153,7 +153,11 @@ classifiers = {"classifiers": [
"Natural Language :: English",
"Operating System :: OS Independent",
"Programming Language :: Python",
"Programming Language :: Python :: 2",
"Programming Language :: Python :: 3.7",
"Programming Language :: Python :: 3.8",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3",
"Topic :: Text Processing :: Fonts",
"Topic :: Multimedia :: Graphics",

View File

@ -1,6 +1,6 @@
[tox]
minversion = 3.0
envlist = mypy, py3{7,8,9}-cov, htmlcov
envlist = mypy, py3{7,8,9,10,11}-cov, htmlcov
skip_missing_interpreters=true
[testenv]
@ -11,12 +11,15 @@ setenv =
# relatively recent 'manylinux2014' platform tag.
# https://github.com/tox-dev/tox/issues/791#issuecomment-518713438
download = true
# building lxml from source takes too long on CI, force it to download pre-compiled
# wheel or fail if none is found with --only-binary=lxml
install_command = python -m pip install --only-binary=lxml {opts} {packages}
deps =
cov: coverage>=4.3
pytest
pytest-randomly
-rrequirements.txt
!nolxml: lxml==4.6.4
!nolxml: lxml==4.9.0
extras =
ufo
woff