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
3ba800f6
Unverified
Commit
3ba800f6
authored
May 29, 2023
by
Riccardo Albertazzi
Committed by
GitHub
May 29, 2023
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix: disable wheel content validation (#7987)
avoid out of memory issues
parent
198d6ff8
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
1 deletions
+5
-1
src/poetry/installation/wheel_installer.py
+4
-1
tests/installation/test_executor.py
+1
-0
No files found.
src/poetry/installation/wheel_installer.py
View file @
3ba800f6
...
@@ -101,7 +101,10 @@ class WheelInstaller:
...
@@ -101,7 +101,10 @@ class WheelInstaller:
def
install
(
self
,
wheel
:
Path
)
->
None
:
def
install
(
self
,
wheel
:
Path
)
->
None
:
with
WheelFile
.
open
(
wheel
)
as
source
:
with
WheelFile
.
open
(
wheel
)
as
source
:
try
:
try
:
source
.
validate_record
()
# Content validation is temporarily disabled because of
# pypa/installer's out of memory issues with big wheels. See
# https://github.com/python-poetry/poetry/issues/7983
source
.
validate_record
(
validate_contents
=
False
)
except
_WheelFileValidationError
as
e
:
except
_WheelFileValidationError
as
e
:
self
.
invalid_wheels
[
wheel
]
=
e
.
issues
self
.
invalid_wheels
[
wheel
]
=
e
.
issues
install
(
install
(
...
...
tests/installation/test_executor.py
View file @
3ba800f6
...
@@ -335,6 +335,7 @@ def test_execute_prints_warning_for_yanked_package(
...
@@ -335,6 +335,7 @@ def test_execute_prints_warning_for_yanked_package(
assert
error
.
count
(
"yanked"
)
==
0
assert
error
.
count
(
"yanked"
)
==
0
@pytest.mark.skip
(
reason
=
"https://github.com/python-poetry/poetry/issues/7983"
)
def
test_execute_prints_warning_for_invalid_wheels
(
def
test_execute_prints_warning_for_invalid_wheels
(
config
:
Config
,
config
:
Config
,
pool
:
RepositoryPool
,
pool
:
RepositoryPool
,
...
...
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