Skip to content

Commit

Permalink
Fix branch protection min version. (#287)
Browse files Browse the repository at this point in the history
It has to to start with `py` like `NEWEST_PYTHON`.
  • Loading branch information
icemac authored Oct 16, 2024
1 parent 93bf545 commit 3349b8f
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 7 deletions.
4 changes: 2 additions & 2 deletions .meta.toml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
# https://github.com/zopefoundation/meta/tree/master/config/pure-python
[meta]
template = "pure-python"
commit-id = "35d10997"
commit-id = "7565cacd"

[python]
with-windows = false
Expand All @@ -16,7 +16,7 @@ with-macos = false
use-flake8 = true

[coverage]
fail-under = 20
fail-under = 18

[coverage-run]
source = "zope.meta"
Expand Down
4 changes: 2 additions & 2 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -3,15 +3,15 @@
# https://github.com/zopefoundation/meta/tree/master/config/pure-python

[build-system]
requires = ["setuptools<74"]
requires = ["setuptools < 74"]
build-backend = "setuptools.build_meta"

[tool.coverage.run]
branch = true
source = ["zope.meta"]

[tool.coverage.report]
fail_under = 20
fail_under = 18
precision = 2
ignore_errors = true
show_missing = true
Expand Down
2 changes: 1 addition & 1 deletion src/zope/meta/set_branch_protection_rules.py
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ def set_branch_protection(
with_pypy = meta_toml['python']['with-pypy']
oldest_python_version = meta_toml['python'].get('oldest-python',
OLDEST_PYTHON_VERSION)
oldest_python = oldest_python_version.replace('.', '')
oldest_python = f"py{oldest_python_version.replace('.', '')}"
with_windows = meta_toml['python']['with-windows']
with_macos = meta_toml['python']['with-macos']
required = ['linting']
Expand Down
4 changes: 2 additions & 2 deletions tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ usedevelop = true
package = wheel
wheel_build_env = .pkg
deps =
setuptools <74
setuptools < 74
commands =
zope-testrunner --test-path=src {posargs:-vc}
extras =
Expand All @@ -35,7 +35,7 @@ description = ensure that the distribution is ready to release
basepython = python3
skip_install = true
deps =
setuptools <74
setuptools < 74
twine
build
check-manifest
Expand Down

0 comments on commit 3349b8f

Please sign in to comment.