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
3 changes: 3 additions & 0 deletions .github/workflows/linuxbrew.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
name: linuxbrew
on: [push, pull_request]
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
linuxbrew:
runs-on: ubuntu-latest
Expand Down
5 changes: 4 additions & 1 deletion .github/workflows/macosx.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
name: MacOS
name: macOS
on: [push, pull_request]
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
macosx:
runs-on: macos-latest
Expand Down
5 changes: 4 additions & 1 deletion .github/workflows/manylinux.yml
Original file line number Diff line number Diff line change
@@ -1,11 +1,14 @@
name: manylinux
on: [push, pull_request]
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
manylinux:
runs-on: ubuntu-latest
strategy:
matrix:
python-abi: [cp38-cp38, cp39-cp39, cp310-cp310, cp311-cp311, cp312-cp312, cp313-cp313]
python-abi: [cp39-cp39, cp310-cp310, cp311-cp311, cp312-cp312, cp313-cp313]
image:
- manylinux2014_x86_64
- manylinux_2_28_x86_64
Expand Down
3 changes: 3 additions & 0 deletions .github/workflows/sdist.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
name: sdist
on: [push, pull_request]
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
sdist:
# Avoid Ubuntu 24.04 in sdist workflows, because it contains libxmlsec1-dev
Expand Down
4 changes: 4 additions & 0 deletions .github/workflows/wheels.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,10 @@ on:
pull_request:
workflow_dispatch:

concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true

permissions: {}

jobs:
Expand Down
79 changes: 40 additions & 39 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,51 +1,52 @@
dist: trusty
sudo: false
dist: focal
language: python
travis:
auto_cancel:
push: true
pull_request: true

notifications:
email: false
matrix:
include:
- python: 3.5
- python: 3.6
- python: 3.7
dist: xenial
sudo: required
- python: 3.8
dist: xenial
sudo: required
- python: 3.9
dist: xenial
sudo: required
- python: 3.11
dist: xenial
sudo: required

python:
- "3.9"
- "3.10"
- "3.11"
- "3.12"
- "3.13"

env:
global:
- CFLAGS=-coverage
- LDFLAGS=-coverage -lgcov
- PYXMLSEC_TEST_ITERATIONS=50
- CFLAGS=-coverage
- LDFLAGS=-coverage -lgcov
- PYXMLSEC_TEST_ITERATIONS=50

addons:
apt:
packages:
- libssl-dev
- libxmlsec1
- libxmlsec1-dev
- libxmlsec1-openssl
- libxslt1-dev
- pkg-config
- lcov
- libssl-dev
- libxmlsec1
- libxmlsec1-dev
- libxmlsec1-openssl
- libxslt1-dev
- pkg-config
- lcov

install:
- travis_retry pip install --upgrade pip setuptools wheel
- travis_retry pip install coverage -r requirements-test.txt --upgrade --force-reinstall
- python setup.py bdist_wheel
- pip install xmlsec --only-binary=xmlsec --no-index --find-links=dist/
script: coverage run -m pytest -v tests --color=yes
- travis_retry pip install --upgrade pip setuptools wheel
- travis_retry pip install coverage -r requirements-test.txt --upgrade --force-reinstall
- python setup.py bdist_wheel
- pip install xmlsec --only-binary=xmlsec --no-index --find-links=dist/

script:
- coverage run -m pytest -v tests --color=yes

after_success:
- lcov --capture --no-external --directory . --output-file coverage.info
- lcov --list coverage.info
- bash <(curl -s https://codecov.io/bash) -f coverage.info
- lcov --capture --no-external --directory . --output-file coverage.info
- lcov --list coverage.info
- bash <(curl -s https://codecov.io/bash) -f coverage.info

before_deploy:
- travis_retry pip install Sphinx -r doc/source/requirements.txt
- git apply --verbose --no-index --unsafe-paths --directory=$(python -c "import site; print(site.getsitepackages()[0])") doc/source/sphinx-pr-6916.diff
- sphinx-build -EWanb html doc/source build/sphinx
- travis_retry pip install Sphinx -r doc/source/requirements.txt
- git apply --verbose --no-index --unsafe-paths --directory=$(python -c "import site; print(site.getsitepackages()[0])") doc/source/sphinx-pr-6916.diff
- sphinx-build -EWanb html doc/source build/sphinx
21 changes: 10 additions & 11 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -47,18 +47,17 @@ known_third_party = ['lxml', 'pytest', '_pytest', 'hypothesis']
requires = ['setuptools>=42', 'wheel', 'setuptools_scm[toml]>=3.4', "pkgconfig>=1.5.1", "lxml>=3.8, !=4.7.0"]

[tool.cibuildwheel]
build = [
"cp39-*",
"cp310-*",
"cp311-*",
"cp312-*",
"cp313-*"
]
build-verbosity = 1
build-frontend = "build"
skip = [
"pp*",
"*-musllinux_i686",
# LXML doesn't publish wheels for these platforms, which makes it
# difficult for us to build wheels, so we exclude them.
"cp36-*",
"cp37-*",
"cp38-manylinux_aarch64",
"cp38-musllinux_aarch64",
"cp38-macosx*",
"pp*", # Skips PyPy builds (pp38-*, pp39-*, etc.)
]
test-command = "pytest -v --color=yes {package}/tests"
before-test = "pip install -r requirements-test.txt"
Expand All @@ -68,7 +67,7 @@ test-skip = "*-macosx_arm64"
PYXMLSEC_STATIC_DEPS = "true"

[tool.cibuildwheel.linux]
archs = ["x86_64", "aarch64", "i686"]
archs = ["x86_64", "aarch64"]
environment-pass = [
"PYXMLSEC_LIBXML2_VERSION",
"PYXMLSEC_LIBXSLT_VERSION",
Expand All @@ -81,7 +80,7 @@ archs = ["x86_64", "arm64"]
before-all = "brew install perl"

[tool.cibuildwheel.windows]
archs = ["AMD64", "x86"]
archs = ["AMD64"]

[[tool.cibuildwheel.overrides]]
select = "*-manylinux*"
Expand Down
Loading