From 2d4aee0c4ee46ba964441382e63d8a951e140eac Mon Sep 17 00:00:00 2001 From: Isaac Wheeler Date: Mon, 9 Feb 2026 17:09:28 -0500 Subject: [PATCH] try out a version 1.1 release to testpypi --- .github/workflows/testpypi.yml | 56 ++++++++++++++++++++++++++++++++++ pyproject.toml | 2 +- 2 files changed, 57 insertions(+), 1 deletion(-) create mode 100644 .github/workflows/testpypi.yml diff --git a/.github/workflows/testpypi.yml b/.github/workflows/testpypi.yml new file mode 100644 index 0000000..d0e148d --- /dev/null +++ b/.github/workflows/testpypi.yml @@ -0,0 +1,56 @@ +name: Publish Python 🐍 distribution 📦 to PyPI and TestPyPI + +on: +- push +- pull_request + +jobs: + build: + name: Build distribution 📦 + runs-on: ubuntu-latest + + steps: + - uses: actions/checkout@v6 + with: + persist-credentials: false + - name: Set up Python + uses: actions/setup-python@v6 + with: + python-version: "3.x" + - name: Install pypa/build + run: >- + python3 -m + pip install + build + --user + - name: Build a binary wheel and a source tarball + run: python3 -m build + - name: Store the distribution packages + uses: actions/upload-artifact@v5 + with: + name: python-package-distributions + path: dist/ + + publish-to-testpypi: + name: Publish Python 🐍 distribution 📦 to TestPyPI + needs: + - build + runs-on: ubuntu-latest + + environment: + name: testpypi + url: https://test.pypi.org/p/ + + permissions: + id-token: write # IMPORTANT: mandatory for trusted publishing + + steps: + - name: Download all the dists + uses: actions/download-artifact@v6 + with: + name: python-package-distributions + path: dist/ + - name: Publish distribution 📦 to TestPyPI + uses: pypa/gh-action-pypi-publish@release/v1 + with: + repository-url: https://test.pypi.org/legacy/ \ No newline at end of file diff --git a/pyproject.toml b/pyproject.toml index 171fde3..1d0ba7b 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta" [project] name = "lyopronto" -version = "1.0.0" +version = "1.1.0" description = "LyoPRONTO: An open-source lyophilization process optimization tool" readme = "README.md" license = {text = "GPL-3.0-or-later"}