Skip to content

Commit

Permalink
BUILD: make sure setuptools_scm is installed in build
Browse files Browse the repository at this point in the history
  • Loading branch information
ColmTalbot committed Jun 22, 2023
1 parent c25bd14 commit 765d88c
Showing 1 changed file with 5 additions and 10 deletions.
15 changes: 5 additions & 10 deletions .github/workflows/build-wheels.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,15 +19,14 @@ jobs:
- uses: RalfG/python-wheels-manylinux-build@v0.4.2
with:
python-versions: 'cp39-cp39 cp310-cp310 cp311-cp311'
build-requirements: 'cython numpy'
build-requirements: 'cython numpy setuptools_scm'
pip-wheel-args: '-v --wheel-dir=wheelhouse --no-deps'
- uses: actions/upload-artifact@v3
with:
name: wheelhouse
path: wheelhouse

build-other:
# runs-on: windows-latest
runs-on: ${{ matrix.os }}

strategy:
Expand All @@ -44,7 +43,7 @@ jobs:
python-version: ${{ matrix.python-version }}
- name: Install dependencies
run: |
python -m pip install --upgrade pip wheel setuptools
python -m pip install --upgrade pip wheel setuptools setuptools_scm
python -m pip install cython oldest-supported-numpy
- name: Build wheel
run: |
Expand All @@ -70,7 +69,7 @@ jobs:
- name: Run import tests
run: |
cd ../
python -c "import cached_interpolate; print(cached_interpolate.__file__)"
python -c "import cached_interpolate; print(cached_interpolate.__file__, cached_interpolate.__version__)"
python -c "import cached_interpolate.build"
- uses: actions/upload-artifact@v3
with:
Expand All @@ -88,14 +87,14 @@ jobs:
python-version: '3.x'
- name: Install dependencies
run: |
python -m pip install --upgrade pip setuptools
python -m pip install --upgrade pip setuptools setuptools_scm
python -m pip install numpy cython
- name: Build package
run: |
python setup.py sdist --verbose
python -m pip install --debug -vv dist/*
cd ../
python -c "import cached_interpolate"
python -c "import cached_interpolate; print(cached_interpolate.__file__, cached_interpolate.__version__)))"
python -c "import cached_interpolate.build"
cd -
- uses: actions/upload-artifact@v3
Expand All @@ -114,9 +113,6 @@ jobs:
uses: actions/setup-python@v3
with:
python-version: '3.x'
# - name: Install dependencies
# run: |
# python -m pip install --upgrade pip setuptools
- name: Download artifact
uses: actions/download-artifact@v3
with:
Expand All @@ -130,7 +126,6 @@ jobs:
- name: Gather artifacts
run: |
ls
# mv wheelhouse/* dist/
ls dist
rm dist/*-linux_x86_64.whl
# - name: Publish test package
Expand Down

0 comments on commit 765d88c

Please sign in to comment.