-
Notifications
You must be signed in to change notification settings - Fork 25
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Use the pypa/cibuildwheel GitHub Action rather than the lib manually. * Shuffled things around in the YAML until it was finally working. * Now the build uses defaults which Just Work. * Upload artifacts, including to PyPi (test for now). * Bump dependencies (or build would fail). * Remove broken submodule. * Python versions below 3.6 are not supported.
- Loading branch information
Showing
8 changed files
with
56 additions
and
31 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,36 +3,52 @@ name: Build | |
on: | ||
push: | ||
tags: | ||
- 'v*' | ||
- 'v*' | ||
|
||
jobs: | ||
build_wheels: | ||
name: Build wheels on ${{ matrix.os }} | ||
runs-on: ${{ matrix.os }} | ||
strategy: | ||
matrix: | ||
os: [ubuntu-20.04, windows-2019, macOS-10.15] | ||
|
||
env: | ||
CIBW_SKIP: ?p27-* | ||
CIBW_BUILD_VERBOSITY: 3 | ||
BUILD_OUTPUT_PATH: wheelhouse | ||
os: [ubuntu-20.04, windows-2019, macos-10.15] | ||
|
||
steps: | ||
- uses: actions/checkout@v2 | ||
- uses: actions/setup-python@v2 | ||
- name: Install requirements | ||
run: | | ||
curl https://sh.rustup.rs -sSf | sh -s -- -y --default-toolchain=stable | ||
python -m pip install --upgrade pip | ||
python -m pip install -r requirements.txt | ||
- name: Install cibuildwheel | ||
run: python -m pip install cibuildwheel==1.10.0 | ||
- uses: pypa/[email protected] | ||
env: | ||
CIBW_BUILD_VERBOSITY: "1" | ||
CIBW_BEFORE_ALL_LINUX: "curl https://sh.rustup.rs -sSf | sh -s -- --default-toolchain stable -y && yum install -y openssl-devel" | ||
CIBW_ENVIRONMENT: 'PATH="$PATH:$HOME/.cargo/bin"' | ||
CIBW_SKIP: "*-win32" | ||
|
||
- name: Build wheels | ||
run: python -m cibuildwheel --output-dir "$BUILD_OUTPUT_PATH" | ||
- uses: actions/upload-artifact@v2 | ||
with: | ||
path: ./wheelhouse/*.whl | ||
|
||
build_sdist: | ||
name: Build source distribution | ||
runs-on: ubuntu-20.04 | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- uses: actions/setup-python@v2 | ||
- name: Build sdist | ||
run: python -m pip install -r requirements.txt && python setup.py sdist | ||
- uses: actions/upload-artifact@v2 | ||
with: | ||
path: "./$BUILD_OUTPUT_PATH/*.whl" | ||
path: dist/*.tar.gz | ||
|
||
upload_pypi: | ||
needs: [build_wheels, build_sdist] | ||
runs-on: ubuntu-20.04 | ||
steps: | ||
- uses: actions/download-artifact@v2 | ||
with: | ||
name: artifact | ||
path: dist | ||
|
||
- uses: pypa/[email protected] | ||
with: | ||
user: __token__ | ||
password: ${{ secrets.pypi_token }} | ||
repository_url: https://test.pypi.org/legacy/ |
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 |
---|---|---|
|
@@ -5,8 +5,8 @@ authors = ["Lonami Exo <[email protected]>"] | |
edition = "2018" | ||
|
||
[dependencies] | ||
grammers-crypto = "0.2.0" | ||
pyo3 = { version = "0.13.2", features = ["extension-module"] } | ||
grammers-crypto = "0.3.0" | ||
pyo3 = { version = "0.14.4", features = ["extension-module"] } | ||
|
||
[lib] | ||
name = "cryptg" | ||
|
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,6 @@ | ||
[build-system] | ||
requires = [ | ||
"setuptools-rust>=0.12.1", | ||
"setuptools>=58.1.0", | ||
"wheel>=0.37.0", | ||
] |
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,3 +1,3 @@ | ||
setuptools-rust | ||
setuptools | ||
wheel | ||
setuptools-rust>=0.12.1 | ||
setuptools>=58.1.0 | ||
wheel>=0.37.0 |
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
Submodule tiny-AES-c
deleted from
58cbfc
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