Skip to content

Commit e6675c6

Browse files
authored
Docs: Update minimum Python version. Add matching badge (#226)
1 parent d2cc803 commit e6675c6

File tree

3 files changed

+7
-2
lines changed

3 files changed

+7
-2
lines changed

README.rst

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,10 @@ pyperf
66
:alt: Latest release on the Python Cheeseshop (PyPI)
77
:target: https://pypi.python.org/pypi/pyperf
88

9+
.. image:: https://img.shields.io/python/required-version-toml?tomlFilePath=https%3A%2F%2Fraw.githubusercontent.com%2Fpsf%2Fpyperf%2Frefs%2Fheads%2Fmain%2Fpyproject.toml
10+
:alt: Supported Python versions
11+
:target: https://pypi.python.org/pypi/pyperf
12+
913
.. image:: https://github.com/psf/pyperf/actions/workflows/build.yml/badge.svg
1014
:alt: Build status of pyperf on GitHub Actions
1115
:target: https://github.com/psf/pyperf/actions
@@ -128,7 +132,7 @@ Command to install pyperf on Python 3::
128132

129133
python3 -m pip install pyperf
130134

131-
pyperf requires Python 3.7 or newer.
135+
pyperf requires Python 3.9 or newer.
132136

133137
Python 2.7 users can use pyperf 1.7.1 which is the last version compatible with
134138
Python 2.7.

doc/run_benchmark.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ Optional dependencies:
2323
* Python module ``psutil``. Install: ``python3 -m pip install -U psutil``.
2424
* When you are using macOS, you need to install ``psutil`` if you want to use ``--track-memory`` option.
2525

26-
pyperf requires Python 3.6 or newer.
26+
pyperf requires Python 3.9 or newer.
2727

2828
Python 2.7 users can use pyperf 1.7.1 which is the last version compatible with
2929
Python 2.7.

pyproject.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,7 @@ classifiers = [
4444
"Programming Language :: Python :: 3",
4545
"Topic :: Software Development :: Libraries :: Python Modules"
4646
]
47+
# Also update: README.rst, docs/run_benchmark.rst
4748
requires-python = ">=3.9"
4849
dependencies = ["psutil>=5.9.0"]
4950

0 commit comments

Comments
 (0)