diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 30a86d908..fbb453f05 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -100,7 +100,7 @@ jobs: # psutil tests do not like running from a virtualenv with python>=3.7 so # not using cibuildwheel for those. run them "manually" with this job. windows-py3-test: - name: windows-py3-test-${{ matrix.python }}-${{ matrix.architecture }} + name: py3-windows-test-${{ matrix.python }}-${{ matrix.architecture }} needs: py3 runs-on: windows-2019 timeout-minutes: 20 @@ -143,7 +143,7 @@ jobs: # Linux + macOS + Python 2 linux-macos-py2: - name: ${{ matrix.os }}-py2 + name: py2-${{ matrix.os }} runs-on: ${{ matrix.os }} timeout-minutes: 20 strategy: diff --git a/Makefile b/Makefile index a5ee28e29..930325dd1 100644 --- a/Makefile +++ b/Makefile @@ -254,7 +254,7 @@ git-tag-release: ## Git-tag a new release. sdist: ## Create tar.gz source distribution. ${MAKE} generate-manifest $(PYTHON) setup.py sdist - $(PYTHON) -m twine check dist/*.tar.gz + $(PYTHON) -m twine check --strict dist/*.tar.gz # --- others @@ -276,7 +276,7 @@ pre-release: ## Check if we're ready to produce a new release. ${MAKE} download-wheels-appveyor ${MAKE} print-hashes ${MAKE} print-wheels - $(PYTHON) -m twine check dist/* + $(PYTHON) -m twine check --strict dist/* $(PYTHON) -c \ "from psutil import __version__ as ver; \ doc = open('docs/index.rst').read(); \ @@ -286,7 +286,7 @@ pre-release: ## Check if we're ready to produce a new release. assert 'XXXX' not in history, 'XXXX in HISTORY.rst';" release: ## Create a release (down/uploads tar.gz, wheels, git tag release). - $(PYTHON) -m twine check dist/* + $(PYTHON) -m twine check --strict dist/* $(PYTHON) -m twine upload dist/* # upload tar.gz and Windows wheels on PyPI ${MAKE} git-tag-release diff --git a/make.bat b/make.bat index b424ed203..2c79d4291 100644 --- a/make.bat +++ b/make.bat @@ -3,28 +3,26 @@ rem ========================================================================== rem Shortcuts for various tasks, emulating UNIX "make" on Windows. rem It is primarily intended as a shortcut for compiling / installing -rem psutil ("make.bat build", "make.bat install") and running tests -rem ("make.bat test"). +rem psutil and running tests. E.g.: +rem +rem make build +rem make install +rem make test rem rem This script is modeled after my Windows installation which uses: rem - Visual studio 2008 for Python 2.7 rem - Visual studio 2010 for Python 3.4+ rem ...therefore it might not work on your Windows installation. rem -rem By default C:\Python27\python.exe is used. rem To compile for a specific Python version run: rem set PYTHON=C:\Python34\python.exe & make.bat build rem rem To use a different test script: -rem set PYTHON=C:\Python34\python.exe & set TSCRIPT=foo.py & make.bat test +rem set TSCRIPT=foo.py & make.bat test rem ========================================================================== if "%PYTHON%" == "" ( - if exist "C:\Python38-64\python.exe" ( - set PYTHON=C:\Python38-64\python.exe - ) else ( - set PYTHON=C:\Python27\python.exe - ) + set PYTHON=python ) if "%TSCRIPT%" == "" ( diff --git a/scripts/internal/convert_readme.py b/scripts/internal/convert_readme.py index bd00cf234..d96c6c5d3 100755 --- a/scripts/internal/convert_readme.py +++ b/scripts/internal/convert_readme.py @@ -48,11 +48,7 @@ def main(): data = f.read() data = re.sub(r".. raw:: html\n+\s+