Uh oh!
There was an error while loading.Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork15
Extending the python support to 3.13 and 3.14#134
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to ourterms of service andprivacy statement. We’ll occasionally send you account related emails.
Already on GitHub?Sign in to your account
Merged
Uh oh!
There was an error while loading.Please reload this page.
Merged
Changes fromall commits
Commits
Show all changes
17 commits Select commitHold shift + click to select a range
fa9f977 testing builds for python 3.13 adn 3.14 for free threading support
SwayamInSync3cf2cc9 updating cibuildwheel
SwayamInSync7784703 updating python
SwayamInSync05f2cf1 Merge pull request #3 from SwayamInSync/python-coverage
SwayamInSync4c76de7 Merge branch 'main' into main
SwayamInSync2260c98 testing 3.13t and 3.14t on macos
SwayamInSynce5462e0 adding cibw
SwayamInSyncf12ff3c enablign cibw free-thread
SwayamInSync05d2d6c enablign cibw free-thread
SwayamInSync0edbba3 enablign cibw free-thread
SwayamInSyncf11b08b adding pytest-test-parallel
SwayamInSyncd46a8f7 edit extension
SwayamInSync9e28e06 checking linux
SwayamInSync8359f0c Merge branch 'main' into python-coverage
SwayamInSyncccf066d checking windows
SwayamInSync15abf93 and they all worked
SwayamInSync8695461 Merge pull request #4 from SwayamInSync/python-coverage
SwayamInSyncFile filter
Filter by extension
Conversations
Failed to load comments.
Loading
Uh oh!
There was an error while loading.Please reload this page.
Jump to
Jump to file
Failed to load files.
Loading
Uh oh!
There was an error while loading.Please reload this page.
Diff view
Diff view
There are no files selected for viewing
48 changes: 33 additions & 15 deletions.github/workflows/build_wheels.yml
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -27,19 +27,20 @@ jobs: | ||
| - name: Set up Python | ||
| uses: actions/setup-python@v4 | ||
| with: | ||
| python-version: ">=3.11.0" | ||
SwayamInSync marked this conversation as resolved. Show resolvedHide resolvedUh oh!There was an error while loading.Please reload this page. | ||
| - name: Verify QuadBLAS submodule | ||
| run: | | ||
| ls -la quaddtype/numpy_quaddtype/QBLAS/ | ||
| ls -la quaddtype/numpy_quaddtype/QBLAS/include/quadblas/ | ||
| - name: Install cibuildwheel | ||
| run: pip install cibuildwheel==3.1.4 | ||
| - name: Build wheels | ||
| env: | ||
| CIBW_BUILD: "cp310-manylinux_x86_64 cp311-manylinux_x86_64 cp312-manylinux_x86_64 cp313-manylinux_x86_64 cp313t-manylinux_x86_64 cp314-manylinux_x86_64 cp314t-manylinux_x86_64" | ||
| CIBW_ENABLE: cpython-prerelease cpython-freethreading | ||
| CIBW_MANYLINUX_X86_64_IMAGE: manylinux_2_28 | ||
| CIBW_BUILD_VERBOSITY: "3" | ||
| CIBW_BEFORE_ALL: | | ||
| @@ -64,7 +65,11 @@ jobs: | ||
| auditwheel repair -w {dest_dir} --plat manylinux_2_28_x86_64 {wheel} | ||
| CIBW_TEST_COMMAND: | | ||
| pip install {package}[test] | ||
| if python -c "import sys; exit(0 if hasattr(sys, '_is_gil_enabled') and not sys._is_gil_enabled() else 1)"; then | ||
| pytest --parallel-threads=10 --iterations=10 {project}/tests | ||
| else | ||
| pytest -s {project}/tests | ||
| fi | ||
| CIBW_TEST_EXTRAS: "test" | ||
| run: | | ||
| python -m cibuildwheel --output-dir wheelhouse | ||
| @@ -90,7 +95,7 @@ jobs: | ||
| - name: Set up Python | ||
| uses: actions/setup-python@v4 | ||
| with: | ||
| python-version: ">=3.11.0" | ||
| - name: Install dependencies | ||
| run: | | ||
| @@ -117,12 +122,16 @@ jobs: | ||
| ls -la quaddtype/numpy_quaddtype/QBLAS/ | ||
| ls -la quaddtype/numpy_quaddtype/QBLAS/include/quadblas/ | ||
| - name: Installing Python dependencies | ||
| run: | | ||
| pip install -U pip | ||
| pip install cibuildwheel==3.1.4 | ||
| pip install pytest-run-parallel | ||
| - name: Build wheels | ||
| env: | ||
| CIBW_BUILD: "cp310-* cp311-* cp312-* cp313-* cp314-* cp313t-* cp314t-*" | ||
| CIBW_ENABLE: cpython-prerelease cpython-freethreading | ||
| CIBW_ARCHS_MACOS: ${{ matrix.os == 'macos-13' && 'x86_64' || 'arm64' }} | ||
| CIBW_BUILD_VERBOSITY: "3" | ||
| CIBW_ENVIRONMENT: > | ||
| @@ -136,7 +145,11 @@ jobs: | ||
| delocate-wheel --require-archs {delocate_archs} -w {dest_dir} -v {wheel} | ||
| CIBW_TEST_COMMAND: | | ||
| pip install {package}[test] | ||
| if python -c "import sys; exit(0 if hasattr(sys, '_is_gil_enabled') and not sys._is_gil_enabled() else 1)"; then | ||
| pytest --parallel-threads=10 --iterations=10 {project}/tests | ||
| else | ||
| pytest -s {project}/tests | ||
| fi | ||
| CIBW_TEST_EXTRAS: "test" | ||
| run: | | ||
| python -m cibuildwheel --output-dir wheelhouse | ||
| @@ -165,10 +178,10 @@ jobs: | ||
| with: | ||
| arch: ${{ matrix.architecture }} | ||
| - name: Set up Python | ||
| uses: actions/setup-python@v4 | ||
| with: | ||
| python-version: ">=3.11.0" | ||
| architecture: ${{ matrix.architecture }} | ||
| - name: Install CMake | ||
| @@ -193,12 +206,13 @@ jobs: | ||
| shell: bash -l {0} | ||
| run: | | ||
| pip install -U pip | ||
| pip install cibuildwheel==3.1.4 ninja meson meson-python numpy delvewheel pytest | ||
| - name: Build wheels | ||
| env: | ||
| CIBW_BUILD: "cp310-* cp311-* cp312-* cp313-* cp314-* cp313t-* cp314t-*" | ||
| CIBW_ENABLE: cpython-prerelease cpython-freethreading | ||
| CIBW_SKIP: "pp* cp36-* cp37-* cp38-* cp39-*" | ||
| CIBW_ARCHS_WINDOWS: ${{ matrix.architecture == 'x86' && 'x86' || 'AMD64' }} | ||
| CIBW_BUILD_VERBOSITY: "3" | ||
| DISTUTILS_USE_SDK: "1" | ||
| @@ -215,7 +229,11 @@ jobs: | ||
| CIBW_REPAIR_WHEEL_COMMAND: 'delvewheel repair -w {dest_dir} {wheel} --add-path C:\sleef\bin' | ||
| CIBW_TEST_COMMAND: | | ||
| pip install {package}[test] | ||
| if python -c "import sys; exit(0 if hasattr(sys, '_is_gil_enabled') and not sys._is_gil_enabled() else 1)"; then | ||
| pytest --parallel-threads=10 --iterations=10 {project}/tests | ||
| else | ||
| pytest -s {project}/tests | ||
| fi | ||
| CIBW_TEST_EXTRAS: test | ||
| CIBW_TEST_FAIL_FAST: 1 | ||
| shell: pwsh | ||
20 changes: 15 additions & 5 deletionsquaddtype/numpy_quaddtype/src/quaddtype_main.c
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.Learn more about bidirectional Unicode characters
1 change: 1 addition & 0 deletionsquaddtype/pyproject.toml
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -21,4 +21,5 @@ dependencies = [ | ||
| [project.optional-dependencies] | ||
| test = [ | ||
| "pytest", | ||
| "pytest-run-parallel" | ||
| ] | ||
Oops, something went wrong.
Uh oh!
There was an error while loading.Please reload this page.
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.