Skip to content

Commit

Permalink
Merge pull request #19 from kclowes/build-tarball
Browse files Browse the repository at this point in the history
Add tarballs to release
  • Loading branch information
kclowes authored Nov 27, 2023
2 parents 5ef0238 + 51ff05f commit 04c18b6
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 5 deletions.
8 changes: 5 additions & 3 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -107,19 +107,21 @@ jobs:
run: pip install maturin

- name: build Python package
run: maturin build --release --strip --interpreter python
run: maturin build --sdist --release --strip --interpreter python
# We run this job until here for every build so that we notice early if there's anything
# that would prevent to publish a release. But the actual publishing only happens when we
# create an actual Github release.
- name: Release
uses: softprops/action-gh-release@v1
if: startsWith(github.ref, 'refs/tags/')
with:
files: target/wheels/blake2b_py*.whl
files: |
target/wheels/blake2b_py*.whl
target/wheels/blake2b_py*.tar.gz
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: PyPi publish
if: startsWith(github.ref, 'refs/tags/')
env:
MATURIN_PASSWORD: ${{ secrets.PYPI }}
run: maturin publish --no-sdist --username __token__ --interpreter python
run: maturin publish --sdist --username __token__ --interpreter python
5 changes: 5 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -3,3 +3,8 @@
Cargo.lock
.tox
venv*

.hypothesis

*.so
**/__pycache__
3 changes: 2 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,8 @@ $ pip install maturin
$ maturin develop
```

to install the dependencies.
to install the dependencies. You may need to specify the
`MACOSX_DEPLOYMENT_TARGET` environment variable to your version of MacOS.

#### Run the tests

Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
[build-system]
requires = ["maturin>=0.12,<0.13"]
requires = ["maturin>=1.0,<2"]
build-backend = "maturin"

0 comments on commit 04c18b6

Please sign in to comment.