diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index b7a6712..c35c74c 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -19,7 +19,6 @@ jobs: python-version: 3.12 - run: | pip install -r requirements-poetry.txt - poetry self add poetry-dynamic-versioning[plugin] poetry sync poetry build - name: Publish package distributions to PyPI diff --git a/pyproject.toml b/pyproject.toml index 75751d0..156385b 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,6 +1,5 @@ [project] name = "sql-compare" -version = "0" description = "Compare SQL schemas" authors = [{ name = "Charly Laurent", email = "charly.laurent@mergify.com" }] maintainers = [{ name = "Mergify", email = "engineering@mergify.com" }] @@ -28,11 +27,15 @@ classifiers = [ "Topic :: Software Development :: Testing :: Unit", ] requires-python = ">=3.9" +dynamic = ["version"] [project.urls] repository = "https://github.com/Mergifyio/sql-compare" "Bug Tracker" = "https://github.com/Mergifyio/sql-compare/issues" +[tool.poetry] +version = "0.0.0" + [tool.poetry.dependencies] python = "^3.9" sqlparse = ">=0.5.0" @@ -45,9 +48,15 @@ poethepoet = ">=0.26.1,<0.35.0" deptry = ">=0.16.1,<0.24.0" semgrep = "^1.122.0" +[tool.poetry.requires-plugins] +poetry-dynamic-versioning = { version = ">=1.0.0,<2.0.0", extras = ["plugin"] } + +[tool.poetry-dynamic-versioning] +enable = true + [build-system] -requires = ["poetry-core"] -build-backend = "poetry.core.masonry.api" +requires = ["poetry-core>=1.0.0", "poetry-dynamic-versioning>=1.0.0,<2.0.0"] +build-backend = "poetry_dynamic_versioning.backend" [tool.poe] include = ["poe.toml"]