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
71754bcd
Unverified
Commit
71754bcd
authored
Apr 11, 2023
by
David Hotham
Committed by
GitHub
Apr 11, 2023
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
more information in case of error (#7784)
parent
7c9a5659
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
7 deletions
+3
-7
src/poetry/inspection/info.py
+1
-1
tests/inspection/test_info.py
+2
-6
No files found.
src/poetry/inspection/info.py
View file @
71754bcd
...
@@ -623,7 +623,7 @@ def get_pep517_metadata(path: Path) -> PackageInfo:
...
@@ -623,7 +623,7 @@ def get_pep517_metadata(path: Path) -> PackageInfo:
info
=
PackageInfo
.
from_metadata
(
path
)
info
=
PackageInfo
.
from_metadata
(
path
)
except
EnvCommandError
as
fbe
:
except
EnvCommandError
as
fbe
:
raise
PackageInfoError
(
raise
PackageInfoError
(
path
,
"Fallback egg_info generation failed."
,
fbe
path
,
e
,
"Fallback egg_info generation failed."
,
fbe
)
)
finally
:
finally
:
os
.
chdir
(
cwd
)
os
.
chdir
(
cwd
)
...
...
tests/inspection/test_info.py
View file @
71754bcd
...
@@ -250,12 +250,8 @@ def test_info_setup_missing_mandatory_should_trigger_pep517(
...
@@ -250,12 +250,8 @@ def test_info_setup_missing_mandatory_should_trigger_pep517(
setup_py
.
write_text
(
decode
(
setup
))
setup_py
.
write_text
(
decode
(
setup
))
spy
=
mocker
.
spy
(
VirtualEnv
,
"run"
)
spy
=
mocker
.
spy
(
VirtualEnv
,
"run"
)
try
:
_
=
PackageInfo
.
from_directory
(
source_dir
)
PackageInfo
.
from_directory
(
source_dir
)
assert
spy
.
call_count
==
1
except
PackageInfoError
:
assert
spy
.
call_count
==
3
else
:
assert
spy
.
call_count
==
1
def
test_info_prefer_poetry_config_over_egg_info
():
def
test_info_prefer_poetry_config_over_egg_info
():
...
...
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