From 19030052b06a536ea20e5e6e2b7ce1de8987421d Mon Sep 17 00:00:00 2001 From: Oleg Broytman Date: Sun, 17 Sep 2023 19:20:24 +0300 Subject: [PATCH] CI(pip): Ensure `pip` only if needed This is to work around a problem in conda with Python 3.7 - it brings in wrong version of `setuptools` incompatible with Python 3.7. --- .github/workflows/run-tests.yaml | 2 +- docs/news.rst | 7 ++++++- m_librarian/__version__.py | 2 +- 3 files changed, 8 insertions(+), 3 deletions(-) diff --git a/.github/workflows/run-tests.yaml b/.github/workflows/run-tests.yaml index b7367d1..7a4d53d 100644 --- a/.github/workflows/run-tests.yaml +++ b/.github/workflows/run-tests.yaml @@ -48,7 +48,7 @@ jobs: - name: Install dependencies run: | python --version - python -m ensurepip + python -m pip || python -m ensurepip --default-pip --upgrade python -m pip install --upgrade pip setuptools wheel pip --version pip install --upgrade virtualenv "tox >= 3.15, < 4" diff --git a/docs/news.rst b/docs/news.rst index a52a3ec..6b9995b 100644 --- a/docs/news.rst +++ b/docs/news.rst @@ -1,9 +1,14 @@ News ==== -Version 0.2.0.post1 +Version 0.2.0.post2 ------------------- +* GHActions: Ensure `pip` only if needed + + This is to work around a problem in conda with Python 3.7 - + it brings in wrong version of `setuptools` incompatible with Python 3.7. + Version 0.2.0.post1 (2023-07-13) -------------------------------- diff --git a/m_librarian/__version__.py b/m_librarian/__version__.py index 2bad93d..c69e8fb 100644 --- a/m_librarian/__version__.py +++ b/m_librarian/__version__.py @@ -1 +1 @@ -__version__ = '0.2.0.post1' +__version__ = '0.2.0.post2'