Skip to content

Commit

Permalink
Update pypi deployment
Browse files Browse the repository at this point in the history
Signed-off-by: Johannes Mueller <[email protected]>
  • Loading branch information
johannes-mueller committed Oct 2, 2024
1 parent 0631a4b commit 5ccbec2
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 27 deletions.
10 changes: 5 additions & 5 deletions .github/workflows/pypi-deploy-odbclient.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,14 +21,14 @@ jobs:
- uses: actions/setup-python@v5
name: Install Python
with:
python-version: '3.8'
python-version: '3.12'

- name: Install setuptools
run: |
pip install -U setuptools setuptools_scm wheel
- name: Build wheels
run: |
python setup.py bdist_wheel
pip wheel --no-deps -w dist .
- uses: actions/upload-artifact@v4
with:
name: artifact-wheel
Expand All @@ -46,14 +46,14 @@ jobs:
- uses: actions/setup-python@v5
name: Install Python
with:
python-version: '3.8'
python-version: '3.12'

- name: Install setuptools
run: |
pip install -U setuptools setuptools_scm wheel
pip install -U setuptools setuptools_scm build
- name: Build sdist
run: python setup.py sdist
run: python -m build . --sdist

- uses: actions/upload-artifact@v4
with:
Expand Down
34 changes: 12 additions & 22 deletions .github/workflows/pypi-deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,9 @@ on:
release:
types: [published]

env:
CIBW_BUILD: cp37-* cp38-* cp39-* cp310-*
CIBW_BEFORE_BUILD: pip install cython
CIBW_MANYLINUX_X86_64_IMAGE: manylinux2014
CIBW_MANYLINUX_I686_IMAGE: manylinux2014
push:
branches: [ci-debug]


jobs:
build_wheels:
Expand All @@ -24,23 +22,16 @@ jobs:
with:
fetch-depth: 0

- uses: actions/setup-python@v5
name: Install Python
with:
python-version: '3.8'

- name: Install cibuildwheel
run: |
# python -m pip install cibuildwheel
pip install -U setuptools setuptools_scm wheel
- name: Build wheels
run: |
# python -m cibuildwheel --output-dir wheelhouse
python setup.py bdist_wheel
uses: pypa/[email protected]
env:
CIBW_BUILD: cp38-* cp39-* cp310-* cp311-* cp312-*
CIBW_MANYLINUX_X86_64_IMAGE: manylinux2014

- uses: actions/upload-artifact@v4
with:
name: artifact-wheel-${{ matrix.os }}
path: ./dist/*.whl
path: ./wheelhouse/*.whl


build_sdist:
Expand All @@ -54,14 +45,13 @@ jobs:
- uses: actions/setup-python@v5
name: Install Python
with:
python-version: '3.8'
python-version: '3.12'

- name: Install setuptools
run: |
pip install -U setuptools setuptools_scm wheel
pip install -U setuptools setuptools_scm wheel build
- name: Build sdist
run: python setup.py sdist
run: python -m build . --sdist

- uses: actions/upload-artifact@v4
with:
Expand Down

0 comments on commit 5ccbec2

Please sign in to comment.