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
0e6a9a23
Unverified
Commit
0e6a9a23
authored
May 05, 2018
by
Sébastien Eustace
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix handling of wildcard dependencies when packaging/publishing
parent
e7cb3443
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
10 additions
and
2 deletions
+10
-2
CHANGELOG.md
+2
-1
poetry/packages/dependency.py
+1
-1
tests/packages/test_dependency.py
+7
-0
No files found.
CHANGELOG.md
View file @
0e6a9a23
# Change Log
# Change Log
[
Unreleased
]
##
[Unreleased]
### Added
### Added
...
@@ -28,6 +28,7 @@ commands in project subdirectories.
...
@@ -28,6 +28,7 @@ commands in project subdirectories.
-
Fixed handling of extras when resolving dependencies.
-
Fixed handling of extras when resolving dependencies.
-
Fixed
`self:update`
command for some installation.
-
Fixed
`self:update`
command for some installation.
-
Fixed handling of extras when building projects.
-
Fixed handling of extras when building projects.
-
Fixed handling of wildcard dependencies wen packaging/publishing.
## [0.8.6] - 2018-04-30
## [0.8.6] - 2018-04-30
...
...
poetry/packages/dependency.py
View file @
0e6a9a23
...
@@ -132,7 +132,7 @@ class Dependency(object):
...
@@ -132,7 +132,7 @@ class Dependency(object):
requirement
+=
' ({})'
.
format
(
','
.
join
(
requirement
+=
' ({})'
.
format
(
','
.
join
(
[
str
(
c
)
.
replace
(
' '
,
''
)
for
c
in
self
.
constraint
.
constraints
]
[
str
(
c
)
.
replace
(
' '
,
''
)
for
c
in
self
.
constraint
.
constraints
]
))
))
el
se
:
el
if
str
(
self
.
constraint
)
!=
'*'
:
requirement
+=
' ({})'
.
format
(
str
(
self
.
constraint
)
.
replace
(
' '
,
''
))
requirement
+=
' ({})'
.
format
(
str
(
self
.
constraint
)
.
replace
(
' '
,
''
))
# Markers
# Markers
...
...
tests/packages/test_dependency.py
View file @
0e6a9a23
...
@@ -70,6 +70,13 @@ def test_to_pep_508():
...
@@ -70,6 +70,13 @@ def test_to_pep_508():
'or (python_version >= "3.6.0.0" and python_version < "4.0.0.0")'
'or (python_version >= "3.6.0.0" and python_version < "4.0.0.0")'
def
test_to_pep_508_wilcard
():
dependency
=
Dependency
(
'Django'
,
'*'
)
result
=
dependency
.
to_pep_508
()
assert
result
==
'Django'
def
test_to_pep_508_in_extras
():
def
test_to_pep_508_in_extras
():
dependency
=
Dependency
(
'Django'
,
'^1.23'
)
dependency
=
Dependency
(
'Django'
,
'^1.23'
)
dependency
.
in_extras
.
append
(
'foo'
)
dependency
.
in_extras
.
append
(
'foo'
)
...
...
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