From 31d2876b46cb6255e939ef3cdd09056d055563e6 Mon Sep 17 00:00:00 2001 From: Dongdong Tian Date: Tue, 26 Mar 2024 12:35:36 +0800 Subject: [PATCH] Replace 'pip' with 'python -m pip' --- .github/workflows/check.yml | 4 ++-- .github/workflows/docs.yml | 6 +++--- .github/workflows/pypi-publish.yml | 2 +- .github/workflows/tests.yml | 6 +++--- Makefile | 2 +- docs/installation.rst | 4 ++-- 6 files changed, 12 insertions(+), 12 deletions(-) diff --git a/.github/workflows/check.yml b/.github/workflows/check.yml index d718f44e..8b698c06 100644 --- a/.github/workflows/check.yml +++ b/.github/workflows/check.yml @@ -24,8 +24,8 @@ jobs: - name: Install dependencies run: | - pip install -r requirements.txt - pip install black blackdoc flake8 isort + python -m pip install -r requirements.txt + python -m pip install black blackdoc flake8 isort - name: Check code style run: make check diff --git a/.github/workflows/docs.yml b/.github/workflows/docs.yml index 84882c9e..30ab8392 100644 --- a/.github/workflows/docs.yml +++ b/.github/workflows/docs.yml @@ -37,10 +37,10 @@ jobs: - name: Install dependencies run: | - pip install -r requirements.txt - pip install sphinx sphinx-intl sphinx_rtd_theme + python -m pip install -r requirements.txt + python -m pip install sphinx sphinx-intl sphinx_rtd_theme python setup.py sdist --formats=zip - pip install dist/* + python -m pip install dist/* - name: Build documentation run: make doc diff --git a/.github/workflows/pypi-publish.yml b/.github/workflows/pypi-publish.yml index 1f8a777a..7519c72f 100644 --- a/.github/workflows/pypi-publish.yml +++ b/.github/workflows/pypi-publish.yml @@ -23,7 +23,7 @@ jobs: - name: Install dependencies run: | - pip install setuptools wheel + python -m pip install setuptools wheel - name: Build and publish run: | diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index b8a82a43..a4a290fc 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -42,10 +42,10 @@ jobs: - name: Install dependencies run: | - pip install -r requirements.txt - pip install pytest>=6.0 pytest-cov coverage[toml] codecov setuptools + python -m pip install -r requirements.txt + python -m pip install pytest>=6.0 pytest-cov coverage[toml] codecov setuptools python setup.py sdist --formats=zip - pip install dist/* + python -m pip install dist/* - name: Install win32tools run: | diff --git a/Makefile b/Makefile index 28fe945b..8494c08d 100644 --- a/Makefile +++ b/Makefile @@ -13,7 +13,7 @@ help: @echo "" install: - pip install --no-deps -e . + python -m pip install --no-deps -e . test: pytest tests/test_*.py diff --git a/docs/installation.rst b/docs/installation.rst index 04a87f8a..45462197 100644 --- a/docs/installation.rst +++ b/docs/installation.rst @@ -15,7 +15,7 @@ Install HinetPy To install the latest **release/stable** version:: - pip install HinetPy + python -m pip install HinetPy Or install the **developing/unstable** version:: @@ -25,7 +25,7 @@ Or install the **developing/unstable** version:: If you want to uninstall HinetPy, just run:: - pip uninstall HinetPy + python -m pip uninstall HinetPy Build win32tools ----------------