1
1
mirror of https://github.com/orhun/git-cliff.git synced 2024-10-03 18:27:14 +03:00

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.
This commit is contained in:
Radu Suciu 2024-03-07 01:38:38 -08:00 committed by GitHub
parent 773a9a0c6a
commit 10b7ab829f
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
3 changed files with 8 additions and 5 deletions

View File

@ -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" },

5
pypi/.gitignore vendored Normal file
View File

@ -0,0 +1,5 @@
# venv dir which might be present during testing
.venv
# where the build artifacts go
wheels

View File

@ -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"
manifest-path = "../git-cliff/Cargo.toml"
module-name = "git-cliff"