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
007c0767
Unverified
Commit
007c0767
authored
May 01, 2018
by
Sébastien Eustace
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix handling of extras when building projects
parent
5ac97944
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
8 additions
and
1 deletions
+8
-1
CHANGELOG.md
+1
-0
poetry/packages/dependency.py
+3
-0
tests/masonry/builders/fixtures/complete/pyproject.toml
+1
-0
tests/masonry/builders/test_complete.py
+1
-0
tests/masonry/builders/test_sdist.py
+2
-1
No files found.
CHANGELOG.md
View file @
007c0767
...
...
@@ -19,6 +19,7 @@
-
Fixed handling of extras when resolving dependencies.
-
Fixed
`self:update`
command for some installation.
-
Fixed handling of extras when building projects.
## [0.8.6] - 2018-04-30
...
...
poetry/packages/dependency.py
View file @
007c0767
...
...
@@ -122,6 +122,9 @@ class Dependency(object):
def
to_pep_508
(
self
,
with_extras
=
True
):
# type: (bool) -> str
requirement
=
self
.
pretty_name
if
self
.
extras
:
requirement
+=
'[{}]'
.
format
(
','
.
join
(
self
.
extras
))
if
isinstance
(
self
.
constraint
,
MultiConstraint
):
requirement
+=
' ({})'
.
format
(
','
.
join
(
[
str
(
c
)
.
replace
(
' '
,
''
)
for
c
in
self
.
constraint
.
constraints
]
...
...
tests/masonry/builders/fixtures/complete/pyproject.toml
View file @
007c0767
...
...
@@ -24,6 +24,7 @@ classifiers = [
[tool.poetry.dependencies]
python
=
"^3.6"
cleo
=
"^0.6"
cachy
=
{
version
=
"^0.2.0"
,
extras
=
["msgpack"]
}
pendulum
=
{
version
=
"^1.4"
,
optional
=
true
}
...
...
tests/masonry/builders/test_complete.py
View file @
007c0767
...
...
@@ -122,6 +122,7 @@ Classifier: Programming Language :: Python :: 3.7
Classifier: Topic :: Software Development :: Build Tools
Classifier: Topic :: Software Development :: Libraries :: Python Modules
Provides-Extra: time
Requires-Dist: cachy[msgpack] (>=0.2.0.0,<0.3.0.0)
Requires-Dist: cleo (>=0.6.0.0,<0.7.0.0)
Requires-Dist: pendulum (>=1.4.0.0,<2.0.0.0); extra == "time"
Description-Content-Type: text/x-rst
...
...
tests/masonry/builders/test_sdist.py
View file @
007c0767
...
...
@@ -131,7 +131,8 @@ def test_make_setup():
'my_package.sub_pkg2'
]
assert
ns
[
'install_requires'
]
==
[
'cleo>=0.6.0.0,<0.7.0.0'
'cleo>=0.6.0.0,<0.7.0.0'
,
'cachy[msgpack]>=0.2.0.0,<0.3.0.0'
,
]
assert
ns
[
'entry_points'
]
==
{
'console_scripts'
:
[
...
...
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