From fbd66b69cb738c8fa7b9070504c38ad3964be68d Mon Sep 17 00:00:00 2001 From: legregam Date: Mon, 22 May 2023 10:36:41 +0200 Subject: [PATCH 1/2] Changed workflow to not modify version --- .github/workflows/deploy_test_pypi.yml | 24 ++++++++++++------------ physiofit/base/io.py | 1 - 2 files changed, 12 insertions(+), 13 deletions(-) diff --git a/.github/workflows/deploy_test_pypi.yml b/.github/workflows/deploy_test_pypi.yml index 6aec3eb..34b6155 100644 --- a/.github/workflows/deploy_test_pypi.yml +++ b/.github/workflows/deploy_test_pypi.yml @@ -4,15 +4,15 @@ on: release: types: [ published ] -jobs: - publish-service-client-package: - runs-on: ubuntu-latest - steps: - - name: Publish PyPi package - uses: code-specialist/pypi-poetry-publish@v1 - with: - PACKAGE_DIRECTORY: "./physiofit" - PYTHON_VERSION: "3.10" - ACCESS_TOKEN: ${{ secrets.GITHUB_TOKEN }} - PUBLISH_REGISTRY_PASSWORD: ${{ secrets.TEST_PYPI_API_TOKEN }} - PUBLISH_REGISTRY: "https://test.pypi.org/legacy/" +steps: + - name: Checkout Repository # You must checkout your repository first. + uses: actions/checkout@v3 + + - name: Publish Package + uses: celsiusnarhwal/poetry-publish@v2 + with: + python-version: 3.11 + poetry-version: 1.3.1 + token: ${{ secrets.TEST_PYPI_API_TOKEN }} + build: true + repo: "testpypi" diff --git a/physiofit/base/io.py b/physiofit/base/io.py index ae96763..25ceb7a 100644 --- a/physiofit/base/io.py +++ b/physiofit/base/io.py @@ -321,7 +321,6 @@ def output_recap(self, export_path: str): final_df.to_csv(f"{str(Path(export_path))}/summary.csv") - def output_report(self, fitter, export_path: str |list = None): """ Handle creation and export of the report containing stats from monte From 7b8ffbfefdf4ba95cf83b23835f72a269f9869f0 Mon Sep 17 00:00:00 2001 From: legregam Date: Mon, 22 May 2023 10:36:51 +0200 Subject: [PATCH 2/2] bump to 3.0.5 --- physiofit/__init__.py | 4 ++-- pyproject.toml | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/physiofit/__init__.py b/physiofit/__init__.py index b7a9c15..7077eb4 100644 --- a/physiofit/__init__.py +++ b/physiofit/__init__.py @@ -1,3 +1,3 @@ -"""Version changes handled by github action""" +import importlib.metadata -__version__ = "3.0.4" \ No newline at end of file +__version__ = importlib.metadata.version("physiofit") \ No newline at end of file diff --git a/pyproject.toml b/pyproject.toml index ea0e97e..69fb48c 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,6 +1,6 @@ [tool.poetry] name = "physiofit" -version = "3.0.4" +version = "3.0.5" description = "Calculate extracellular fluxes from metabolite concentrations and biomass data" authors = ["llegregam "] license = "GNU General Public License (GPL)"