Skip to content

Commit

Permalink
add tests to sdist
Browse files Browse the repository at this point in the history
  • Loading branch information
maxbachmann committed Jun 9, 2022
1 parent 704e85c commit 1c583e8
Show file tree
Hide file tree
Showing 5 changed files with 20 additions and 0 deletions.
1 change: 1 addition & 0 deletions .github/workflows/branchbuild.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ jobs:
- name: build
run: |
git apply ./tools/sdist.patch
pip install build; python -m build --sdist
# test whether tarball contains all files required for compiling
pip install dist/rapidfuzz-*.tar.gz -v
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/releasebuild.yml
Original file line number Diff line number Diff line change
Expand Up @@ -153,6 +153,7 @@ jobs:
- name: Build sdist
run: |
git apply ./tools/sdist.patch
pip install build
python -m build --sdist
# test whether tarball contains all files required for compiling
Expand Down
5 changes: 5 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
## Changelog

### [2.0.12] - 2022-*
#### Changed
- add tests to sdist
- remove cython dependency for sdist

### [2.0.11] - 2022-04-23
#### Changed
- relax version requirements of dependencies to simplify packaging
Expand Down
1 change: 1 addition & 0 deletions MANIFEST.in
Original file line number Diff line number Diff line change
Expand Up @@ -10,3 +10,4 @@ include rapidfuzz/py.typed

recursive-include rapidfuzz CMakeLists.txt
recursive-include rapidfuzz *.hpp *.h *.cpp *.cxx *.pyx *.pxd
recursive-include tests *
12 changes: 12 additions & 0 deletions tools/sdist.patch
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
diff --git a/pyproject.toml b/pyproject.toml
index 3f46c01..f0c66b5 100644
--- a/pyproject.toml
+++ b/pyproject.toml
@@ -5,7 +5,6 @@ requires = [
"cmake",
"ninja; platform_system!='Windows'",
"oldest-supported-numpy",
- "Cython==3.0.0a10",
"rapidfuzz_capi==1.0.5"
]
build-backend = "setuptools.build_meta"

0 comments on commit 1c583e8

Please sign in to comment.