Skip to content

Commit 9d31dad

Browse files
committed
Use dynamic version syntax
1 parent a17825d commit 9d31dad

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

src/project_generator.rs

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -487,6 +487,7 @@ authors = [
487487
license = { file = "LICENSE" }
488488
{% endif -%}
489489
readme = "README.md"
490+
dynamic = ["version"]
490491
requires-python = ">={{ min_python_version }}"
491492
dependencies = []
492493
@@ -498,9 +499,6 @@ module-name = "{{ module }}._{{ module }}"
498499
binding = "pyo3"
499500
features = ["pyo3/extension-module"]
500501
501-
[tool.hatch.version]
502-
path = "{{ module }}/_version.py"
503-
504502
"#
505503
.to_string(),
506504
Pyo3PythonManager::Setuptools => r#"[build-system]
@@ -515,7 +513,7 @@ authors = [{name = "{{ creator }}", email = "{{ creator_email }}"}]
515513
license = "{{ license }}"
516514
{% endif -%}
517515
readme = "README.md"
518-
version = {attr = "{{ module }}.__version__"}
516+
dynamic = ["version"]
519517
dependencies = []
520518
521519
[tool.maturin]

0 commit comments

Comments
 (0)