Reintroduce dynamic versioning via `hatch version`
Marco Ricci

Marco Ricci commited on 2024-09-12 13:40:04
Zeige 1 geänderte Dateien mit 1 Einfügungen und 1 Löschungen.


When we abandoned `hatch version` in
565dd46f8506662fd4abcc8e7f9c7a99ae15958f, we had three top-level
packages sharing a version number, but `hatch version` did not support
reading or updating the version from multiple sources.

Since c4a57f311710768cb18df717a73fd48a8a3077fe however the system is
rooted in the `derivepassphrase` top-level package, and the version
number is internally copied from that package root.  We are therefore
once again in the classic scenario that `hatch version` supports.
... ...
@@ -32,7 +32,7 @@ dependencies = [
32 32
   # typing_extensions, instead of using explicit version guards.
33 33
   "typing_extensions",
34 34
 ]
35
-version = "0.1.3"
35
+dynamic = ['version']
36 36
 
37 37
 [project.optional-dependencies]
38 38
 dev = [
39 39