Skip to content

Commit

Permalink
chore(pypi): update maturin version (#539)
Browse files Browse the repository at this point in the history
* 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.
  • Loading branch information
radusuciu authored Mar 7, 2024
1 parent 773a9a0 commit 10b7ab8
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 5 deletions.
3 changes: 0 additions & 3 deletions git-cliff/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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" },
Expand Down
5 changes: 5 additions & 0 deletions pypi/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
# venv dir which might be present during testing
.venv

# where the build artifacts go
wheels
5 changes: 3 additions & 2 deletions pypi/pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
[build-system]
requires = ["maturin>=0.14,<0.15"]
requires = ["maturin>=1.5,<2"]
build-backend = "maturin"

[project]
Expand All @@ -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"

0 comments on commit 10b7ab8

Please sign in to comment.