Skip to content

Commit

Permalink
add dynamic versioining
Browse files Browse the repository at this point in the history
  • Loading branch information
ismael-mendoza committed Jul 16, 2021
1 parent 3fe07a0 commit ea72930
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 1 deletion.
1 change: 1 addition & 0 deletions .github/workflows/docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
7 changes: 6 additions & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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']
Expand All @@ -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"]

0 comments on commit ea72930

Please sign in to comment.