Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
P
python-poetry
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
open
python-poetry
Commits
b2aa6657
Commit
b2aa6657
authored
Nov 12, 2019
by
Jannik Hoffjann
Committed by
Sébastien Eustace
Nov 12, 2019
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix allow-prerelease typo (#1568)
parent
1fe50fe3
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
5 additions
and
5 deletions
+5
-5
README.md
+1
-1
poetry/factory.py
+1
-1
poetry/packages/package.py
+1
-1
tests/console/commands/test_check.py
+2
-2
No files found.
README.md
View file @
b2aa6657
...
@@ -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"
,
allow
s
-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"
}
...
...
poetry/factory.py
View file @
b2aa6657
...
@@ -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-pre
re
leases" instead.'
.
format
(
name
)
)
)
# Checking for scripts with extras
# Checking for scripts with extras
...
...
poetry/packages/package.py
View file @
b2aa6657
...
@@ -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-pre
re
leases" instead.'
.
format
(
name
)
)
)
warn
(
message
,
DeprecationWarning
)
warn
(
message
,
DeprecationWarning
)
logger
.
warning
(
message
)
logger
.
warning
(
message
)
...
...
tests/console/commands/test_check.py
View file @
b2aa6657
...
@@ -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-pre
re
leases" 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-pre
re
leases" instead.
"""
"""
assert
expected
==
tester
.
io
.
fetch_output
()
assert
expected
==
tester
.
io
.
fetch_output
()
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment