Skip to content

Commit

Permalink
Migrate to CI buildwheel entirely
Browse files Browse the repository at this point in the history
  • Loading branch information
oerc0122 committed Nov 15, 2024
1 parent ff71df2 commit 4cd0a6d
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 17 deletions.
19 changes: 4 additions & 15 deletions .github/workflows/build_upload_pypi_wheels.yml
Original file line number Diff line number Diff line change
Expand Up @@ -61,24 +61,13 @@ jobs:
shell: bash -l {0}
run: |
python -m pip install --upgrade pip build wheel twine
- name: Build Python wheel

if: matrix.os != 'ubuntu-latest'
shell: bash -l {0}
env:
NUMPY_VERSION: 2.0
run: |
# Build against lowest required Numpy version
python -m pip install numpy==${NUMPY_VERSION}
python -m build -o wheelhouse --wheel .
- name: Build manylinux Python wheel
if: matrix.os == 'ubuntu-latest'
uses: pypa/[email protected]
env:
CIBW_BUILD: ${{ matrix.manylinux-version-tag}}-manylinux*
CIBW_BEFORE_BUILD: python -m pip install numpy==2.0
CIBW_ARCHS: x86_64
# env:
# CIBW_BUILD: ${{ matrix.manylinux-version-tag}}-manylinux*
# CIBW_BEFORE_BUILD: python -m pip install numpy==2.0
# CIBW_ARCHS: x86_64
with:
output-dir: wheelhouse

Expand Down
4 changes: 2 additions & 2 deletions build_utils/version.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,8 @@
version += f"+{dirty[0]}.{dirty[1]}{'.dirty' if len(dirty) > 2 else ''}"
break

except (OSError, subprocess.CalledProcessError):
continue
except (OSError, subprocess.CalledProcessError) as err:
print(f"Tried {gitcmd}, returned: {err}")
else: # Can't use git
version_file = Path(__file__).parent.parent / "euphonic" / "version.py"
version = version_file.read_text().split("=")[1].strip('"\n ')
Expand Down

0 comments on commit 4cd0a6d

Please sign in to comment.