From 4ceb89c0e7f3846844999991ede9fb98e0327142 Mon Sep 17 00:00:00 2001 From: Alex Willmer Date: Mon, 19 Jan 2026 14:24:37 +0000 Subject: [PATCH 1/4] README: Update minimum required Python version --- README.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.rst b/README.rst index bf815b1c..1b95481e 100644 --- a/README.rst +++ b/README.rst @@ -128,7 +128,7 @@ Command to install pyperf on Python 3:: python3 -m pip install pyperf -pyperf requires Python 3.7 or newer. +pyperf requires Python 3.9 or newer. Python 2.7 users can use pyperf 1.7.1 which is the last version compatible with Python 2.7. From 3a9a7aa8a00c8cbb0f1b32e9d24a18247e97484b Mon Sep 17 00:00:00 2001 From: Alex Willmer Date: Mon, 19 Jan 2026 14:25:11 +0000 Subject: [PATCH 2/4] README: Add minimum Python version badge --- README.rst | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/README.rst b/README.rst index 1b95481e..ddc46e8f 100644 --- a/README.rst +++ b/README.rst @@ -6,6 +6,10 @@ pyperf :alt: Latest release on the Python Cheeseshop (PyPI) :target: https://pypi.python.org/pypi/pyperf +.. image:: https://img.shields.io/python/required-version-toml?tomlFilePath=https%3A%2F%2Fraw.githubusercontent.com%2Fpsf%2Fpyperf%2Frefs%2Fheads%2Fmain%2Fpyproject.toml + :alt: Supported Python versions + :target: https://pypi.python.org/pypi/pyperf + .. image:: https://github.com/psf/pyperf/actions/workflows/build.yml/badge.svg :alt: Build status of pyperf on GitHub Actions :target: https://github.com/psf/pyperf/actions From d1f93325c311d04f82c4d5791c8df2e699e94139 Mon Sep 17 00:00:00 2001 From: Alex Willmer Date: Mon, 19 Jan 2026 14:27:23 +0000 Subject: [PATCH 3/4] packaging: Add reminder to update README alongside requires-python --- pyproject.toml | 1 + 1 file changed, 1 insertion(+) diff --git a/pyproject.toml b/pyproject.toml index 001791be..b692ed98 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -44,6 +44,7 @@ classifiers = [ "Programming Language :: Python :: 3", "Topic :: Software Development :: Libraries :: Python Modules" ] +# Also update: README.rst requires-python = ">=3.9" dependencies = ["psutil>=5.9.0"] From c438045671db37a2b1aa4f17c31a4b8f667d4598 Mon Sep 17 00:00:00 2001 From: Alex Willmer Date: Mon, 19 Jan 2026 15:29:23 +0000 Subject: [PATCH 4/4] docs: Update minimum Python version, to match proproject.toml --- doc/run_benchmark.rst | 2 +- pyproject.toml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/doc/run_benchmark.rst b/doc/run_benchmark.rst index 9b61e9c9..3f9d3d93 100644 --- a/doc/run_benchmark.rst +++ b/doc/run_benchmark.rst @@ -23,7 +23,7 @@ Optional dependencies: * Python module ``psutil``. Install: ``python3 -m pip install -U psutil``. * When you are using macOS, you need to install ``psutil`` if you want to use ``--track-memory`` option. -pyperf requires Python 3.6 or newer. +pyperf requires Python 3.9 or newer. Python 2.7 users can use pyperf 1.7.1 which is the last version compatible with Python 2.7. diff --git a/pyproject.toml b/pyproject.toml index b692ed98..04efe88f 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -44,7 +44,7 @@ classifiers = [ "Programming Language :: Python :: 3", "Topic :: Software Development :: Libraries :: Python Modules" ] -# Also update: README.rst +# Also update: README.rst, docs/run_benchmark.rst requires-python = ">=3.9" dependencies = ["psutil>=5.9.0"]