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
d5f83fff
Commit
d5f83fff
authored
Apr 09, 2023
by
Randy Döring
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
installer: fix content of `direct_url.json` for editable installs from git (#7473)
parent
fd706c8c
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
10 deletions
+7
-10
src/poetry/installation/executor.py
+5
-4
tests/installation/test_executor.py
+2
-6
No files found.
src/poetry/installation/executor.py
View file @
d5f83fff
...
...
@@ -653,7 +653,8 @@ class Executor:
)
archive
=
self
.
_prepare_archive
(
operation
,
output_dir
=
output_dir
)
package
.
_source_url
=
original_url
if
not
package
.
develop
:
package
.
_source_url
=
original_url
if
output_dir
is
not
None
and
output_dir
.
is_dir
():
# Mark directories with cached git packages, to distinguish from
...
...
@@ -893,12 +894,12 @@ class Executor:
url_reference
:
dict
[
str
,
Any
]
|
None
=
None
if
package
.
source_type
==
"git"
:
if
package
.
source_type
==
"git"
and
not
package
.
develop
:
url_reference
=
self
.
_create_git_url_reference
(
package
)
elif
package
.
source_type
in
(
"directory"
,
"git"
):
url_reference
=
self
.
_create_directory_url_reference
(
package
)
elif
package
.
source_type
==
"url"
:
url_reference
=
self
.
_create_url_url_reference
(
package
)
elif
package
.
source_type
==
"directory"
:
url_reference
=
self
.
_create_directory_url_reference
(
package
)
elif
package
.
source_type
==
"file"
:
url_reference
=
self
.
_create_file_url_reference
(
package
)
...
...
tests/installation/test_executor.py
View file @
d5f83fff
...
...
@@ -1058,12 +1058,8 @@ def test_executor_should_write_pep610_url_references_for_editable_git(
tmp_venv
,
package
,
{
"vcs_info"
:
{
"vcs"
:
"git"
,
"requested_revision"
:
"master"
,
"commit_id"
:
"123456"
,
},
"url"
:
package
.
source_url
,
"dir_info"
:
{
"editable"
:
True
},
"url"
:
Path
(
package
.
source_url
)
.
as_uri
(),
},
)
...
...
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