diff --git a/.github/workflows/package-build.yml b/.github/workflows/package-build.yml index c0679d32..2e96056e 100644 --- a/.github/workflows/package-build.yml +++ b/.github/workflows/package-build.yml @@ -25,6 +25,20 @@ jobs: with: fetch-depth: 0 - uses: hynek/build-and-inspect-python-package@v1.5 + id: build-pkg + - name: Set up Python + uses: actions/setup-python@v4 + with: + python-version: x # any version + check-latest: true + - name: Test installing wheel + run: | + pip install ${{ steps.build-pkg.outputs.dist }}/*.whl + pip uninstall --yes tm_devices + - name: Test installing tarball + run: | + pip install ${{ steps.build-pkg.outputs.dist }}/*.tar.gz + pip uninstall --yes tm_devices # Upload to Test PyPI on every push to main test-pypi: @@ -43,6 +57,14 @@ jobs: uses: pypa/gh-action-pypi-publish@v1.8.8 with: repository-url: https://test.pypi.org/legacy/ + - name: Set up Python + uses: actions/setup-python@v4 + with: + python-version: x # any version + check-latest: true + - name: Test installing from test.pypi.org + run: pip install --index-url=https://test.pypi.org/simple/ --extra-index-url=https://pypi.org/simple + tm_devices # Upload to PyPI and create a tag in the repo after a GitHub Release is published pypi: @@ -66,3 +88,10 @@ jobs: run: |- git tag --annotate v${{ github.event.release.tag_name }} --message="${{ github.event.release.name }}" git push --tags + - name: Set up Python + uses: actions/setup-python@v4 + with: + python-version: x # any version + check-latest: true + - name: Test installing from pypi.org + run: pip install tm_devices diff --git a/README.rst b/README.rst index 93909fab..cc1099a3 100644 --- a/README.rst +++ b/README.rst @@ -21,7 +21,7 @@ * - Documentation - |Documentation status| * - Code Style - - |Code style: black| |Test style: pytest| |Imports: isort| |Docstring style: google| + - |Test style: pytest| |Code style: black| |Imports: isort| |Docstring style: google| * - Linting - |pre-commit enabled| |Docstring formatter: docformatter| |Type Checker: pyright| |Linter: pylint| |Linter: Ruff| @@ -237,12 +237,12 @@ Supported Connections Documentation ------------- -See the full documentation at https://tm_devices.readthedocs.io +See the full documentation at ``__ Maintainers ----------- -- Tektronix https://pypi.org/user/Tektronix/ +- Tektronix opensource@tektronix.com - Nicholas Felt nicholas.felt@tektronix.com Contributing diff --git a/pyproject.toml b/pyproject.toml index 67f11081..e8f28352 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -43,7 +43,7 @@ mypy_path = "./src/" [tool.poetry] authors = [ - "Tektronix ", + "Tektronix ", "Nicholas Felt " ] classifiers = [ @@ -68,7 +68,7 @@ keywords = [ ] license = "Apache License 2.0" maintainers = [ - "Tektronix ", + "Tektronix ", "Nicholas Felt " ] name = "tm_devices"