forked from xmlsec/python-xmlsec
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
71 changed files
with
1,149 additions
and
1,067 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
name: linuxbrew | ||
on: [push, pull_request] | ||
jobs: | ||
linuxbrew: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- name: Setup Python | ||
uses: actions/setup-python@v4 | ||
with: | ||
python-version: ${{ matrix.python }} | ||
- name: Install build dependencies | ||
run: | | ||
sudo apt install -y build-essential procps curl file git | ||
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)" | ||
test -d ~/.linuxbrew && eval $(~/.linuxbrew/bin/brew shellenv) | ||
test -r ~/.bash_profile && echo "eval \$($(brew --prefix)/bin/brew shellenv)" >>~/.bash_profile | ||
echo "eval \$($(brew --prefix)/bin/brew shellenv)" >>~/.profile | ||
brew update | ||
brew install python gcc libxml2 libxmlsec1 pkg-config | ||
pip3 install --upgrade setuptools wheel build | ||
ln -s $(brew --prefix)/bin/gcc-12 $(brew --prefix)/bin/gcc-5 | ||
ls -l $(brew --prefix)/bin/gcc* | ||
- name: Build linux_x86_64 wheel | ||
run: | | ||
python3 -m build | ||
rm -rf build/ | ||
- name: Install test dependencies | ||
run: | | ||
pip3 install --upgrade -r requirements-test.txt | ||
pip3 install xmlsec --only-binary=xmlsec --no-index --find-links=dist/ | ||
- name: Run tests | ||
run: | | ||
pytest -v --color=yes |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,48 @@ | ||
name: manylinux | ||
on: [push, pull_request] | ||
jobs: | ||
pep513: | ||
runs-on: ubuntu-latest | ||
strategy: | ||
matrix: | ||
python-abi: [cp36-cp36m, cp37-cp37m, cp38-cp38, cp39-cp39, cp310-cp310] | ||
image: | ||
- manylinux2010_x86_64 | ||
- manylinux_2_24_x86_64 | ||
- musllinux_1_1_x86_64 | ||
exclude: | ||
- image: manylinux2010_x86_64 | ||
python-abi: cp310-cp310 | ||
- image: manylinux2010_i686 | ||
python-abi: cp310-cp310 | ||
container: quay.io/pypa/${{ matrix.image }} | ||
steps: | ||
- uses: actions/checkout@v1 | ||
- name: Install build dependencies | ||
run: | | ||
# https://github.com/actions/runner/issues/2033 | ||
chown -R $(id -u):$(id -g) $PWD | ||
/opt/python/${{ matrix.python-abi }}/bin/pip install --upgrade pip setuptools wheel build | ||
- name: Set environment variables | ||
shell: bash | ||
run: | | ||
echo "PKGVER=$(/opt/python/${{ matrix.python-abi }}/bin/python setup.py --version)" >> $GITHUB_ENV | ||
- name: Build linux_x86_64 wheel | ||
env: | ||
PYXMLSEC_STATIC_DEPS: true | ||
run: | | ||
/opt/python/${{ matrix.python-abi }}/bin/python -m build | ||
- name: Label manylinux wheel | ||
run: | | ||
ls -la dist/ | ||
auditwheel show dist/xmlsec-${{ env.PKGVER }}-${{ matrix.python-abi }}-linux_x86_64.whl | ||
auditwheel repair dist/xmlsec-${{ env.PKGVER }}-${{ matrix.python-abi }}-linux_x86_64.whl | ||
ls -la wheelhouse/ | ||
auditwheel show wheelhouse/xmlsec-${{ env.PKGVER }}-${{ matrix.python-abi }}-*${{ matrix.image }}*.whl | ||
- name: Install test dependencies | ||
run: | | ||
/opt/python/${{ matrix.python-abi }}/bin/pip install --upgrade -r requirements-test.txt | ||
/opt/python/${{ matrix.python-abi }}/bin/pip install xmlsec --only-binary=xmlsec --no-index --find-links=wheelhouse/ | ||
- name: Run tests | ||
run: | | ||
/opt/python/${{ matrix.python-abi }}/bin/pytest -v --color=yes |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
name: opensuse-tumbleweed | ||
on: [push, pull_request] | ||
jobs: | ||
tumbleweed: | ||
runs-on: ubuntu-latest | ||
container: opensuse/tumbleweed | ||
strategy: | ||
matrix: | ||
python-version: ["3.8", "3.9", "3.10"] | ||
steps: | ||
- uses: actions/checkout@v1 | ||
- name: Install build dependencies | ||
run: | | ||
zypper -n install -t pattern devel_basis | ||
PKGVER_NO_DOT=$(tr -d '.' <<< ${{ matrix.python-version }}) | ||
zypper -n install git libxmlsec1-openssl1 xmlsec1-openssl-devel python${PKGVER_NO_DOT}-devel python${PKGVER_NO_DOT}-pip | ||
python${{ matrix.python-version }} -m venv .venv | ||
.venv/bin/python -m pip install --upgrade pip setuptools wheel | ||
- name: Build linux_x86_64 wheel | ||
run: | | ||
.venv/bin/python setup.py bdist_wheel | ||
rm -rf build/ | ||
- name: Install test dependencies | ||
run: | | ||
.venv/bin/python -m pip install --upgrade -r requirements-test.txt | ||
.venv/bin/python -m pip install xmlsec --only-binary=xmlsec --no-index --find-links=dist/ | ||
- name: Run tests | ||
run: | | ||
.venv/bin/python -m pytest -v --color=yes |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,48 @@ | ||
# See https://pre-commit.com for more information | ||
# See https://pre-commit.com/hooks.html for more hooks | ||
repos: | ||
- repo: https://github.com/psf/black | ||
rev: 22.8.0 | ||
hooks: | ||
- id: black | ||
types: [] | ||
files: ^.*.pyi?$ | ||
exclude: ^doc/ | ||
- repo: https://github.com/pre-commit/pre-commit-hooks | ||
rev: v4.3.0 | ||
hooks: | ||
- id: no-commit-to-branch | ||
- id: trailing-whitespace | ||
- id: end-of-file-fixer | ||
- id: check-yaml | ||
- id: check-added-large-files | ||
- id: check-ast | ||
- id: check-merge-conflict | ||
- id: check-json | ||
- id: detect-private-key | ||
exclude: ^.*/rsakey.pem$ | ||
- id: mixed-line-ending | ||
- id: pretty-format-json | ||
args: [--autofix] | ||
- repo: https://github.com/PyCQA/flake8 | ||
rev: 5.0.4 | ||
hooks: | ||
- id: flake8 | ||
exclude: ^setup.py$ | ||
additional_dependencies: [flake8-docstrings, flake8-bugbear, flake8-logging-format, flake8-builtins, flake8-eradicate, flake8-fixme, pep8-naming, flake8-pep3101, flake8-annotations-complexity,flake8-pyi] | ||
- repo: https://github.com/PyCQA/isort | ||
rev: 5.10.1 | ||
hooks: | ||
- id: isort | ||
- repo: https://github.com/pre-commit/mirrors-mypy | ||
rev: v0.981 | ||
hooks: | ||
- id: mypy | ||
exclude: (setup.py|tests/.*.py|doc/.*) | ||
types: [] | ||
files: ^.*.pyi?$ | ||
additional_dependencies: [lxml-stubs,types-docutils] | ||
- repo: https://github.com/pre-commit/pygrep-hooks | ||
rev: v1.9.0 | ||
hooks: | ||
- id: rst-backticks |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -5,7 +5,6 @@ notifications: | |
email: false | ||
matrix: | ||
include: | ||
- python: 2.7 | ||
- python: 3.5 | ||
- python: 3.6 | ||
- python: 3.7 | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.