Skip to content

Commit

Permalink
Actually use build-constraints.txt (#26)
Browse files Browse the repository at this point in the history
Use the build-constraints.txt file when building all repos, to avoid
using numpy 2 which can break spacy.

Continues on the work done in #25. 

---

Tested on SuffolkLITLab/FormFyxer#136.
  • Loading branch information
BryceStevenWilley authored Jun 17, 2024
1 parent 0aa9cb4 commit 9c88ea0
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion publish/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,8 @@ runs:
run: python -m compileall . -q
shell: bash
- name: Build a binary wheel and a source tarball
run: python -m build --sdist --wheel --outdir dist/
# Avoids numpy 2, which breaks some builds. See https://github.com/SuffolkLITLab/ALActions/pull/25
run: PIP_CONSTRAINT=https://raw.githubusercontent.com/SuffolkLITLab/ALActions/main/publish/build-constraints.txt python -m build --sdist --wheel --outdir dist/
shell: bash
- if: ${{ success() && startsWith(github.ref, 'refs/tags') }}
name: Ensure github tag is the same as the pypi tag
Expand Down

0 comments on commit 9c88ea0

Please sign in to comment.