diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index fb70dcd..8814741 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -19,9 +19,8 @@ jobs: - name: Install Poetry run: | - pip install -U pip - pip install -U poetry==v1.2.0a2 - poetry plugin add poetry-version-plugin + pip install -U pip poetry + poetry self add "poetry-dynamic-versioning[plugin]" - name: Cache uses: actions/cache@v3 diff --git a/pyproject.toml b/pyproject.toml index 7aaee38..f45a5a5 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -35,12 +35,12 @@ requests = ["requests"] httpx = ["httpx"] all = ["pydantic", "requests", "httpx"] -[tool.poetry-version-plugin] -source = "git-tag" +[tool.poetry-dynamic-versioning] +enable = true [build-system] -requires = ["poetry-core>=1.0.0"] -build-backend = "poetry.core.masonry.api" +requires = ["poetry-core>=1.0.0", "poetry-dynamic-versioning"] +build-backend = "poetry_dynamic_versioning.backend" [tool.black] target-version = ["py38", "py39", "py310"]