Skip to content

Commit

Permalink
Problem: normalizer and parser not ready for 3.10
Browse files Browse the repository at this point in the history
Solution: enables more than one digit
  • Loading branch information
gotcha committed Mar 4, 2021
1 parent e27cdac commit 3022ddb
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/zc/buildout/testing.py
Original file line number Diff line number Diff line change
Expand Up @@ -581,7 +581,7 @@ def _normalize_path(match):
re.compile(r'(\n?)- \S+\.pyc\n'), '\\1')

normalize_egg_py = (
re.compile(r'-py\d[.]\d(-\S+)?.egg'),
re.compile(r'-py\d[.]\d+(-\S+)?.egg'),
'-pyN.N.egg',
)

Expand Down
4 changes: 2 additions & 2 deletions src/zc/buildout/tests.py
Original file line number Diff line number Diff line change
Expand Up @@ -3479,7 +3479,7 @@ def buildout_txt_setup(test):
os.path.join(eggs, 'zc.recipe.egg'),
)

egg_parse = re.compile(r'([0-9a-zA-Z_.]+)-([0-9a-zA-Z_.]+)-py(\d[.]\d)$'
egg_parse = re.compile(r'([0-9a-zA-Z_.]+)-([0-9a-zA-Z_.]+)-py(\d[.]\d+)$'
).match
def makeNewRelease(project, ws, dest, version='99.99'):
dist = ws.find(pkg_resources.Requirement.parse(project))
Expand Down Expand Up @@ -3719,7 +3719,7 @@ def test_suite():
optionflags=doctest.NORMALIZE_WHITESPACE | doctest.ELLIPSIS,
checker=renormalizing.RENormalizing([
(re.compile(r'(zc.buildout|setuptools)-\d+[.]\d+\S*'
r'-py\d.\d.egg'),
r'-py\d.\d+.egg'),
'\\1.egg'),
zc.buildout.testing.normalize_path,
zc.buildout.testing.normalize_endings,
Expand Down

0 comments on commit 3022ddb

Please sign in to comment.