From d425b2dc9d2433b17a3125209244c0e6ace77a27 Mon Sep 17 00:00:00 2001 From: Mourits de Beer <31511766+ff137@users.noreply.github.com> Date: Thu, 14 Nov 2024 11:32:15 +0200 Subject: [PATCH] =?UTF-8?q?=F0=9F=91=B7=20Upload=20Python=20Package=20to?= =?UTF-8?q?=20TestPyPI=20(#4)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * :construction_worker: Upload Python Package to TestPyPI Signed-off-by: ff137 * :construction_worker: Update project name and version for testpypi Signed-off-by: ff137 * :art: Signed-off-by: ff137 --------- Signed-off-by: ff137 --- .github/workflows/pythonpublish.yml | 21 +++++++++++---------- acapy_agent/version.py | 2 +- pyproject.toml | 4 ++-- 3 files changed, 14 insertions(+), 13 deletions(-) diff --git a/.github/workflows/pythonpublish.yml b/.github/workflows/pythonpublish.yml index c74ef590df..74fb6a26eb 100644 --- a/.github/workflows/pythonpublish.yml +++ b/.github/workflows/pythonpublish.yml @@ -1,29 +1,30 @@ -name: Upload Python Package +name: Upload Python Package to TestPyPI on: release: types: [created] + workflow_dispatch: # Allows manual triggering of the workflow for testing jobs: deploy: runs-on: ubuntu-latest - environment: - name: pypi - url: https://pypi.org/p/acapy-agent - permissions: - id-token: write # IMPORTANT: this permission is mandatory for trusted publishing + steps: - uses: actions/checkout@v4 - name: Set up Python uses: actions/setup-python@v5 with: python-version: "3.x" - - name: Install build and publish dependencies + - name: Install build dependencies run: | python -m pip install --upgrade pip pip install setuptools wheel twine poetry - - name: Build and publish + - name: Build package distributions run: | poetry build - - name: Publish package distributions to PyPI - uses: pypa/gh-action-pypi-publish@release/v1 + - name: Publish to TestPyPI + env: + TWINE_USERNAME: ${{ secrets.TEST_PYPI_USERNAME }} + TWINE_PASSWORD: ${{ secrets.TEST_PYPI_PASSWORD }} + run: | + twine upload --repository-url https://test.pypi.org/legacy/ --skip-existing dist/* diff --git a/acapy_agent/version.py b/acapy_agent/version.py index f0b415185b..4e0fac50bf 100644 --- a/acapy_agent/version.py +++ b/acapy_agent/version.py @@ -2,5 +2,5 @@ from importlib import metadata -__version__ = metadata.version("acapy-agent") +__version__ = metadata.version("acapy-agent-didx") RECORD_TYPE_ACAPY_VERSION = "acapy_version" diff --git a/pyproject.toml b/pyproject.toml index a709abe182..2d81a3dfb5 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,6 +1,6 @@ [tool.poetry] -name = "acapy_agent" -version = "1.1.0" +name = "acapy_agent_didx" +version = "1.1.1-20241114" description = "(ACA-Py) A Cloud Agent Python is a foundation for building decentralized identity applications and services running in non-mobile environments. " authors = [] license = "Apache-2.0"