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
1eef2c7f
Unverified
Commit
1eef2c7f
authored
May 02, 2018
by
Sébastien Eustace
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix tests
parent
c7825820
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
4 additions
and
4 deletions
+4
-4
poetry/packages/directory_dependency.py
+2
-2
tests/fixtures/project_with_setup/setup.py
+1
-1
tests/installation/fixtures/with-directory-dependency.test
+1
-1
No files found.
poetry/packages/directory_dependency.py
View file @
1eef2c7f
...
...
@@ -6,7 +6,7 @@ from pkginfo.distribution import HEADER_ATTRS_2_0
from
poetry.io
import
NullIO
from
poetry.utils._compat
import
Path
from
poetry.utils._compat
import
to_str
from
poetry.utils._compat
import
decode
from
poetry.utils.helpers
import
parse_requires
from
poetry.utils.toml_file
import
TomlFile
from
poetry.utils.venv
import
NullVenv
...
...
@@ -77,7 +77,7 @@ class DirectoryDependency(Dependency):
builder
=
SdistBuilder
(
poetry
,
NullVenv
(),
NullIO
())
with
setup
.
open
(
'w'
)
as
f
:
f
.
write
(
to_str
(
builder
.
build_setup
()))
f
.
write
(
decode
(
builder
.
build_setup
()))
self
.
_package
=
poetry
.
package
else
:
...
...
tests/fixtures/project_with_setup/setup.py
View file @
1eef2c7f
...
...
@@ -16,7 +16,7 @@ kwargs = dict(
],
install_requires
=
[
'pendulum>=1.4.4'
,
'cachy[msgpack]>=0.2.0
,<0.3.0
'
,
'cachy[msgpack]>=0.2.0'
,
],
)
...
...
tests/installation/fixtures/with-directory-dependency.test
View file @
1eef2c7f
...
...
@@ -22,7 +22,7 @@ reference = "tests/fixtures/project_with_setup"
url
=
""
[
package
.
dependencies
]
cachy
=
"
< 0.3.0.0,
>= 0.2.0.0"
cachy
=
">= 0.2.0.0"
pendulum
=
">= 1.4.4.0"
[[
package
]]
...
...
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