Skip to content

Commit

Permalink
Merge pull request #28 from monarch-initiative/dynamic-versioning
Browse files Browse the repository at this point in the history
Enable dynamic versioning while releasing through GitHub
  • Loading branch information
glass-ships authored Feb 9, 2024
2 parents 3fad77e + c7d99cc commit d64dfce
Show file tree
Hide file tree
Showing 3 changed files with 29 additions and 24 deletions.
14 changes: 7 additions & 7 deletions .github/workflows/publish.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -25,13 +25,13 @@ jobs:
virtualenvs-create: true
virtualenvs-in-project: true

- name: Build
- name: Build source and wheel archives
run: |
poetry version $(git describe --tags --abbrev=0)
poetry build
- name: Publish to PyPi
env:
PYPI_API_TOKEN: ${{ secrets.PYPI_API_TOKEN }}
run: |
poetry config http-basic.pypi "__token__" "${PYPI_API_TOKEN}"
poetry publish
- name: Publish distribution 📦 to PyPI
uses: pypa/[email protected]
with:
user: __token__
password: ${{ secrets.PYPI_API_TOKEN }}
28 changes: 14 additions & 14 deletions poetry.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

11 changes: 8 additions & 3 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[tool.poetry]
name = "kghub-downloader"
version = "0.3.5"
version = "0.0.0"
description = "Downloads and caches files for knowledge graph ETL"
authors = ["The Monarch Initiative <[email protected]>"]

Expand All @@ -27,6 +27,11 @@ pytest = "^6.2.5"
[tool.poetry.group.dev.dependencies]
moto = "^5.0.1"

[tool.poetry-dynamic-versioning]
enable = true
vcs = "git"
style = "pep440"

[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"

0 comments on commit d64dfce

Please sign in to comment.