From a8d128457620ec2f6cc31e544a0a996c69ff31aa Mon Sep 17 00:00:00 2001 From: Paul-Emmanuel Raoul Date: Sat, 19 Aug 2023 15:49:10 +0200 Subject: [PATCH 1/2] Fix publishing jobs It was incorrectly assumed that the PyPI publish GitHub Action was building the Python package before uploading it. --- .github/workflows/test_and_publish.yml | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) diff --git a/.github/workflows/test_and_publish.yml b/.github/workflows/test_and_publish.yml index 010c82e..dbf1cbf 100644 --- a/.github/workflows/test_and_publish.yml +++ b/.github/workflows/test_and_publish.yml @@ -94,6 +94,19 @@ jobs: - name: Check out code uses: actions/checkout@v3 + - name: Set up Python + uses: actions/setup-python@v4 + with: + python-version: '3.x' + + - name: Install dependencies + run: | + python -m pip install --upgrade pip + pip install --upgrade build setuptools wheel + + - name: Build Python package + run: python -m build + - name: Publish to TestPyPI uses: pypa/gh-action-pypi-publish@v1.8.10 with: @@ -119,6 +132,19 @@ jobs: - name: Check out code uses: actions/checkout@v3 + - name: Set up Python + uses: actions/setup-python@v4 + with: + python-version: '3.x' + + - name: Install dependencies + run: | + python -m pip install --upgrade pip + pip install --upgrade build setuptools wheel + + - name: Build Python package + run: python -m build + - name: Publish to PyPI uses: pypa/gh-action-pypi-publish@v1.8.10 with: From 525e662dba56bbef063c8ee239fffbb32dd36fcb Mon Sep 17 00:00:00 2001 From: Paul-Emmanuel Raoul Date: Sat, 19 Aug 2023 15:50:44 +0200 Subject: [PATCH 2/2] Bump version number to 0.5.1 --- pyproject.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pyproject.toml b/pyproject.toml index 8be73a9..9794aec 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,6 +1,6 @@ [project] name = "hdlcontroller" -version = "0.4.1" +version = "0.5.1" description = "HDLC controller" readme = "README.rst" requires-python = ">= 3.7, <4"