Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix branch protection min version. #287

Merged
merged 2 commits into from
Oct 16, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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