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
5f2d2b86
Commit
5f2d2b86
authored
Aug 25, 2022
by
Randy Döring
Committed by
Bjorn Neergaard
Aug 26, 2022
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
locker: always use base_pep_508_name (for any constraint base_pep_508_name is equal to pretty_name)
parent
9fb6c95d
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
5 additions
and
10 deletions
+5
-10
src/poetry/packages/locker.py
+1
-6
tests/installation/fixtures/update-with-locked-extras.test
+1
-1
tests/installation/fixtures/with-pypi-repository.test
+3
-3
No files found.
src/poetry/packages/locker.py
View file @
5f2d2b86
...
...
@@ -410,12 +410,7 @@ class Locker:
if
package
.
extras
:
extras
=
{}
for
name
,
deps
in
sorted
(
package
.
extras
.
items
()):
# TODO: This should use dep.to_pep_508() once this is fixed
# https://github.com/python-poetry/poetry-core/pull/102
extras
[
name
]
=
sorted
(
dep
.
base_pep_508_name
if
not
dep
.
constraint
.
is_any
()
else
dep
.
name
for
dep
in
deps
)
extras
[
name
]
=
sorted
(
dep
.
base_pep_508_name
for
dep
in
deps
)
data
[
"extras"
]
=
extras
...
...
tests/installation/fixtures/update-with-locked-extras.test
View file @
5f2d2b86
...
...
@@ -11,7 +11,7 @@ python-versions = "*"
"C"
=
{
version
=
"^1.0"
,
markers
=
"python_version >=
\"
2.7
\"
and python_version <
\"
2.8
\"
"
}
[
package
.
extras
]
foo
=
[
"
b
"
]
foo
=
[
"
B
"
]
[[
package
]]
name
=
"B"
...
...
tests/installation/fixtures/with-pypi-repository.test
View file @
5f2d2b86
...
...
@@ -7,9 +7,9 @@ optional = false
python
-
versions
=
"*"
[
package
.
extras
]
dev
=
[
"coverage"
,
"hypothesis"
,
"pympler"
,
"pytest"
,
"six"
,
"sphinx"
,
"zope
-interface"
,
"zope-
interface"
]
docs
=
[
"sphinx"
,
"zope
-
interface"
]
tests
=
[
"coverage"
,
"hypothesis"
,
"pympler"
,
"pytest"
,
"six"
,
"zope
-
interface"
]
dev
=
[
"coverage"
,
"hypothesis"
,
"pympler"
,
"pytest"
,
"six"
,
"sphinx"
,
"zope
.interface"
,
"zope.
interface"
]
docs
=
[
"sphinx"
,
"zope
.
interface"
]
tests
=
[
"coverage"
,
"hypothesis"
,
"pympler"
,
"pytest"
,
"six"
,
"zope
.
interface"
]
[[
package
]]
name
=
"colorama"
...
...
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