Skip to content

Commit

Permalink
Only py39
Browse files Browse the repository at this point in the history
  • Loading branch information
mxamin committed Apr 15, 2024
1 parent 534180c commit 80be77e
Showing 1 changed file with 42 additions and 40 deletions.
82 changes: 42 additions & 40 deletions .github/workflows/wheels.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,45 +18,45 @@ on:
permissions: {}

jobs:
sdist:
runs-on: ubuntu-latest

permissions:
contents: write

steps:
- uses: actions/[email protected]
with:
fetch-depth: 0

- name: Set up Python
uses: actions/[email protected]
with:
python-version: "3.9"
# python-version: "3.x"

- name: Install build dependencies
run: |
pip install --upgrade pip setuptools wheel
- name: Package source dist
run: python setup.py sdist

- name: Install test dependencies
run: |
sudo apt-get update -y -q
sudo apt-get install -y -q libxml2-dev libxslt1-dev libxmlsec1-dev libxmlsec1-openssl opensc softhsm2 libengine-pkcs11-openssl
pip install --upgrade -r requirements-test.txt --no-binary lxml
pip install dist/xmlsec-$(python setup.py --version).tar.gz
- name: Run tests
run: pytest -v --color=yes

- name: Upload sdist
uses: actions/[email protected]
with:
name: sdist
path: dist/*.tar.gz
# sdist:
# runs-on: ubuntu-latest

# permissions:
# contents: write

# steps:
# - uses: actions/[email protected]
# with:
# fetch-depth: 0

# - name: Set up Python
# uses: actions/[email protected]
# with:
# python-version: "3.9"
# # python-version: "3.x"

# - name: Install build dependencies
# run: |
# pip install --upgrade pip setuptools wheel

# - name: Package source dist
# run: python setup.py sdist

# - name: Install test dependencies
# run: |
# sudo apt-get update -y -q
# sudo apt-get install -y -q libxml2-dev libxslt1-dev libxmlsec1-dev libxmlsec1-openssl opensc softhsm2 libengine-pkcs11-openssl
# pip install --upgrade -r requirements-test.txt --no-binary lxml
# pip install dist/xmlsec-$(python setup.py --version).tar.gz

# - name: Run tests
# run: pytest -v --color=yes

# - name: Upload sdist
# uses: actions/[email protected]
# with:
# name: sdist
# path: dist/*.tar.gz

generate-wheels-matrix:
# Create a matrix of all architectures & versions to build.
Expand Down Expand Up @@ -89,7 +89,9 @@ jobs:
} | jq -sc
)
echo "include=$MATRIX"
echo "include=$MATRIX" >> $GITHUB_OUTPUT
# echo "include=$MATRIX" >> $GITHUB_OUTPUT
echo "include=[{\"only\":\"cp37-win_amd64\",\"os\":\"windows-2019\"}]" >> $GITHUB_OUTPUT
build_wheels:
name: Build for ${{ matrix.only }}
Expand Down

0 comments on commit 80be77e

Please sign in to comment.