From 8eb1616f173e367164441071fa3d46873fae3bd5 Mon Sep 17 00:00:00 2001 From: Glenn Jocher Date: Fri, 31 May 2024 22:21:57 +0200 Subject: [PATCH] Update publish.yml (#16) --- .github/workflows/publish.yml | 6 ++---- thop/__init__.py | 2 +- 2 files changed, 3 insertions(+), 5 deletions(-) diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index ca9f862..77fa4b1 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -30,9 +30,7 @@ jobs: - name: Install dependencies run: | python -m pip install --upgrade pip wheel build twine toml - pip install ultralytics --extra-index-url https://download.pytorch.org/whl/cpu - pip uninstall -y thop - pip install -e . + pip install -e . ultralytics --extra-index-url https://download.pytorch.org/whl/cpu - name: Check PyPI version shell: python run: | @@ -52,7 +50,7 @@ jobs: increment_patch = (d[0] == d[1] == 0) and (0 < d[2] < 3) # publish if patch version increments by 1 or 2 increment_minor = (d[0] == 0) and (d[1] == 1) and v_local[2] == 0 # publish if minor version increments - increment = increment_patch or increment_minor or True + increment = increment_patch or increment_minor os.system(f'echo "increment={increment}" >> $GITHUB_OUTPUT') os.system(f'echo "version={thop.__version__}" >> $GITHUB_OUTPUT') diff --git a/thop/__init__.py b/thop/__init__.py index 1a0756a..3f9851f 100644 --- a/thop/__init__.py +++ b/thop/__init__.py @@ -1,4 +1,4 @@ -__version__ = "0.2.3" +__version__ = "0.2.4" import torch