From d17c2db562cdc67e1e0575889432a2d6ff714330 Mon Sep 17 00:00:00 2001 From: Evgeny Ivanov Date: Tue, 9 May 2023 16:12:34 +0600 Subject: [PATCH] Update package version --- .github/workflows/release.yml | 4 ++-- pyproject.toml | 12 ++++++------ src/rico/_version.py | 2 +- 3 files changed, 9 insertions(+), 9 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 9137b8d..f19044d 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -6,6 +6,8 @@ on: jobs: publish: runs-on: ubuntu-latest + permissions: + id-token: write steps: - name: Checkout uses: actions/checkout@v3 @@ -19,6 +21,4 @@ jobs: - name: Install dependencies run: pdm sync -G complete - name: Build and publish - env: - PDM_PUBLISH_PASSWORD: ${{ secrets.PYPI_TOKEN }} run: pdm publish -v diff --git a/pyproject.toml b/pyproject.toml index eabd830..f3549c9 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,7 +1,7 @@ [project] name = "rico" -version = "0.0.1" -# dynamic = ["version"] +# version = "0.0.1" +dynamic = ["version"] description = "Rich content to HTML as easy as doc.print(x)." authors = [ {name = "Evgeny Ivanov", email = "ivanov.evgeny.n@gmail.com"}, @@ -52,10 +52,10 @@ test = "pytest" [tool.pdm.build] package-dir = "src" -# [tool.pdm.version] -# source = "scm" -# write_to = "rico/_version.py" -# write_template = "__version__ = \"{}\"" +[tool.pdm.version] +source = "scm" +write_to = "rico/_version.py" +write_template = "__version__ = \"{}\"" [tool.isort] diff --git a/src/rico/_version.py b/src/rico/_version.py index 3c17bc5..961a54a 100644 --- a/src/rico/_version.py +++ b/src/rico/_version.py @@ -1,2 +1,2 @@ """Package version.""" -__version__ = "0.0.1" +__version__ = "0.0.2"