Skip to content

Commit 4268cb1

Browse files
authored
1 parent 533df73 commit 4268cb1

File tree

3 files changed

+21
-7
lines changed

3 files changed

+21
-7
lines changed

.meta.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,15 +2,15 @@
22
# https://github.com/zopefoundation/meta/tree/master/config/zope-product
33
[meta]
44
template = "zope-product"
5-
commit-id = "571024f0"
5+
commit-id = "13b9049c"
66

77
[python]
88
with-pypy = false
99
with-docs = true
1010
with-sphinx-doctests = false
1111
with-windows = true
1212
with-macos = true
13-
with-future-python = true
13+
with-future-python = false
1414

1515
[coverage]
1616
fail-under = 80

src/ZPublisher/HTTPRequest.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1505,7 +1505,7 @@ class LimitedFileReader:
15051505
"""File wrapper emulating EOF."""
15061506

15071507
# attributes to be delegated to the file
1508-
DELEGATE = set(["close", "closed", "fileno", "mode", "name"])
1508+
DELEGATE = {"close", "closed", "fileno", "mode", "name"}
15091509

15101510
def __init__(self, fp, limit):
15111511
"""emulate EOF after *limit* bytes have been read.

tox.ini

Lines changed: 18 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
[tox]
44
minversion = 3.18
55
envlist =
6+
release-check
67
lint
78
py37
89
py38
@@ -52,6 +53,23 @@ commands =
5253
autopep8 --verbose --in-place --recursive --aggressive --aggressive {toxinidir}/src setup.py
5354
docformatter --in-place --recursive {toxinidir}/src setup.py
5455

56+
[testenv:release-check]
57+
description = ensure that the distribution is ready to release
58+
basepython = python3
59+
skip_install = true
60+
deps =
61+
twine
62+
build
63+
check-manifest
64+
check-python-versions >= 0.20.0
65+
wheel
66+
commands_pre =
67+
commands =
68+
check-manifest
69+
check-python-versions
70+
python -m build --sdist --no-isolation
71+
twine check dist/*
72+
5573
[testenv:lint]
5674
basepython = python3
5775
commands_pre =
@@ -61,11 +79,7 @@ allowlist_externals =
6179
commands =
6280
isort --check-only --diff {toxinidir}/src {toxinidir}/setup.py
6381
flake8 {toxinidir}/src {toxinidir}/setup.py
64-
check-manifest
65-
check-python-versions
6682
deps =
67-
check-manifest
68-
check-python-versions
6983
flake8
7084
isort
7185
# Useful flake8 plugins that are Python and Plone specific:

0 commit comments

Comments
 (0)