Commit b2aa6657 by Jannik Hoffjann Committed by Sébastien Eustace

Fix allow-prerelease typo (#1568)

parent 1fe50fe3
...@@ -129,7 +129,7 @@ toml = "^0.9" ...@@ -129,7 +129,7 @@ toml = "^0.9"
# Dependencies with extras # Dependencies with extras
requests = { version = "^2.13", extras = [ "security" ] } requests = { version = "^2.13", extras = [ "security" ] }
# Python specific dependencies with prereleases allowed # Python specific dependencies with prereleases allowed
pathlib2 = { version = "^2.2", python = "~2.7", allows-prereleases = true } pathlib2 = { version = "^2.2", python = "~2.7", allow-prereleases = true }
# Git dependencies # Git dependencies
cleo = { git = "https://github.com/sdispater/cleo.git", branch = "master" } cleo = { git = "https://github.com/sdispater/cleo.git", branch = "master" }
......
...@@ -298,7 +298,7 @@ class Factory: ...@@ -298,7 +298,7 @@ class Factory:
result["warnings"].append( result["warnings"].append(
'The "{}" dependency specifies ' 'The "{}" dependency specifies '
'the "allows-prereleases" property, which is deprecated. ' 'the "allows-prereleases" property, which is deprecated. '
'Use "allow-preleases" instead.'.format(name) 'Use "allow-prereleases" instead.'.format(name)
) )
# Checking for scripts with extras # Checking for scripts with extras
......
...@@ -279,7 +279,7 @@ class Package(object): ...@@ -279,7 +279,7 @@ class Package(object):
message = ( message = (
'The "{}" dependency specifies ' 'The "{}" dependency specifies '
'the "allows-prereleases" property, which is deprecated. ' 'the "allows-prereleases" property, which is deprecated. '
'Use "allow-preleases" instead.'.format(name) 'Use "allow-prereleases" instead.'.format(name)
) )
warn(message, DeprecationWarning) warn(message, DeprecationWarning)
logger.warning(message) logger.warning(message)
......
...@@ -36,14 +36,14 @@ def test_check_invalid(app, mocker): ...@@ -36,14 +36,14 @@ def test_check_invalid(app, mocker):
Error: u'description' is a required property Error: u'description' is a required property
Error: INVALID is not a valid license Error: INVALID is not a valid license
Warning: A wildcard Python dependency is ambiguous. Consider specifying a more explicit one. Warning: A wildcard Python dependency is ambiguous. Consider specifying a more explicit one.
Warning: The "pendulum" dependency specifies the "allows-prereleases" property, which is deprecated. Use "allow-preleases" instead. Warning: The "pendulum" dependency specifies the "allows-prereleases" property, which is deprecated. Use "allow-prereleases" instead.
""" """
else: else:
expected = """\ expected = """\
Error: 'description' is a required property Error: 'description' is a required property
Error: INVALID is not a valid license Error: INVALID is not a valid license
Warning: A wildcard Python dependency is ambiguous. Consider specifying a more explicit one. Warning: A wildcard Python dependency is ambiguous. Consider specifying a more explicit one.
Warning: The "pendulum" dependency specifies the "allows-prereleases" property, which is deprecated. Use "allow-preleases" instead. Warning: The "pendulum" dependency specifies the "allows-prereleases" property, which is deprecated. Use "allow-prereleases" instead.
""" """
assert expected == tester.io.fetch_output() assert expected == tester.io.fetch_output()
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment