From 23621d81f8e191e740ab435491fcf112ea3fc41a Mon Sep 17 00:00:00 2001 From: santosh Date: Wed, 4 Sep 2024 12:59:49 +0530 Subject: [PATCH] Centralize the version management --- _version.py | 1 + .../duckdb_extension_arrow/pyproject.toml | 6 ++++- .../pyproject.toml | 6 ++++- .../duckdb_extension_aws/pyproject.toml | 6 ++++- .../duckdb_extension_azure/pyproject.toml | 6 ++++- .../duckdb_extension_delta/pyproject.toml | 6 ++++- .../duckdb_extension_excel/pyproject.toml | 6 ++++- .../duckdb_extension_httpfs/pyproject.toml | 6 ++++- .../duckdb_extension_iceberg/pyproject.toml | 6 ++++- .../duckdb_extension_inet/pyproject.toml | 6 ++++- .../pyproject.toml | 6 ++++- .../pyproject.toml | 6 ++++- .../duckdb_extension_parquet/pyproject.toml | 6 ++++- .../duckdb_extension_postgres/pyproject.toml | 6 ++++- .../pyproject.toml | 6 ++++- .../duckdb_extension_spatial/pyproject.toml | 6 ++++- .../pyproject.toml | 6 ++++- .../duckdb_extension_substrait/pyproject.toml | 6 ++++- .../duckdb_extension_vss/pyproject.toml | 6 ++++- pyproject.toml | 26 +++++++++++-------- .../pyproject.toml | 6 ++++- 21 files changed, 111 insertions(+), 30 deletions(-) create mode 100644 _version.py diff --git a/_version.py b/_version.py new file mode 100644 index 0000000..2fdbb48 --- /dev/null +++ b/_version.py @@ -0,0 +1 @@ +__version__ = "1.0.4a1" diff --git a/extensions/duckdb_extension_arrow/pyproject.toml b/extensions/duckdb_extension_arrow/pyproject.toml index 5618a0d..5f62ebf 100644 --- a/extensions/duckdb_extension_arrow/pyproject.toml +++ b/extensions/duckdb_extension_arrow/pyproject.toml @@ -1,7 +1,6 @@ [project] name = "duckdb_extension_arrow" description = "Duckdb arrow extension" -version = "1.0.4a1" requires-python = ">=3.8" license = "MIT" readme = "README.md" @@ -26,6 +25,8 @@ dependencies = [ "importlib-resources==3.0.0;python_version<'3.9'", ] +dynamic = ["version"] + [project.urls] Documentation = "https://github.com/santosh-d3vpl3x/duckdb_extensions#readme" Issues = "https://github.com/santosh-d3vpl3x/duckdb_extensions/issues" @@ -35,6 +36,9 @@ Source = "https://github.com/santosh-d3vpl3x/duckdb_extensions" requires = ["hatchling"] build-backend = "hatchling.build" +[tool.hatch.version] +path = "../../_version.py" + [tool.hatch.build.targets.wheel.hooks.custom] path = "../../add_extension_files.py" require-runtime-dependencies = true diff --git a/extensions/duckdb_extension_autocomplete/pyproject.toml b/extensions/duckdb_extension_autocomplete/pyproject.toml index 3e24446..638a092 100644 --- a/extensions/duckdb_extension_autocomplete/pyproject.toml +++ b/extensions/duckdb_extension_autocomplete/pyproject.toml @@ -1,7 +1,6 @@ [project] name = "duckdb_extension_autocomplete" description = "Duckdb autocomplete extension" -version = "1.0.4a1" requires-python = ">=3.8" license = "MIT" readme = "README.md" @@ -26,6 +25,8 @@ dependencies = [ "importlib-resources==3.0.0;python_version<'3.9'", ] +dynamic = ["version"] + [project.urls] Documentation = "https://github.com/santosh-d3vpl3x/duckdb_extensions#readme" Issues = "https://github.com/santosh-d3vpl3x/duckdb_extensions/issues" @@ -35,6 +36,9 @@ Source = "https://github.com/santosh-d3vpl3x/duckdb_extensions" requires = ["hatchling"] build-backend = "hatchling.build" +[tool.hatch.version] +path = "../../_version.py" + [tool.hatch.build.targets.wheel.hooks.custom] path = "../../add_extension_files.py" require-runtime-dependencies = true diff --git a/extensions/duckdb_extension_aws/pyproject.toml b/extensions/duckdb_extension_aws/pyproject.toml index 56b21cf..57cbaa0 100644 --- a/extensions/duckdb_extension_aws/pyproject.toml +++ b/extensions/duckdb_extension_aws/pyproject.toml @@ -1,7 +1,6 @@ [project] name = "duckdb_extension_aws" description = "Duckdb aws extension" -version = "1.0.4a1" requires-python = ">=3.8" license = "MIT" readme = "README.md" @@ -26,6 +25,8 @@ dependencies = [ "importlib-resources==3.0.0;python_version<'3.9'", ] +dynamic = ["version"] + [project.urls] Documentation = "https://github.com/santosh-d3vpl3x/duckdb_extensions#readme" Issues = "https://github.com/santosh-d3vpl3x/duckdb_extensions/issues" @@ -35,6 +36,9 @@ Source = "https://github.com/santosh-d3vpl3x/duckdb_extensions" requires = ["hatchling"] build-backend = "hatchling.build" +[tool.hatch.version] +path = "../../_version.py" + [tool.hatch.build.targets.wheel.hooks.custom] path = "../../add_extension_files.py" require-runtime-dependencies = true diff --git a/extensions/duckdb_extension_azure/pyproject.toml b/extensions/duckdb_extension_azure/pyproject.toml index 57adf8b..8b5c45d 100644 --- a/extensions/duckdb_extension_azure/pyproject.toml +++ b/extensions/duckdb_extension_azure/pyproject.toml @@ -1,7 +1,6 @@ [project] name = "duckdb_extension_azure" description = "Duckdb azure extension" -version = "1.0.4a1" requires-python = ">=3.8" license = "MIT" readme = "README.md" @@ -26,6 +25,8 @@ dependencies = [ "importlib-resources==3.0.0;python_version<'3.9'", ] +dynamic = ["version"] + [project.urls] Documentation = "https://github.com/santosh-d3vpl3x/duckdb_extensions#readme" Issues = "https://github.com/santosh-d3vpl3x/duckdb_extensions/issues" @@ -35,6 +36,9 @@ Source = "https://github.com/santosh-d3vpl3x/duckdb_extensions" requires = ["hatchling"] build-backend = "hatchling.build" +[tool.hatch.version] +path = "../../_version.py" + [tool.hatch.build.targets.wheel.hooks.custom] path = "../../add_extension_files.py" require-runtime-dependencies = true diff --git a/extensions/duckdb_extension_delta/pyproject.toml b/extensions/duckdb_extension_delta/pyproject.toml index 8e4a703..9c1024d 100644 --- a/extensions/duckdb_extension_delta/pyproject.toml +++ b/extensions/duckdb_extension_delta/pyproject.toml @@ -1,7 +1,6 @@ [project] name = "duckdb_extension_delta" description = "Duckdb delta extension" -version = "1.0.4a1" requires-python = ">=3.8" license = "MIT" readme = "README.md" @@ -26,6 +25,8 @@ dependencies = [ "importlib-resources==3.0.0;python_version<'3.9'", ] +dynamic = ["version"] + [project.urls] Documentation = "https://github.com/santosh-d3vpl3x/duckdb_extensions#readme" Issues = "https://github.com/santosh-d3vpl3x/duckdb_extensions/issues" @@ -35,6 +36,9 @@ Source = "https://github.com/santosh-d3vpl3x/duckdb_extensions" requires = ["hatchling"] build-backend = "hatchling.build" +[tool.hatch.version] +path = "../../_version.py" + [tool.hatch.build.targets.wheel.hooks.custom] path = "../../add_extension_files.py" require-runtime-dependencies = true diff --git a/extensions/duckdb_extension_excel/pyproject.toml b/extensions/duckdb_extension_excel/pyproject.toml index 90f84e8..152971c 100644 --- a/extensions/duckdb_extension_excel/pyproject.toml +++ b/extensions/duckdb_extension_excel/pyproject.toml @@ -1,7 +1,6 @@ [project] name = "duckdb_extension_excel" description = "Duckdb excel extension" -version = "1.0.4a1" requires-python = ">=3.8" license = "MIT" readme = "README.md" @@ -26,6 +25,8 @@ dependencies = [ "importlib-resources==3.0.0;python_version<'3.9'", ] +dynamic = ["version"] + [project.urls] Documentation = "https://github.com/santosh-d3vpl3x/duckdb_extensions#readme" Issues = "https://github.com/santosh-d3vpl3x/duckdb_extensions/issues" @@ -35,6 +36,9 @@ Source = "https://github.com/santosh-d3vpl3x/duckdb_extensions" requires = ["hatchling"] build-backend = "hatchling.build" +[tool.hatch.version] +path = "../../_version.py" + [tool.hatch.build.targets.wheel.hooks.custom] path = "../../add_extension_files.py" require-runtime-dependencies = true diff --git a/extensions/duckdb_extension_httpfs/pyproject.toml b/extensions/duckdb_extension_httpfs/pyproject.toml index ff2f7d4..111cf65 100644 --- a/extensions/duckdb_extension_httpfs/pyproject.toml +++ b/extensions/duckdb_extension_httpfs/pyproject.toml @@ -1,7 +1,6 @@ [project] name = "duckdb_extension_httpfs" description = "Duckdb httpfs extension" -version = "1.0.4a1" requires-python = ">=3.8" license = "MIT" readme = "README.md" @@ -26,6 +25,8 @@ dependencies = [ "importlib-resources==3.0.0;python_version<'3.9'", ] +dynamic = ["version"] + [project.urls] Documentation = "https://github.com/santosh-d3vpl3x/duckdb_extensions#readme" Issues = "https://github.com/santosh-d3vpl3x/duckdb_extensions/issues" @@ -35,6 +36,9 @@ Source = "https://github.com/santosh-d3vpl3x/duckdb_extensions" requires = ["hatchling"] build-backend = "hatchling.build" +[tool.hatch.version] +path = "../../_version.py" + [tool.hatch.build.targets.wheel.hooks.custom] path = "../../add_extension_files.py" require-runtime-dependencies = true diff --git a/extensions/duckdb_extension_iceberg/pyproject.toml b/extensions/duckdb_extension_iceberg/pyproject.toml index 92b4d9f..ced64c6 100644 --- a/extensions/duckdb_extension_iceberg/pyproject.toml +++ b/extensions/duckdb_extension_iceberg/pyproject.toml @@ -1,7 +1,6 @@ [project] name = "duckdb_extension_iceberg" description = "Duckdb iceberg extension" -version = "1.0.4a1" requires-python = ">=3.8" license = "MIT" readme = "README.md" @@ -26,6 +25,8 @@ dependencies = [ "importlib-resources==3.0.0;python_version<'3.9'", ] +dynamic = ["version"] + [project.urls] Documentation = "https://github.com/santosh-d3vpl3x/duckdb_extensions#readme" Issues = "https://github.com/santosh-d3vpl3x/duckdb_extensions/issues" @@ -35,6 +36,9 @@ Source = "https://github.com/santosh-d3vpl3x/duckdb_extensions" requires = ["hatchling"] build-backend = "hatchling.build" +[tool.hatch.version] +path = "../../_version.py" + [tool.hatch.build.targets.wheel.hooks.custom] path = "../../add_extension_files.py" require-runtime-dependencies = true diff --git a/extensions/duckdb_extension_inet/pyproject.toml b/extensions/duckdb_extension_inet/pyproject.toml index 0cea1be..345b106 100644 --- a/extensions/duckdb_extension_inet/pyproject.toml +++ b/extensions/duckdb_extension_inet/pyproject.toml @@ -1,7 +1,6 @@ [project] name = "duckdb_extension_inet" description = "Duckdb inet extension" -version = "1.0.4a1" requires-python = ">=3.8" license = "MIT" readme = "README.md" @@ -26,6 +25,8 @@ dependencies = [ "importlib-resources==3.0.0;python_version<'3.9'", ] +dynamic = ["version"] + [project.urls] Documentation = "https://github.com/santosh-d3vpl3x/duckdb_extensions#readme" Issues = "https://github.com/santosh-d3vpl3x/duckdb_extensions/issues" @@ -35,6 +36,9 @@ Source = "https://github.com/santosh-d3vpl3x/duckdb_extensions" requires = ["hatchling"] build-backend = "hatchling.build" +[tool.hatch.version] +path = "../../_version.py" + [tool.hatch.build.targets.wheel.hooks.custom] path = "../../add_extension_files.py" require-runtime-dependencies = true diff --git a/extensions/duckdb_extension_motherduck/pyproject.toml b/extensions/duckdb_extension_motherduck/pyproject.toml index 6e60b80..78db780 100644 --- a/extensions/duckdb_extension_motherduck/pyproject.toml +++ b/extensions/duckdb_extension_motherduck/pyproject.toml @@ -1,7 +1,6 @@ [project] name = "duckdb_extension_motherduck" description = "Duckdb motherduck extension" -version = "1.0.4a1" requires-python = ">=3.8" license = "MIT" readme = "README.md" @@ -26,6 +25,8 @@ dependencies = [ "importlib-resources==3.0.0;python_version<'3.9'", ] +dynamic = ["version"] + [project.urls] Documentation = "https://github.com/santosh-d3vpl3x/duckdb_extensions#readme" Issues = "https://github.com/santosh-d3vpl3x/duckdb_extensions/issues" @@ -35,6 +36,9 @@ Source = "https://github.com/santosh-d3vpl3x/duckdb_extensions" requires = ["hatchling"] build-backend = "hatchling.build" +[tool.hatch.version] +path = "../../_version.py" + [tool.hatch.build.targets.wheel.hooks.custom] path = "../../add_extension_files.py" require-runtime-dependencies = true diff --git a/extensions/duckdb_extension_mysql_scanner/pyproject.toml b/extensions/duckdb_extension_mysql_scanner/pyproject.toml index 109d8e5..ae4818e 100644 --- a/extensions/duckdb_extension_mysql_scanner/pyproject.toml +++ b/extensions/duckdb_extension_mysql_scanner/pyproject.toml @@ -1,7 +1,6 @@ [project] name = "duckdb_extension_mysql_scanner" description = "Duckdb mysql_scanner extension" -version = "1.0.4a1" requires-python = ">=3.8" license = "MIT" readme = "README.md" @@ -26,6 +25,8 @@ dependencies = [ "importlib-resources==3.0.0;python_version<'3.9'", ] +dynamic = ["version"] + [project.urls] Documentation = "https://github.com/santosh-d3vpl3x/duckdb_extensions#readme" Issues = "https://github.com/santosh-d3vpl3x/duckdb_extensions/issues" @@ -35,6 +36,9 @@ Source = "https://github.com/santosh-d3vpl3x/duckdb_extensions" requires = ["hatchling"] build-backend = "hatchling.build" +[tool.hatch.version] +path = "../../_version.py" + [tool.hatch.build.targets.wheel.hooks.custom] path = "../../add_extension_files.py" require-runtime-dependencies = true diff --git a/extensions/duckdb_extension_parquet/pyproject.toml b/extensions/duckdb_extension_parquet/pyproject.toml index bc19d95..6d8c6bc 100644 --- a/extensions/duckdb_extension_parquet/pyproject.toml +++ b/extensions/duckdb_extension_parquet/pyproject.toml @@ -1,7 +1,6 @@ [project] name = "duckdb_extension_parquet" description = 'Duckdb parquet extension' -version = "1.0.4a1" requires-python = ">=3.8" license = "MIT" readme = "README.md" @@ -26,6 +25,8 @@ dependencies = [ "importlib-resources==3.0.0;python_version<'3.9'", ] +dynamic = ["version"] + [project.urls] Documentation = "https://github.com/santosh-d3vpl3x/duckdb_extensions#readme" Issues = "https://github.com/santosh-d3vpl3x/duckdb_extensions/issues" @@ -35,6 +36,9 @@ Source = "https://github.com/santosh-d3vpl3x/duckdb_extensions" requires = ["hatchling"] build-backend = "hatchling.build" +[tool.hatch.version] +path = "../../_version.py" + [tool.hatch.build.targets.wheel.hooks.custom] path = "../../add_extension_files.py" require-runtime-dependencies = true diff --git a/extensions/duckdb_extension_postgres/pyproject.toml b/extensions/duckdb_extension_postgres/pyproject.toml index 93197e0..3af2661 100644 --- a/extensions/duckdb_extension_postgres/pyproject.toml +++ b/extensions/duckdb_extension_postgres/pyproject.toml @@ -1,7 +1,6 @@ [project] name = "duckdb_extension_postgres" description = "Duckdb postgres extension" -version = "1.0.4a1" requires-python = ">=3.8" license = "MIT" readme = "README.md" @@ -26,6 +25,8 @@ dependencies = [ "importlib-resources==3.0.0;python_version<'3.9'", ] +dynamic = ["version"] + [project.urls] Documentation = "https://github.com/santosh-d3vpl3x/duckdb_extensions#readme" Issues = "https://github.com/santosh-d3vpl3x/duckdb_extensions/issues" @@ -35,6 +36,9 @@ Source = "https://github.com/santosh-d3vpl3x/duckdb_extensions" requires = ["hatchling"] build-backend = "hatchling.build" +[tool.hatch.version] +path = "../../_version.py" + [tool.hatch.build.targets.wheel.hooks.custom] path = "../../add_extension_files.py" require-runtime-dependencies = true diff --git a/extensions/duckdb_extension_postgres_scanner/pyproject.toml b/extensions/duckdb_extension_postgres_scanner/pyproject.toml index 83fe7b8..f144801 100644 --- a/extensions/duckdb_extension_postgres_scanner/pyproject.toml +++ b/extensions/duckdb_extension_postgres_scanner/pyproject.toml @@ -1,7 +1,6 @@ [project] name = "duckdb_extension_postgres_scanner" description = "Duckdb postgres_scanner extension" -version = "1.0.4a1" requires-python = ">=3.8" license = "MIT" readme = "README.md" @@ -26,6 +25,8 @@ dependencies = [ "importlib-resources==3.0.0;python_version<'3.9'", ] +dynamic = ["version"] + [project.urls] Documentation = "https://github.com/santosh-d3vpl3x/duckdb_extensions#readme" Issues = "https://github.com/santosh-d3vpl3x/duckdb_extensions/issues" @@ -35,6 +36,9 @@ Source = "https://github.com/santosh-d3vpl3x/duckdb_extensions" requires = ["hatchling"] build-backend = "hatchling.build" +[tool.hatch.version] +path = "../../_version.py" + [tool.hatch.build.targets.wheel.hooks.custom] path = "../../add_extension_files.py" require-runtime-dependencies = true diff --git a/extensions/duckdb_extension_spatial/pyproject.toml b/extensions/duckdb_extension_spatial/pyproject.toml index e56c955..456e26c 100644 --- a/extensions/duckdb_extension_spatial/pyproject.toml +++ b/extensions/duckdb_extension_spatial/pyproject.toml @@ -1,7 +1,6 @@ [project] name = "duckdb_extension_spatial" description = "Duckdb spatial extension" -version = "1.0.4a1" requires-python = ">=3.8" license = "MIT" readme = "README.md" @@ -26,6 +25,8 @@ dependencies = [ "importlib-resources==3.0.0;python_version<'3.9'", ] +dynamic = ["version"] + [project.urls] Documentation = "https://github.com/santosh-d3vpl3x/duckdb_extensions#readme" Issues = "https://github.com/santosh-d3vpl3x/duckdb_extensions/issues" @@ -35,6 +36,9 @@ Source = "https://github.com/santosh-d3vpl3x/duckdb_extensions" requires = ["hatchling"] build-backend = "hatchling.build" +[tool.hatch.version] +path = "../../_version.py" + [tool.hatch.build.targets.wheel.hooks.custom] path = "../../add_extension_files.py" require-runtime-dependencies = true diff --git a/extensions/duckdb_extension_sqlite_scanner/pyproject.toml b/extensions/duckdb_extension_sqlite_scanner/pyproject.toml index 9e0f726..768ebbb 100644 --- a/extensions/duckdb_extension_sqlite_scanner/pyproject.toml +++ b/extensions/duckdb_extension_sqlite_scanner/pyproject.toml @@ -1,7 +1,6 @@ [project] name = "duckdb_extension_sqlite_scanner" description = "Duckdb sqlite_scanner extension" -version = "1.0.4a1" requires-python = ">=3.8" license = "MIT" readme = "README.md" @@ -26,6 +25,8 @@ dependencies = [ "importlib-resources==3.0.0;python_version<'3.9'", ] +dynamic = ["version"] + [project.urls] Documentation = "https://github.com/santosh-d3vpl3x/duckdb_extensions#readme" Issues = "https://github.com/santosh-d3vpl3x/duckdb_extensions/issues" @@ -35,6 +36,9 @@ Source = "https://github.com/santosh-d3vpl3x/duckdb_extensions" requires = ["hatchling"] build-backend = "hatchling.build" +[tool.hatch.version] +path = "../../_version.py" + [tool.hatch.build.targets.wheel.hooks.custom] path = "../../add_extension_files.py" require-runtime-dependencies = true diff --git a/extensions/duckdb_extension_substrait/pyproject.toml b/extensions/duckdb_extension_substrait/pyproject.toml index 86f157c..8e79575 100644 --- a/extensions/duckdb_extension_substrait/pyproject.toml +++ b/extensions/duckdb_extension_substrait/pyproject.toml @@ -1,7 +1,6 @@ [project] name = "duckdb_extension_substrait" description = "Duckdb substrait extension" -version = "1.0.4a1" requires-python = ">=3.8" license = "MIT" readme = "README.md" @@ -26,6 +25,8 @@ dependencies = [ "importlib-resources==3.0.0;python_version<'3.9'", ] +dynamic = ["version"] + [project.urls] Documentation = "https://github.com/santosh-d3vpl3x/duckdb_extensions#readme" Issues = "https://github.com/santosh-d3vpl3x/duckdb_extensions/issues" @@ -35,6 +36,9 @@ Source = "https://github.com/santosh-d3vpl3x/duckdb_extensions" requires = ["hatchling"] build-backend = "hatchling.build" +[tool.hatch.version] +path = "../../_version.py" + [tool.hatch.build.targets.wheel.hooks.custom] path = "../../add_extension_files.py" require-runtime-dependencies = true diff --git a/extensions/duckdb_extension_vss/pyproject.toml b/extensions/duckdb_extension_vss/pyproject.toml index d59e932..1153065 100644 --- a/extensions/duckdb_extension_vss/pyproject.toml +++ b/extensions/duckdb_extension_vss/pyproject.toml @@ -1,7 +1,6 @@ [project] name = "duckdb_extension_vss" description = "Duckdb vss extension" -version = "1.0.4a1" requires-python = ">=3.8" license = "MIT" readme = "README.md" @@ -26,6 +25,8 @@ dependencies = [ "importlib-resources==3.0.0;python_version<'3.9'", ] +dynamic = ["version"] + [project.urls] Documentation = "https://github.com/santosh-d3vpl3x/duckdb_extensions#readme" Issues = "https://github.com/santosh-d3vpl3x/duckdb_extensions/issues" @@ -35,6 +36,9 @@ Source = "https://github.com/santosh-d3vpl3x/duckdb_extensions" requires = ["hatchling"] build-backend = "hatchling.build" +[tool.hatch.version] +path = "../../_version.py" + [tool.hatch.build.targets.wheel.hooks.custom] path = "../../add_extension_files.py" require-runtime-dependencies = true diff --git a/pyproject.toml b/pyproject.toml index d65b06c..19af252 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,24 +1,23 @@ [project] name = "duckdb_extensions" description = "DuckDB extensions as python package" -version = "1.0.4a1" readme = "README.md" requires-python = ">=3.8" license = "MIT" keywords = [] authors = [ - { name = "santosh", email = "void@some.where" }, + { name = "santosh", email = "void@some.where" }, ] classifiers = [ - "Development Status :: 4 - Beta", - "Programming Language :: Python", - "Programming Language :: Python :: 3.8", - "Programming Language :: Python :: 3.9", - "Programming Language :: Python :: 3.10", - "Programming Language :: Python :: 3.11", - "Programming Language :: Python :: 3.12", - "Programming Language :: Python :: Implementation :: CPython", - "Programming Language :: Python :: Implementation :: PyPy", + "Development Status :: 4 - Beta", + "Programming Language :: Python", + "Programming Language :: Python :: 3.8", + "Programming Language :: Python :: 3.9", + "Programming Language :: Python :: 3.10", + "Programming Language :: Python :: 3.11", + "Programming Language :: Python :: 3.12", + "Programming Language :: Python :: Implementation :: CPython", + "Programming Language :: Python :: Implementation :: PyPy", ] dependencies = [ "requests>=1.0.0", @@ -26,6 +25,8 @@ dependencies = [ "importlib-resources==3.0.0;python_version<'3.9'", ] +dynamic = ["version"] + [project.urls] Documentation = "https://github.com/santosh-d3vpl3x/duckdb_extensions#readme" Issues = "https://github.com/santosh-d3vpl3x/duckdb_extensions/issues" @@ -35,6 +36,9 @@ Source = "https://github.com/santosh-d3vpl3x/duckdb_extensions" requires = ["hatchling"] build-backend = "hatchling.build" +[tool.hatch.version] +path = "_version.py" + [tool.uv.workspace] members = ["extensions/*"] diff --git a/templates/duckdb_extension_{@cookiecutter.extension_name@}/pyproject.toml b/templates/duckdb_extension_{@cookiecutter.extension_name@}/pyproject.toml index cfde377..953eabe 100644 --- a/templates/duckdb_extension_{@cookiecutter.extension_name@}/pyproject.toml +++ b/templates/duckdb_extension_{@cookiecutter.extension_name@}/pyproject.toml @@ -1,7 +1,6 @@ [project] name = "duckdb_extension_{@cookiecutter.extension_name@}" description = "Duckdb {@cookiecutter.extension_name@} extension" -version = "1.0.4a1" requires-python = ">=3.8" license = "MIT" readme = "README.md" @@ -26,6 +25,8 @@ dependencies = [ "importlib-resources==3.0.0;python_version<'3.9'", ] +dynamic = ["version"] + [project.urls] Documentation = "https://github.com/santosh-d3vpl3x/duckdb_extensions#readme" Issues = "https://github.com/santosh-d3vpl3x/duckdb_extensions/issues" @@ -35,6 +36,9 @@ Source = "https://github.com/santosh-d3vpl3x/duckdb_extensions" requires = ["hatchling"] build-backend = "hatchling.build" +[tool.hatch.version] +path = "../../_version.py" + [tool.hatch.build.targets.wheel.hooks.custom] path = "../../add_extension_files.py" require-runtime-dependencies = true