File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 88 FORCE_COLOR : 1
99
1010jobs :
11- tox-jobs :
12- strategy :
13- fail-fast : false
14- matrix :
15- tox-job : [doc, pep8]
11+ doc :
1612 runs-on : ubuntu-latest
1713 steps :
18- - uses : actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7.0.0
14+ - uses : actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
1915 with :
2016 persist-credentials : false
21- - uses : actions/setup-python@a309ff8b426b58ec0e2a45f0f869d46889d02405 # v6.2 .0
17+ - uses : actions/setup-python@5fda3b95a4ea91299a34e894583c3862153e4b97 # v7.0 .0
2218 with :
2319 python-version : 3.x
2420 - run : pip install tox
25- - run : tox -e ${{ matrix.tox-job }}
21+ - run : tox -e doc
2622 build :
2723 runs-on : ${{ matrix.os }}
2824 name : ${{ matrix.os }} - ${{ matrix.python }} ${{ matrix.build }}
@@ -33,36 +29,33 @@ jobs:
3329 build : ['']
3430 include :
3531 - os : ubuntu-latest
36- python : ' pypy3.10'
37- - os : ubuntu-latest
38- python : ' pypy3.9'
39- - os : ubuntu-latest
40- python : ' 3.9'
32+ python : ' pypy3.11'
4133 - os : ubuntu-latest
4234 python : ' 3.10'
4335 - os : ubuntu-latest
4436 python : ' 3.11'
4537 - os : ubuntu-latest
4638 python : ' 3.12'
4739 - os : ubuntu-latest
48- python : ' 3.13-dev'
49- build : ' free-threading'
40+ python : ' 3.13'
41+ - os : ubuntu-latest
42+ python : ' 3.14'
43+ - os : ubuntu-latest
44+ python : ' 3.14t'
45+ - os : ubuntu-latest
46+ python : ' 3.15'
47+ - os : ubuntu-latest
48+ python : ' 3.15t'
5049
5150 steps :
52- - uses : actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7.0.0
51+ - uses : actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
5352 with :
5453 persist-credentials : false
5554 - name : Setup Python
56- uses : actions/setup-python@a309ff8b426b58ec0e2a45f0f869d46889d02405 # v6.2.0
57- if : ${{ matrix.build != 'free-threading' }}
58- with :
59- python-version : ${{ matrix.python }}
60- - name : Set up Python ${{ matrix.python }} using deadsnakes
61- uses : deadsnakes/action@e640ac8743173a67cca4d7d77cd837e514bf98e8 # v3.2.0
62- if : ${{ matrix.build == 'free-threading' }}
55+ uses : actions/setup-python@5fda3b95a4ea91299a34e894583c3862153e4b97 # v7.0.0
6356 with :
6457 python-version : ${{ matrix.python }}
65- nogil : true
58+ allow-prereleases : true
6659 - name : Display Python version
6760 run : |
6861 python -VV
Original file line number Diff line number Diff line change @@ -6,17 +6,14 @@ permissions: {}
66
77env :
88 FORCE_COLOR : 1
9+ RUFF_OUTPUT_FORMAT : github
910
1011jobs :
1112 lint :
1213 runs-on : ubuntu-latest
1314
1415 steps :
15- - uses : actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7.0.0
16+ - uses : actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
1617 with :
1718 persist-credentials : false
18- - uses : actions/setup-python@a309ff8b426b58ec0e2a45f0f869d46889d02405 # v6.2.0
19- with :
20- python-version : " 3.x"
21- - uses : astral-sh/setup-uv@fac544c07dec837d0ccb6301d7b5580bf5edae39 # v8.2.0
22- - uses : j178/prek-action@bdca6f102f98e2b4c7029491a53dfd366469e33d # v2.0.4
19+ - uses : j178/prek-action@5337cb91e0fa35a7ff31b9ca345126d8bbbcdf16 # v2.0.6
Original file line number Diff line number Diff line change @@ -18,11 +18,11 @@ jobs:
1818 id-token : write
1919
2020 steps :
21- - uses : actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7.0.0
21+ - uses : actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
2222 with :
2323 persist-credentials : false
2424 - name : Set up Python
25- uses : actions/setup-python@a309ff8b426b58ec0e2a45f0f869d46889d02405 # v6.2 .0
25+ uses : actions/setup-python@5fda3b95a4ea91299a34e894583c3862153e4b97 # v7.0 .0
2626 with :
2727 python-version : ' 3.x'
2828 - name : Install dependencies
3434
3535 - name : Publish distribution 📦 to PyPI
3636 if : startsWith(github.event.ref, 'refs/tags') || github.event_name == 'release'
37- uses : pypa/gh-action-pypi-publish@cef221092ed1bacb1cc03d23a2d87d1d172e277b # v1.14.0
37+ uses : pypa/gh-action-pypi-publish@ba38be9e461d3875417946c167d0b5f3d385a247 # v1.14.1
Original file line number Diff line number Diff line change 11repos :
2+ - repo : https://github.com/astral-sh/ruff-pre-commit
3+ rev : v0.15.22
4+ hooks :
5+ - id : ruff-check
6+ args : [--exit-non-zero-on-fix]
7+
28 - repo : https://github.com/pre-commit/pre-commit-hooks
39 rev : v6.0.0
410 hooks :
1420 - id : trailing-whitespace
1521
1622 - repo : https://github.com/python-jsonschema/check-jsonschema
17- rev : 0.37.1
23+ rev : 0.37.4
1824 hooks :
1925 - id : check-dependabot
2026 - id : check-github-workflows
2531 - id : actionlint
2632
2733 - repo : https://github.com/zizmorcore/zizmor-pre-commit
28- rev : v1.24.1
34+ rev : v1.29.0
2935 hooks :
3036 - id : zizmor
3137
Original file line number Diff line number Diff line change 44
55.. image :: https://img.shields.io/pypi/v/pyperf.svg
66 :alt: Latest release on the Python Cheeseshop (PyPI)
7- :target: https://pypi.python. org/pypi /pyperf
7+ :target: https://pypi.org/project /pyperf/
88
99.. image :: https://img.shields.io/python/required-version-toml?tomlFilePath=https%3A%2F%2Fraw.githubusercontent.com%2Fpsf%2Fpyperf%2Frefs%2Fheads%2Fmain%2Fpyproject.toml
1010 :alt: Supported Python versions
11- :target: https://pypi.python. org/pypi /pyperf
11+ :target: https://pypi.org/project /pyperf/
1212
1313.. image :: https://github.com/psf/pyperf/actions/workflows/build.yml/badge.svg
1414 :alt: Build status of pyperf on GitHub Actions
@@ -126,17 +126,12 @@ Quick Links
126126* `pyperf project homepage at GitHub
127127 <https://github.com/psf/pyperf> `_ (code, bugs)
128128* `Download latest pyperf release at the Python Cheeseshop (PyPI)
129- <https://pypi.python. org/pypi /pyperf> `_
129+ <https://pypi.org/project /pyperf/ > `_
130130
131- Command to install pyperf on Python 3 ::
131+ Install pyperf::
132132
133133 python3 -m pip install pyperf
134134
135- pyperf requires Python 3.9 or newer.
136-
137- Python 2.7 users can use pyperf 1.7.1 which is the last version compatible with
138- Python 2.7.
139-
140135pyperf is distributed under the MIT license.
141136
142137The pyperf project is covered by the `PSF Code of Conduct
Original file line number Diff line number Diff line change @@ -46,11 +46,11 @@ Quick Links:
4646* `pyperf project homepage at GitHub
4747 <https://github.com/psf/pyperf> `_ (code, bugs)
4848* `Download latest pyperf release at the Python Cheeseshop (PyPI)
49- <https://pypi.python. org/pypi /pyperf> `_
49+ <https://pypi.org/project /pyperf/ > `_
5050
5151Other Python benchmark projects:
5252
53- * `pyperformance <https://pypi.python. org/pypi /pyperformance >`_: the Python
53+ * `pyperformance <https://pypi.org/project /pyperformance/ >`_: the Python
5454 benchmark suite which uses ``pyperf ``
5555* `Python speed mailing list
5656 <https://mail.python.org/mailman/listinfo/speed> `_
Original file line number Diff line number Diff line change @@ -23,11 +23,6 @@ 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.9 or newer.
27-
28- Python 2.7 users can use pyperf 1.7.1 which is the last version compatible with
29- Python 2.7.
30-
3126
3227Run a benchmark
3328===============
Original file line number Diff line number Diff line change 1818def get_hooks ():
1919 hook_prefix = "pyperf.hook"
2020 entry_points = importlib .metadata .entry_points ()
21- if sys .version_info [:2 ] < (3 , 10 ):
22- group = entry_points [hook_prefix ]
23- else :
24- group = entry_points .select (group = hook_prefix )
21+ group = entry_points .select (group = hook_prefix )
2522 return group
2623
2724
Original file line number Diff line number Diff line change @@ -51,8 +51,7 @@ classifiers = [
5151 " Programming Language :: Python :: 3" ,
5252 " Topic :: Software Development :: Libraries :: Python Modules"
5353]
54- # Also update: README.rst, docs/run_benchmark.rst
55- requires-python = " >=3.9"
54+ requires-python = " >=3.10"
5655dependencies = [" psutil>=5.9.0" ]
5756
5857[project .optional-dependencies ]
@@ -75,6 +74,9 @@ packages = ["pyperf", "pyperf.tests"]
7574[tool .setuptools .dynamic ]
7675version = {attr = " pyperf.__version__" }
7776
77+ [tool .ruff ]
78+ fix = true
79+
7880[tool .ruff .lint ]
7981extend-select = [" C90" , " UP" ]
8082extend-ignore = [" UP015" , " UP031" ]
Original file line number Diff line number Diff line change 11[tox]
2- envlist = py3, pypy3, doc, pep8
2+ envlist = py3, pypy3, doc
33isolated_build = True
44
55[testenv]
@@ -16,9 +16,3 @@ deps = sphinx
1616allowlist_externals = make
1717commands =
1818 make -C doc html
19-
20- [testenv:pep8]
21- basepython = python3
22- deps = ruff
23- commands =
24- ruff check
You can’t perform that action at this time.
0 commit comments