From 48a65656eea5e18a031e992ce65553f338fae902 Mon Sep 17 00:00:00 2001 From: Hugo van Kemenade Date: Fri, 1 Apr 2022 11:15:09 +0300 Subject: [PATCH 1/3] Call twine via 'python -m' and with '--strict' --- RELEASING.md | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/RELEASING.md b/RELEASING.md index cbedd449c..5132631b4 100644 --- a/RELEASING.md +++ b/RELEASING.md @@ -24,13 +24,13 @@ Released quarterly on January 2nd, April 1st, July 1st and October 15th. * [ ] Create and check source distribution: ```bash make sdist - twine check dist/* + python3 -m twine check --strict dist/* ``` * [ ] Create [binary distributions](https://github.com/python-pillow/Pillow/blob/main/RELEASING.md#binary-distributions) * [ ] Check and upload all binaries and source distributions e.g.: ```bash - twine check dist/* - twine upload dist/Pillow-5.2.0* + python3 -m twine check --strict dist/* + python3 -m twine upload dist/Pillow-5.2.0* ``` * [ ] Publish the [release on GitHub](https://github.com/python-pillow/Pillow/releases) * [ ] In compliance with [PEP 440](https://www.python.org/dev/peps/pep-0440/), increment and append `.dev0` to version identifier in `src/PIL/_version.py` @@ -61,13 +61,13 @@ Released as needed for security, installation or critical bug fixes. * [ ] Create and check source distribution: ```bash make sdist - twine check dist/* + python3 -m twine check --strict dist/* ``` * [ ] Create [binary distributions](https://github.com/python-pillow/Pillow/blob/main/RELEASING.md#binary-distributions) * [ ] Check and upload all binaries and source distributions e.g.: ```bash - twine check dist/* - twine upload dist/Pillow-5.2.1* + python3 -m twine --strict check dist/* + python3 -m twine upload dist/Pillow-5.2.1* ``` * [ ] Publish the [release on GitHub](https://github.com/python-pillow/Pillow/releases) @@ -91,7 +91,7 @@ Released as needed privately to individual vendors for critical security-related * [ ] Create and check source distribution: ```bash make sdist - twine check dist/* + python3 -m twine check --strict dist/* ``` * [ ] Create [binary distributions](https://github.com/python-pillow/Pillow/blob/main/RELEASING.md#binary-distributions) * [ ] Publish the [release on GitHub](https://github.com/python-pillow/Pillow/releases) From ceae4965a2b5fdebe25899cae46858c57396c9f6 Mon Sep 17 00:00:00 2001 From: Hugo van Kemenade Date: Fri, 1 Apr 2022 11:15:44 +0300 Subject: [PATCH 2/3] Fix 'No module named check-manifest' --- Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 263598599..0f582f219 100644 --- a/Makefile +++ b/Makefile @@ -77,7 +77,7 @@ release-test: -rm dist/*.egg -rmdir dist python3 -m pytest -qq - python3 -m check-manifest + check-manifest python3 -m pyroma . $(MAKE) readme From c3686c2d156d9eb50f053cbc01c244bf5927ae66 Mon Sep 17 00:00:00 2001 From: Hugo van Kemenade Date: Sat, 2 Apr 2022 16:12:34 +0300 Subject: [PATCH 3/3] Fix commands Co-authored-by: Andrew Murray <3112309+radarhere@users.noreply.github.com> --- Makefile | 2 +- RELEASING.md | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Makefile b/Makefile index 0f582f219..437050ed4 100644 --- a/Makefile +++ b/Makefile @@ -77,7 +77,7 @@ release-test: -rm dist/*.egg -rmdir dist python3 -m pytest -qq - check-manifest + python3 -m check_manifest python3 -m pyroma . $(MAKE) readme diff --git a/RELEASING.md b/RELEASING.md index 5132631b4..a6049b685 100644 --- a/RELEASING.md +++ b/RELEASING.md @@ -66,7 +66,7 @@ Released as needed for security, installation or critical bug fixes. * [ ] Create [binary distributions](https://github.com/python-pillow/Pillow/blob/main/RELEASING.md#binary-distributions) * [ ] Check and upload all binaries and source distributions e.g.: ```bash - python3 -m twine --strict check dist/* + python3 -m twine check --strict dist/* python3 -m twine upload dist/Pillow-5.2.1* ``` * [ ] Publish the [release on GitHub](https://github.com/python-pillow/Pillow/releases)