From 9e466da004da9cb234b473d150fe00dab39fa012 Mon Sep 17 00:00:00 2001 From: Johannes Thiem Date: Thu, 16 May 2024 15:58:04 +0200 Subject: [PATCH] feat: publish to pypi test --- .github/workflows/build-publish-package.yml | 11 +++++------ pyproject.toml | 4 ++-- 2 files changed, 7 insertions(+), 8 deletions(-) diff --git a/.github/workflows/build-publish-package.yml b/.github/workflows/build-publish-package.yml index 13585a8..cf3b7c3 100644 --- a/.github/workflows/build-publish-package.yml +++ b/.github/workflows/build-publish-package.yml @@ -2,8 +2,7 @@ name: Build and Publish Python Package on: push: - tags: - - '*' + jobs: build-publish: @@ -25,16 +24,16 @@ jobs: path: dist/* - name: Publish to Test PyPI env: - TWINE_USERNAME: ${{ secrets.TEST_PYPI_USERNAME }} - TWINE_PASSWORD: ${{ secrets.TEST_PYPI_PASSWORD }} + TWINE_USERNAME: '__token__' + TWINE_PASSWORD: ${{ secrets.TEST_PYPI_API_TOKEN }} run: | pip install twine twine upload --repository testpypi dist/* # - name: Publish to PyPI # if: startsWith(github.ref, 'refs/tags/') # env: - # TWINE_USERNAME: ${{ secrets.PYPI_USERNAME }} - # TWINE_PASSWORD: ${{ secrets.PYPI_PASSWORD }} + # TWINE_USERNAME: '__token__' + # TWINE_PASSWORD: ${{ secrets.PYPI_API_TOKEN }} # run: | # pip install twine # twine upload dist/* diff --git a/pyproject.toml b/pyproject.toml index 5db4ab1..ac0fefe 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,7 +1,7 @@ [tool] [tool.poetry] name = "new-pykube" -version = "23.6.0" +version = "24.5.0" description = "Python client library for Kubernetes" license = "Apache" classifiers = [ @@ -18,7 +18,7 @@ classifiers = [ "Programming Language :: Python :: 3.10", "Programming Language :: Python :: 3 :: Only", ] -authors = ["Eldarion, Inc. ", "Henning Jacobs "] +authors = ["Jonathan Mayer ", "Jan Taeuber ", "Johannes Thiem "] readme = "README.md" homepage = "https://github.com/caas-team/new-pykube" packages = [{ include = "pykube" }]