diff --git a/pdm.lock b/pdm.lock index b2257c4..d4179a2 100644 --- a/pdm.lock +++ b/pdm.lock @@ -5,7 +5,7 @@ groups = ["default", "dev"] strategy = ["cross_platform", "inherit_metadata"] lock_version = "4.4.1" -content_hash = "sha256:6cff8f517728e2cfabe4eba49837d486659f749236667e960bbba90fcf41d959" +content_hash = "sha256:1bc0faac955efbc9634e8a24b1c1cf57859e3224615e82e307815cbc9dc7c1cc" [[package]] name = "alabaster" @@ -70,7 +70,7 @@ files = [ [[package]] name = "boldi" -version = "0.1.1" +version = "0.1.2.dev3" requires_python = ">=3.9" editable = true path = "./pkg/boldi" @@ -84,7 +84,7 @@ dependencies = [ [[package]] name = "boldi-cli" -version = "0.1.1" +version = "0.1.2.dev3" requires_python = ">=3.9" editable = true path = "./pkg/boldi-cli" @@ -97,7 +97,7 @@ dependencies = [ [[package]] name = "boldi-ctx" -version = "0.1.1" +version = "0.1.2.dev3" requires_python = ">=3.9" editable = true path = "./pkg/boldi-ctx" @@ -109,7 +109,7 @@ dependencies = [ [[package]] name = "boldi-dev" -version = "0.1.1" +version = "0.1.2.dev3" requires_python = ">=3.9" editable = true path = "./pkg/boldi-dev" @@ -125,7 +125,7 @@ dependencies = [ [[package]] name = "boldi-plugins" -version = "0.1.1" +version = "0.1.2.dev3" requires_python = ">=3.9" editable = true path = "./pkg/boldi-plugins" @@ -401,6 +401,21 @@ files = [ {file = "h11-0.14.0.tar.gz", hash = "sha256:8f19fbbe99e72420ff35c00b27a34cb9937e902a8b810e2c88300c6f0a3b699d"}, ] +[[package]] +name = "hatch-vcs" +version = "0.4.0" +requires_python = ">=3.8" +summary = "Hatch plugin for versioning with your preferred VCS" +groups = ["dev"] +dependencies = [ + "hatchling>=1.1.0", + "setuptools-scm>=6.4.0", +] +files = [ + {file = "hatch_vcs-0.4.0-py3-none-any.whl", hash = "sha256:b8a2b6bee54cf6f9fc93762db73890017ae59c9081d1038a41f16235ceaf8b2c"}, + {file = "hatch_vcs-0.4.0.tar.gz", hash = "sha256:093810748fe01db0d451fabcf2c1ac2688caefd232d4ede967090b1c1b07d9f7"}, +] + [[package]] name = "hatchling" version = "1.22.4" @@ -1208,6 +1223,34 @@ files = [ {file = "ruff-0.3.4.tar.gz", hash = "sha256:f0f4484c6541a99862b693e13a151435a279b271cff20e37101116a21e2a1ad1"}, ] +[[package]] +name = "setuptools" +version = "69.2.0" +requires_python = ">=3.8" +summary = "Easily download, build, install, upgrade, and uninstall Python packages" +groups = ["dev"] +files = [ + {file = "setuptools-69.2.0-py3-none-any.whl", hash = "sha256:c21c49fb1042386df081cb5d86759792ab89efca84cf114889191cd09aacc80c"}, + {file = "setuptools-69.2.0.tar.gz", hash = "sha256:0ff4183f8f42cd8fa3acea16c45205521a4ef28f73c6391d8a25e92893134f2e"}, +] + +[[package]] +name = "setuptools-scm" +version = "8.0.4" +requires_python = ">=3.8" +summary = "the blessed package to manage your versions by scm tags" +groups = ["dev"] +dependencies = [ + "packaging>=20", + "setuptools", + "tomli>=1; python_version < \"3.11\"", + "typing-extensions", +] +files = [ + {file = "setuptools-scm-8.0.4.tar.gz", hash = "sha256:b5f43ff6800669595193fd09891564ee9d1d7dcb196cab4b2506d53a2e1c95c7"}, + {file = "setuptools_scm-8.0.4-py3-none-any.whl", hash = "sha256:b47844cd2a84b83b3187a5782c71128c28b4c94cad8bfb871da2784a5cb54c4f"}, +] + [[package]] name = "shellingham" version = "1.5.4" diff --git a/pkg/.gitignore b/pkg/.gitignore new file mode 100644 index 0000000..13c3c02 --- /dev/null +++ b/pkg/.gitignore @@ -0,0 +1 @@ +*/boldi/_*version.py diff --git a/pkg/boldi-cli/pyproject.toml b/pkg/boldi-cli/pyproject.toml index 96cef97..a639dfb 100644 --- a/pkg/boldi-cli/pyproject.toml +++ b/pkg/boldi-cli/pyproject.toml @@ -1,6 +1,5 @@ [project] name = "boldi-cli" -version = "0.1.1" description = "boldi.cli part of Boldi's Python libraries" authors = [ { name = "Boldizsár Palotás", email = "boldizsar.palotas@gmail.com" }, @@ -8,6 +7,7 @@ authors = [ requires-python = ">=3.9" readme = "../../README.md" license = { text = "MIT" } +dynamic = ["version"] dependencies = ["boldi-ctx", "rich"] optional-dependencies = {} @@ -19,12 +19,19 @@ boldi = "boldi.cli:main" help = "boldi.cli:HelpCliAction" [build-system] -requires = ["hatchling"] +requires = ["hatchling", "hatch-vcs"] build-backend = "hatchling.build" [tool.hatch.build] packages = ["boldi"] +[tool.hatch.build.hooks.vcs] +version-file = "boldi/_cli_version.py" + +[tool.hatch.version] +source = "vcs" +raw-options = { "root" = "../.." } + [tool.pdm] [tool.pdm.dev-dependencies] diff --git a/pkg/boldi-ctx/pyproject.toml b/pkg/boldi-ctx/pyproject.toml index d5feb95..948673d 100644 --- a/pkg/boldi-ctx/pyproject.toml +++ b/pkg/boldi-ctx/pyproject.toml @@ -1,6 +1,5 @@ [project] name = "boldi-ctx" -version = "0.1.1" description = "boldi.ctx part of Boldi's Python libraries" authors = [ { name = "Boldizsár Palotás", email = "boldizsar.palotas@gmail.com" }, @@ -8,17 +7,25 @@ authors = [ requires-python = ">=3.9" readme = "../../README.md" license = { text = "MIT" } +dynamic = ["version"] dependencies = ["typing_extensions"] optional-dependencies = {} [build-system] -requires = ["hatchling"] +requires = ["hatchling", "hatch-vcs"] build-backend = "hatchling.build" [tool.hatch.build] packages = ["boldi"] +[tool.hatch.build.hooks.vcs] +version-file = "boldi/_ctx_version.py" + +[tool.hatch.version] +source = "vcs" +raw-options = { "root" = "../.." } + [tool.pdm] [tool.pdm.dev-dependencies] diff --git a/pkg/boldi-dev/pyproject.toml b/pkg/boldi-dev/pyproject.toml index 7b5b3cf..e11d43d 100644 --- a/pkg/boldi-dev/pyproject.toml +++ b/pkg/boldi-dev/pyproject.toml @@ -1,6 +1,5 @@ [project] name = "boldi-dev" -version = "0.1.1" description = "boldi.dev part of Boldi's Python libraries" authors = [ { name = "Boldizsár Palotás", email = "boldizsar.palotas@gmail.com" }, @@ -8,6 +7,7 @@ authors = [ requires-python = ">=3.9" readme = "../../README.md" license = { text = "MIT" } +dynamic = ["version"] dependencies = [ # boldi: @@ -24,12 +24,19 @@ optional-dependencies = {} dev = "boldi.dev:DevCliAction" [build-system] -requires = ["hatchling"] +requires = ["hatchling", "hatch-vcs"] build-backend = "hatchling.build" [tool.hatch.build] packages = ["boldi"] +[tool.hatch.build.hooks.vcs] +version-file = "boldi/_dev_version.py" + +[tool.hatch.version] +source = "vcs" +raw-options = { "root" = "../.." } + [tool.pdm] [tool.pdm.dev-dependencies] diff --git a/pkg/boldi-plugins/pyproject.toml b/pkg/boldi-plugins/pyproject.toml index f74ecb0..9fcbfaa 100644 --- a/pkg/boldi-plugins/pyproject.toml +++ b/pkg/boldi-plugins/pyproject.toml @@ -1,6 +1,5 @@ [project] name = "boldi-plugins" -version = "0.1.1" description = "boldi.plugins part of Boldi's Python libraries" authors = [ {name = "Boldizsár Palotás", email = "boldizsar.palotas@gmail.com"}, @@ -8,6 +7,7 @@ authors = [ requires-python = ">=3.9" readme = "../../README.md" license = { text = "MIT" } +dynamic = ["version"] dependencies = [ "backports.entry-points-selectable", @@ -15,12 +15,19 @@ dependencies = [ optional-dependencies = {} [build-system] -requires = ["hatchling"] +requires = ["hatchling", "hatch-vcs"] build-backend = "hatchling.build" [tool.hatch.build] packages = ["boldi"] +[tool.hatch.build.hooks.vcs] +version-file = "boldi/_plugins_version.py" + +[tool.hatch.version] +source = "vcs" +raw-options = { "root" = "../.." } + [tool.pdm] [tool.pdm.dev-dependencies] diff --git a/pkg/boldi/boldi/.keep b/pkg/boldi/boldi/.keep new file mode 100644 index 0000000..e69de29 diff --git a/pkg/boldi/pyproject.toml b/pkg/boldi/pyproject.toml index fb75938..f1e7679 100644 --- a/pkg/boldi/pyproject.toml +++ b/pkg/boldi/pyproject.toml @@ -1,6 +1,5 @@ [project] name = "boldi" -version = "0.1.1" description = "Boldi's Python libraries" authors = [ { name = "Boldizsár Palotás", email = "boldizsar.palotas@gmail.com" }, @@ -8,6 +7,7 @@ authors = [ requires-python = ">=3.9" readme = "../../README.md" license = { text = "MIT" } +dynamic = ["version"] dependencies = [ # boldi libs: @@ -18,12 +18,19 @@ dependencies = [ optional-dependencies = { dev = ["boldi-dev"] } [build-system] -requires = ["hatchling"] +requires = ["hatchling", "hatch-vcs"] build-backend = "hatchling.build" [tool.hatch.build] packages = ["boldi"] +[tool.hatch.build.hooks.vcs] +version-file = "boldi/_version.py" + +[tool.hatch.version] +source = "vcs" +raw-options = { "root" = "../.." } + [tool.pdm] [tool.pdm.dev-dependencies] diff --git a/pyproject.toml b/pyproject.toml index dc3048d..733c5c7 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,6 +1,5 @@ [project] name = "boldi-devmetapackage" -version = "0.1.1" description = "Development Metapackage for Boldi's Python libraries" authors = [ { name = "Boldizsár Palotás", email = "boldizsar.palotas@gmail.com" }, @@ -8,6 +7,7 @@ authors = [ requires-python = ">=3.9" readme = "README.md" license = { file = "LICENSE" } +dynamic = ["version"] # Intentionally no dependencies as this is just a development metapackage. # this just includes the real packages (boldi, boldi-cli, etc.) as dev-dependencies, @@ -16,11 +16,14 @@ dependencies = [] optional-dependencies = {} [build-system] -requires = ["hatchling"] +requires = ["hatchling", "hatch-vcs"] build-backend = "hatchling.build" +[tool.hatch.version] +source = "vcs" + [tool.hatch.build] -packages = ["boldi"] +packages = ["."] [tool.pdm] @@ -39,6 +42,7 @@ dev = [ # building and packaging: "pdm", "hatchling", + "hatch-vcs", "build", ]