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
9ca39b0a
Unverified
Commit
9ca39b0a
authored
Jun 18, 2022
by
David Hotham
Committed by
GitHub
Jun 18, 2022
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
remove unused code (#5872)
parent
84b75710
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
0 additions
and
23 deletions
+0
-23
src/poetry/installation/chef.py
+0
-16
src/poetry/installation/executor.py
+0
-7
No files found.
src/poetry/installation/chef.py
View file @
9ca39b0a
...
...
@@ -20,27 +20,11 @@ if TYPE_CHECKING:
class
Chef
:
def
__init__
(
self
,
config
:
Config
,
env
:
Env
)
->
None
:
self
.
_config
=
config
self
.
_env
=
env
self
.
_cache_dir
=
(
Path
(
config
.
get
(
"cache-dir"
))
.
expanduser
()
.
joinpath
(
"artifacts"
)
)
def
prepare
(
self
,
archive
:
Path
)
->
Path
:
return
archive
def
prepare_sdist
(
self
,
archive
:
Path
)
->
Path
:
return
archive
def
prepare_wheel
(
self
,
archive
:
Path
)
->
Path
:
return
archive
def
should_prepare
(
self
,
archive
:
Path
)
->
bool
:
return
not
self
.
is_wheel
(
archive
)
def
is_wheel
(
self
,
archive
:
Path
)
->
bool
:
return
archive
.
suffix
==
".whl"
def
get_cached_archive_for_link
(
self
,
link
:
Link
)
->
Link
:
# If the archive is already a wheel, there is no need to cache it.
if
link
.
is_wheel
:
...
...
src/poetry/installation/executor.py
View file @
9ca39b0a
...
...
@@ -515,8 +515,6 @@ class Executor:
if
not
Path
(
package
.
source_url
)
.
is_absolute
()
and
package
.
root_dir
:
archive
=
package
.
root_dir
/
archive
archive
=
self
.
_chef
.
prepare
(
archive
)
return
archive
def
_install_directory
(
self
,
operation
:
Install
|
Update
)
->
int
:
...
...
@@ -632,11 +630,6 @@ class Executor:
raise
# TODO: Check readability of the created archive
if
not
link
.
is_wheel
:
archive
=
self
.
_chef
.
prepare
(
archive
)
if
package
.
files
:
archive_hash
=
self
.
_validate_archive_hash
(
archive
,
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