From 4a25ea4e10ece57d51c41f81d6759500e59f4728 Mon Sep 17 00:00:00 2001 From: Alexandre Muller Date: Tue, 9 Jan 2024 16:05:59 +0100 Subject: [PATCH] WIP for TestPyPI --- .github/workflows/publish-to-pipy.yml | 22 ++++++---------------- setup.cfg | 2 +- 2 files changed, 7 insertions(+), 17 deletions(-) diff --git a/.github/workflows/publish-to-pipy.yml b/.github/workflows/publish-to-pipy.yml index 24beed0..a54d621 100644 --- a/.github/workflows/publish-to-pipy.yml +++ b/.github/workflows/publish-to-pipy.yml @@ -4,13 +4,11 @@ on: push jobs: publish-to-pypi: - name: >- - Publish Python distribution to PyPI - if: startsWith(github.ref, 'refs/tags/') # only publish to PyPI on tag pushes + name: Publish Python distribution to PyPI runs-on: ubuntu-latest environment: - name: pypi - url: https://pypi.org/p/xlsx_streaming + name: testpypi + url: https://test.pypi.org/p/xlsx_streaming2 permissions: id-token: write # IMPORTANT: mandatory for trusted publishing @@ -28,15 +26,7 @@ jobs: --user - name: Build a binary wheel and a source tarball run: python3 -m build - - name: Store the distribution packages - uses: actions/upload-artifact@v3 - with: - name: python-package-distributions - path: dist/ - - name: Download all the dists - uses: actions/download-artifact@v3 - with: - name: python-package-distributions - path: dist/ - - name: Publish distribution to PyPI + - name: Publish distribution to TestPyPI uses: pypa/gh-action-pypi-publish@release/v1 + with: + repository-url: https://test.pypi.org/legacy/ diff --git a/setup.cfg b/setup.cfg index 3820e0f..9b43ee8 100644 --- a/setup.cfg +++ b/setup.cfg @@ -1,6 +1,6 @@ [metadata] name = xlsx_streaming -version = 1.2.0.dev0 +version = 0.6.0.dev0 description = Export your data as an xlsx stream long_description = file: README.rst long_description_content_type = text/x-rst