From ad5a7797c60b593a2fbc0b39a6932dae6e6ad710 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Vet=C3=A9si=20Zolt=C3=A1n?= Date: Tue, 25 Oct 2022 22:29:40 +0200 Subject: [PATCH] Add python source distribution (#112) --- .github/workflows/python.yml | 2 +- python/main/pyproject.toml | 3 +++ python/onepass/pyproject.toml | 3 +++ 3 files changed, 7 insertions(+), 1 deletion(-) create mode 100644 python/main/pyproject.toml create mode 100644 python/onepass/pyproject.toml diff --git a/.github/workflows/python.yml b/.github/workflows/python.yml index 0b9f53f..b29ede2 100644 --- a/.github/workflows/python.yml +++ b/.github/workflows/python.yml @@ -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/* diff --git a/python/main/pyproject.toml b/python/main/pyproject.toml new file mode 100644 index 0000000..573adf8 --- /dev/null +++ b/python/main/pyproject.toml @@ -0,0 +1,3 @@ +[build-system] +requires = ["maturin>=0.13"] +build-backend = "maturin" diff --git a/python/onepass/pyproject.toml b/python/onepass/pyproject.toml new file mode 100644 index 0000000..573adf8 --- /dev/null +++ b/python/onepass/pyproject.toml @@ -0,0 +1,3 @@ +[build-system] +requires = ["maturin>=0.13"] +build-backend = "maturin"