cerry-pick packaging & ci changes from reverted PR #2879
This commit is contained in:
parent
2f0b065b30
commit
cf28372e2d
16
.github/workflows/test.yml
vendored
16
.github/workflows/test.yml
vendored
@ -9,6 +9,10 @@ on:
|
|||||||
permissions:
|
permissions:
|
||||||
contents: read
|
contents: read
|
||||||
|
|
||||||
|
env:
|
||||||
|
# turns off tox's output redirection so we can debug package installation
|
||||||
|
TOX_OPTIONS: -vv
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
lint:
|
lint:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
@ -46,9 +50,9 @@ jobs:
|
|||||||
- name: Install packages
|
- name: Install packages
|
||||||
run: pip install tox coverage
|
run: pip install tox coverage
|
||||||
- name: Run Tox
|
- name: Run Tox
|
||||||
run: tox -e py-cov
|
run: tox $TOX_OPTIONS -e py-cov
|
||||||
- name: Run Tox without lxml
|
- name: Run Tox without lxml
|
||||||
run: tox -e py-cov-nolxml
|
run: tox $TOX_OPTIONS -e py-cov-nolxml
|
||||||
- name: Produce coverage files
|
- name: Produce coverage files
|
||||||
run: |
|
run: |
|
||||||
coverage combine
|
coverage combine
|
||||||
@ -71,11 +75,11 @@ jobs:
|
|||||||
- name: Set up Python 3.x
|
- name: Set up Python 3.x
|
||||||
uses: actions/setup-python@v4
|
uses: actions/setup-python@v4
|
||||||
with:
|
with:
|
||||||
python-version: "3.10"
|
python-version: "3.11"
|
||||||
- name: Install packages
|
- name: Install packages
|
||||||
run: pip install tox
|
run: pip install tox
|
||||||
- name: Run Tox
|
- name: Run Tox
|
||||||
run: tox -e py-cy-nolxml
|
run: tox $TOX_OPTIONS -e py-cy-nolxml
|
||||||
|
|
||||||
test-pypy3:
|
test-pypy3:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
@ -85,8 +89,8 @@ jobs:
|
|||||||
- name: Set up Python pypy3
|
- name: Set up Python pypy3
|
||||||
uses: actions/setup-python@v4
|
uses: actions/setup-python@v4
|
||||||
with:
|
with:
|
||||||
python-version: "pypy-3.7"
|
python-version: "pypy-3.8"
|
||||||
- name: Install packages
|
- name: Install packages
|
||||||
run: pip install tox
|
run: pip install tox
|
||||||
- name: Run Tox
|
- name: Run Tox
|
||||||
run: tox -e pypy3-nolxml
|
run: tox $TOX_OPTIONS -e pypy3-nolxml
|
||||||
|
6
setup.py
6
setup.py
@ -153,7 +153,11 @@ classifiers = {"classifiers": [
|
|||||||
"Natural Language :: English",
|
"Natural Language :: English",
|
||||||
"Operating System :: OS Independent",
|
"Operating System :: OS Independent",
|
||||||
"Programming Language :: Python",
|
"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",
|
"Programming Language :: Python :: 3",
|
||||||
"Topic :: Text Processing :: Fonts",
|
"Topic :: Text Processing :: Fonts",
|
||||||
"Topic :: Multimedia :: Graphics",
|
"Topic :: Multimedia :: Graphics",
|
||||||
|
7
tox.ini
7
tox.ini
@ -1,6 +1,6 @@
|
|||||||
[tox]
|
[tox]
|
||||||
minversion = 3.0
|
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
|
skip_missing_interpreters=true
|
||||||
|
|
||||||
[testenv]
|
[testenv]
|
||||||
@ -11,12 +11,15 @@ setenv =
|
|||||||
# relatively recent 'manylinux2014' platform tag.
|
# relatively recent 'manylinux2014' platform tag.
|
||||||
# https://github.com/tox-dev/tox/issues/791#issuecomment-518713438
|
# https://github.com/tox-dev/tox/issues/791#issuecomment-518713438
|
||||||
download = true
|
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 =
|
deps =
|
||||||
cov: coverage>=4.3
|
cov: coverage>=4.3
|
||||||
pytest
|
pytest
|
||||||
pytest-randomly
|
pytest-randomly
|
||||||
-rrequirements.txt
|
-rrequirements.txt
|
||||||
!nolxml: lxml==4.6.4
|
!nolxml: lxml==4.9.0
|
||||||
extras =
|
extras =
|
||||||
ufo
|
ufo
|
||||||
woff
|
woff
|
||||||
|
Loading…
x
Reference in New Issue
Block a user