diff --git a/.github/workflows/cdci.yml b/.github/workflows/cdci.yml index 4731261..9fd742c 100644 --- a/.github/workflows/cdci.yml +++ b/.github/workflows/cdci.yml @@ -95,3 +95,26 @@ jobs: cd docs vuegen -dir example_data/Earth_microbiome_vuegen_demo_notebook -rt jupyter vuegen -c example_data/Earth_microbiome_vuegen_demo_notebook/Earth_microbiome_vuegen_demo_notebook_config.yaml -rt jupyter + + publish: + name: Publish package to PyPI + if: startsWith(github.ref, 'refs/tags') + permissions: + id-token: write + needs: + - test + - other-reports + runs-on: ubuntu-latest + + steps: + - uses: actions/checkout@v4 + + - uses: actions/setup-python@v5 + with: + python-version: "3.11" + - name: Install twine and build + run: python -m pip install --upgrade twine build + - name: Build + run: python -m build + - name: Publish package distributions to PyPI + uses: pypa/gh-action-pypi-publish@release/v1 diff --git a/pyproject.toml b/pyproject.toml index 91f93b3..60f6103 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,11 +1,14 @@ -[tool.poetry] +[project] name = "vuegen" -version = "0.1.0" +dynamic = ["version"] + +[tool.poetry] description = "Module to generate automatic web interface reports with visualizations" authors = ["MoNA group"] license = "MIT" readme = "README.md" repository = "https://github.com/Multiomics-Analytics-Group/vuegen" +version = "0.1.0" [tool.poetry.dependencies] python = ">=3.9,<3.9.7 || >3.9.7,<4.0" @@ -39,9 +42,16 @@ quarto-cli = "*" [tool.poetry.group.dev.dependencies] ipykernel = {version="^6.29.5", optional=true} +[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" # https://stackoverflow.com/a/60990574/9684872 [tool.poetry.extras]