Add python source distribution (#112)

This commit is contained in:
Vetési Zoltán 2022-10-25 22:29:40 +02:00 committed by GitHub
parent 521814979a
commit ad5a7797c6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 7 additions and 1 deletions

View File

@ -75,7 +75,7 @@ jobs:
export PATH="$PYENV_ROOT/bin:$PATH"
eval "$(pyenv init --path)"
fi
maturin build --release --strip -i "$(which python)"
maturin build --release --sdist --strip -i "$(which python)"
if [[ "$GITHUB_REF" == refs/tags/v* ]]; then
# For idempotency, ignore any existing built wheels that have already been successfully uploaded.
twine upload --skip-existing target/wheels/*

View File

@ -0,0 +1,3 @@
[build-system]
requires = ["maturin>=0.13"]
build-backend = "maturin"

View File

@ -0,0 +1,3 @@
[build-system]
requires = ["maturin>=0.13"]
build-backend = "maturin"