-
-
Notifications
You must be signed in to change notification settings - Fork 160
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Support Python 3.13 and introduce pypa/cibuildwheel (#509)
* CI: use cibuildwheel to build wheels across all supported platforms * CI: delete old PyPI publish workflows * CI: Remove unused scripts * CI: Drop Python 3.8 support and add Python 3.13 * CI: Lint and format workflows YAML files * CI: Upgrade used Actions * bump version to 0.3.16 * CI: Rename the job name to 'publish' in publish_wheels workflow
- Loading branch information
1 parent
2c9cc34
commit e8731d2
Showing
13 changed files
with
97 additions
and
159 deletions.
There are no files selected for viewing
This file contains 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
This file contains 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
This file contains 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
This file contains 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 |
---|---|---|
@@ -0,0 +1,54 @@ | ||
name: Build and Publish | ||
|
||
on: | ||
workflow_dispatch: | ||
|
||
jobs: | ||
publish: | ||
runs-on: ${{ matrix.target[0] }} | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
target: | ||
- [ubuntu-latest, manylinux_x86_64] | ||
- [windows-latest, win_amd64] | ||
- [macos-13, macosx_x86_64] | ||
- [macos-14, macosx_arm64] | ||
python: | ||
- cp39 | ||
- cp310 | ||
- cp311 | ||
- cp312 | ||
- cp313 | ||
|
||
steps: | ||
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2 | ||
with: | ||
submodules: true | ||
|
||
- name: Setup msbuild | ||
uses: microsoft/setup-msbuild@6fb02220983dee41ce7ae257b6f4d8f9bf5ed4ce # v2 | ||
if: matrix.target[0] == 'windows-latest' | ||
|
||
- name: Build wheels using cibuildwheel | ||
uses: pypa/cibuildwheel@ee63bf16da6cddfb925f542f2c7b59ad50e93969 # v2.22.0 | ||
env: | ||
CIBW_MANYLINUX_X86_64_IMAGE: manylinux_2_28 | ||
CIBW_BUILD: ${{ matrix.python }}-${{ matrix.target[1] }} | ||
CIBW_BUILD_VERBOSITY: 1 | ||
with: | ||
package-dir: . | ||
output-dir: wheelhouse | ||
|
||
- name: Upload Artifacts | ||
uses: actions/upload-artifact@65c4c4a1ddee5b72f698fdd19549f0f0fb45cf08 # v4.6.0 | ||
with: | ||
name: TenSEAL-${{ matrix.python }}-${{ matrix.target[0] }} | ||
path: ./wheelhouse/*.whl | ||
|
||
- name: Publish wheels to PyPI | ||
uses: pypa/gh-action-pypi-publish@76f52bc884231f62b9a034ebfe128415bbaabdfc # v1.12.4 | ||
with: | ||
packages-dir: ./wheelhouse/ | ||
user: ${{ secrets.PYPI_USERNAME }} | ||
password: ${{ secrets.PYPI_PASSWORD }} |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains 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
This file contains 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 |
---|---|---|
@@ -1 +1 @@ | ||
__version__ = "0.3.15" | ||
__version__ = "0.3.16" |
e8731d2
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Possible performance regression was detected for benchmark 'Python-Benchmarks'.
Benchmark result of this commit is worse than the previous benchmark result exceeding threshold
2
.tests/python/benchmarks/test_ops.py::test_perf_bfv[4096-bfv_test-add]
6777.593276636239
iter/sec (stddev: 0.00006142457129160372
)14342.399547931303
iter/sec (stddev: 0.0000023282726278802457
)2.12
tests/python/benchmarks/test_ops.py::test_perf_bfv[8192-bfv_test-add]
5295.300928695376
iter/sec (stddev: 0.000033200738437369426
)13927.898611586093
iter/sec (stddev: 0.000004039110197419975
)2.63
tests/python/benchmarks/test_ops.py::test_perf_ckks_ops[4096-ckks_test-sub]
9584.052137840763
iter/sec (stddev: 0.00003541492490755972
)26720.092604236892
iter/sec (stddev: 0.0000010384824284185962
)2.79
tests/python/benchmarks/test_ops.py::test_perf_ckks_ops[8192-ckks_test-sub]
6295.247088528151
iter/sec (stddev: 0.00005884553786093269
)13652.029959605636
iter/sec (stddev: 0.0000010996720353690867
)2.17
tests/python/benchmarks/test_ops.py::test_perf_ckks_ops[16384-ckks_test-negate]
3263.7250407919983
iter/sec (stddev: 0.00007459335870498781
)8935.220189872176
iter/sec (stddev: 0.0000018209600090250767
)2.74
tests/python/benchmarks/test_ops.py::test_perf_ckks_plain_ops[256-ckks_test-add]
1328.9993071156193
iter/sec (stddev: 0.00011866249868013332
)2802.92641218396
iter/sec (stddev: 0.000009699243673678022
)2.11
tests/python/benchmarks/test_ops.py::test_perf_ckks_plain_ops[1024-ckks_test-multiply]
490.22832296071755
iter/sec (stddev: 0.0010966134255353819
)1249.543167027641
iter/sec (stddev: 0.000012104272419031728
)2.55
tests/python/benchmarks/test_ops.py::test_perf_ckks_plain_ops[4096-ckks_test-add]
622.2859155363265
iter/sec (stddev: 0.0007353925650605825
)1930.8218952726036
iter/sec (stddev: 0.000010506707612611429
)3.10
This comment was automatically generated by workflow using github-action-benchmark.