diff --git a/.github/workflows/docs.yml b/.github/workflows/docs.yml index 283df7c65..2436f10be 100644 --- a/.github/workflows/docs.yml +++ b/.github/workflows/docs.yml @@ -29,6 +29,7 @@ jobs: run: | pip install --upgrade pip pip install poetry + pip install poetry-dynamic-versioning - name: Poetry cache uses: actions/cache@v2 diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml index 357fd0285..100c0be33 100644 --- a/.github/workflows/lint.yml +++ b/.github/workflows/lint.yml @@ -34,6 +34,7 @@ jobs: run: | pip install --upgrade pip pip install poetry + pip install poetry-dynamic-versioning - name: Poetry cache uses: actions/cache@v2 diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 43e9a33a1..d02d5441a 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -28,6 +28,7 @@ jobs: run: | pip install --upgrade pip pip install poetry + pip install poetry-dynamic-versioning - name: Create environment variables run: echo "BTK_HOME=$GITHUB_WORKSPACE" >> $GITHUB_ENV diff --git a/pyproject.toml b/pyproject.toml index 156619b83..3522c80d8 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -63,6 +63,11 @@ btk = "btk.__main__:run" [tool.poetry.urls] "Bug Tracker" = "https://github.com/LSSTDESC/BlendingToolKit/issues" +[tool.poetry-dynamic-versioning] +enable = true +style = "semver" +vcs = "git" + [tool.black] line-length = 100 target-version = ['py37'] @@ -72,4 +77,4 @@ galsim-hub = ["galsim-hub", "tensorflow"] [build-system] build-backend = "poetry.core.masonry.api" -requires = ["poetry-core>=1.0.0"] +requires = ["poetry-core>=1.0.0", "poetry-dynamic-versioning"]