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 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..719ec80 100644 --- a/setup.cfg +++ b/setup.cfg @@ -1,8 +1,9 @@ [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 keywords = hdlc, yahdlc, binding, network license = GPLv3 license_files = LICENSE.txt