diff --git a/.github/workflows/docs.yml b/.github/workflows/docs.yml index ffe70a9c..fd51968e 100644 --- a/.github/workflows/docs.yml +++ b/.github/workflows/docs.yml @@ -30,8 +30,8 @@ jobs: run: | pip install -r requirements.txt pip install sphinx sphinx-intl sphinx_rtd_theme - python setup.py sdist --formats=zip - pip install dist/* + python -m build --sdist + python -m install dist/* - name: Build documentation run: make doc diff --git a/.github/workflows/pypi-publish.yml b/.github/workflows/pypi-publish.yml index 1f8a777a..ca65d66c 100644 --- a/.github/workflows/pypi-publish.yml +++ b/.github/workflows/pypi-publish.yml @@ -27,7 +27,7 @@ jobs: - name: Build and publish run: | - python setup.py sdist bdist_wheel + python -m build ls -lh dist/ - name: Publish to PyPI diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index d686a03d..d5784713 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -40,8 +40,8 @@ jobs: run: | pip install -r requirements.txt pip install pytest>=6.0 pytest-cov coverage[toml] codecov setuptools - python setup.py sdist --formats=zip - pip install dist/* + python -m build --sdist + 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..b4b98240 100644 --- a/docs/installation.rst +++ b/docs/installation.rst @@ -15,17 +15,17 @@ Install HinetPy To install the latest **release/stable** version:: - pip install HinetPy + python -m pip install HinetPy Or install the **developing/unstable** version:: git clone https://github.com/seisman/HinetPy cd HinetPy - python setup.py install + python -m pip install . If you want to uninstall HinetPy, just run:: - pip uninstall HinetPy + python -m pip uninstall HinetPy Build win32tools ----------------