From 631413fd5c16398e252e95a92b898606f14265c8 Mon Sep 17 00:00:00 2001 From: Paul-Emmanuel Raoul Date: Sat, 18 Mar 2023 19:04:22 +0100 Subject: [PATCH 1/3] Fix RST formatting issue in readme --- README.rst | 2 +- setup.cfg | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/README.rst b/README.rst index 8f9b638..9eea1d6 100644 --- a/README.rst +++ b/README.rst @@ -18,7 +18,7 @@ Installation ============ From PyPI (recommended) ----------------------- +----------------------- .. code:: sh diff --git a/setup.cfg b/setup.cfg index ed6b1b4..70ab5f8 100644 --- a/setup.cfg +++ b/setup.cfg @@ -3,6 +3,7 @@ name = python4yahdlc version = 1.3.2 description = Python binding of the yahdlc library allowing to encode and decode HDLC frames. long_description = file: README.rst +long_description_content_type = text/x-rst keywords = hdlc, yahdlc, binding, network license = GPLv3 license_files = LICENSE.txt From 3b37212b410a991b9012962927cbd3b589c37ed3 Mon Sep 17 00:00:00 2001 From: Paul-Emmanuel Raoul Date: Sat, 18 Mar 2023 19:52:51 +0100 Subject: [PATCH 2/3] Add 'Test distribution' job --- .github/workflows/test_and_publish.yml | 27 ++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) diff --git a/.github/workflows/test_and_publish.yml b/.github/workflows/test_and_publish.yml index 10918b4..f2fa699 100644 --- a/.github/workflows/test_and_publish.yml +++ b/.github/workflows/test_and_publish.yml @@ -52,6 +52,33 @@ jobs: - name: Test with Tox run: tox + test-dist: + name: Test distribution + runs-on: ubuntu-latest + needs: is-duplicate + if: ${{ needs.is-duplicate.outputs.should_skip != 'true' }} + + steps: + - name: Check out code + uses: actions/checkout@v3 + with: + submodules: recursive + + - name: Set up Python + uses: actions/setup-python@v4.5.0 + with: + python-version: '3.x' + + - name: Install dependencies + run: | + python -m pip install --upgrade pip + pip install --upgrade build twine + + - name: Build and test with Twine + run: | + python -m build + twine check dist/* + publish-to-test-pypi: name: Publish to TestPyPI environment: staging From ac814a3f42cc3fd7b603743198070a8b749d1604 Mon Sep 17 00:00:00 2001 From: Paul-Emmanuel Raoul Date: Sat, 18 Mar 2023 20:04:50 +0100 Subject: [PATCH 3/3] Bump version number to 1.3.3 --- setup.cfg | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/setup.cfg b/setup.cfg index 70ab5f8..719ec80 100644 --- a/setup.cfg +++ b/setup.cfg @@ -1,6 +1,6 @@ [metadata] name = python4yahdlc -version = 1.3.2 +version = 1.3.3 description = Python binding of the yahdlc library allowing to encode and decode HDLC frames. long_description = file: README.rst long_description_content_type = text/x-rst