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
e4e5497e
Commit
e4e5497e
authored
May 27, 2022
by
Arun Babu Neelicattu
Committed by
Bjorn Neergaard
May 27, 2022
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
inspection: clean up logging and switch to debug
parent
979d9458
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 additions
and
7 deletions
+1
-7
src/poetry/inspection/info.py
+1
-7
No files found.
src/poetry/inspection/info.py
View file @
e4e5497e
...
@@ -131,11 +131,6 @@ class PackageInfo:
...
@@ -131,11 +131,6 @@ class PackageInfo:
cache_version
=
data
.
pop
(
"_cache_version"
,
None
)
cache_version
=
data
.
pop
(
"_cache_version"
,
None
)
return
cls
(
cache_version
=
cache_version
,
**
data
)
return
cls
(
cache_version
=
cache_version
,
**
data
)
@classmethod
def
_log
(
cls
,
msg
:
str
,
level
:
str
=
"info"
)
->
None
:
"""Internal helper method to log information."""
getattr
(
logger
,
level
)(
f
"<debug>{cls.__name__}:</debug> {msg}"
)
def
to_package
(
def
to_package
(
self
,
self
,
name
:
str
|
None
=
None
,
name
:
str
|
None
=
None
,
...
@@ -200,10 +195,9 @@ class PackageInfo:
...
@@ -200,10 +195,9 @@ class PackageInfo:
dependency
=
Dependency
.
create_from_pep_508
(
req
,
relative_to
=
root_dir
)
dependency
=
Dependency
.
create_from_pep_508
(
req
,
relative_to
=
root_dir
)
except
ValueError
:
except
ValueError
:
# Likely unable to parse constraint so we skip it
# Likely unable to parse constraint so we skip it
self
.
_lo
g
(
logger
.
debu
g
(
f
"Invalid constraint ({req}) found in"
f
"Invalid constraint ({req}) found in"
f
" {package.name}-{package.version} dependencies, skipping"
,
f
" {package.name}-{package.version} dependencies, skipping"
,
level
=
"warning"
,
)
)
continue
continue
...
...
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