From 10b7ab829f30beba19d13437ebafc35b9bb38476 Mon Sep 17 00:00:00 2001 From: Radu Suciu Date: Thu, 7 Mar 2024 01:38:38 -0800 Subject: [PATCH] chore(pypi): update maturin version (#539) * chore(pypi): add .gitignore for python wheel build * chore(pypi): move maturin package metadata to pyproject.toml use of `[package.metadata.maturin.name]` is deprecated and warned against: `Warning: specify [package.metadata.maturin] name in Cargo.toml is deprecated, use module-name in [tool.maturin] section in pyproject.toml instead` * chore(pypi): update maturin version the previously pinned version was way too specific and maturin has since had a 1.0 release -- so let's just stick with that. --- git-cliff/Cargo.toml | 3 --- pypi/.gitignore | 5 +++++ pypi/pyproject.toml | 5 +++-- 3 files changed, 8 insertions(+), 5 deletions(-) create mode 100644 pypi/.gitignore diff --git a/git-cliff/Cargo.toml b/git-cliff/Cargo.toml index bb41190fbf..256a2673a5 100644 --- a/git-cliff/Cargo.toml +++ b/git-cliff/Cargo.toml @@ -57,9 +57,6 @@ pkg-url = "{ repo }/releases/download/v{ version }/{ name }-{ version }-{ target bin-dir = "{ name }-{ version }/{ bin }{ binary-ext }" pkg-fmt = "tgz" -[package.metadata.maturin] -name = "git-cliff" - [package.metadata.generate-rpm] assets = [ { source = "target/release/git-cliff", dest = "/usr/bin/git-cliff", mode = "755" }, diff --git a/pypi/.gitignore b/pypi/.gitignore new file mode 100644 index 0000000000..701e62ebaf --- /dev/null +++ b/pypi/.gitignore @@ -0,0 +1,5 @@ +# venv dir which might be present during testing +.venv + +# where the build artifacts go +wheels diff --git a/pypi/pyproject.toml b/pypi/pyproject.toml index f3d21e3c24..1ea7f37f55 100644 --- a/pypi/pyproject.toml +++ b/pypi/pyproject.toml @@ -1,5 +1,5 @@ [build-system] -requires = ["maturin>=0.14,<0.15"] +requires = ["maturin>=1.5,<2"] build-backend = "maturin" [project] @@ -15,4 +15,5 @@ classifiers = [ [tool.maturin] bindings = "bin" -manifest-path = "../git-cliff/Cargo.toml" \ No newline at end of file +manifest-path = "../git-cliff/Cargo.toml" +module-name = "git-cliff"