You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi, thanks for the great project -- really awesome tool!
I encountered an error because in my pyproject.toml I specify some dependency ranges using the comma separated syntax which is supported by poetry as well as pdm and documented in PEP440. For example, this is a valid PDM pyproject.toml:
However, pip-check-updates fails to parse this, giving this error:
Traceback (most recent call last):
File "/usr/local/bin/pcu", line 8, in <module>
sys.exit(run())
^^^^^
File "/usr/local/lib/python3.11/site-packages/pip_check_updates/__main__.py", line 70, in run
deps = load_dependencies(req_path, not no_recursive, extra)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.11/site-packages/pip_check_updates/parser.py", line 167, in load_dependencies
load_toml(deps, f, p, pyproject=True, extras=extras)
File "/usr/local/lib/python3.11/site-packages/pip_check_updates/parser.py", line 111, in load_toml
packages = parse_requirements_lines(config.get(package_key, []))
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.11/site-packages/pip_check_updates/parser.py", line 101, in parse_requirements_lines
requirements = [
^
File "/usr/local/lib/python3.11/site-packages/pip_check_updates/parser.py", line 102, in <listcomp>
get_current_version(clean_requirements_line(requirement_line))
File "/usr/local/lib/python3.11/site-packages/pip_check_updates/version.py", line 52, in get_current_version
name, current_version = split_line
^^^^^^^^^^^^^^^^^^^^^
ValueError: too many values to unpack (expected 2)
The text was updated successfully, but these errors were encountered:
Hi, thanks for the great project -- really awesome tool!
I encountered an error because in my
pyproject.toml
I specify some dependency ranges using the comma separated syntax which is supported bypoetry
as well aspdm
and documented inPEP440
. For example, this is a valid PDMpyproject.toml
:However,
pip-check-updates
fails to parse this, giving this error:The text was updated successfully, but these errors were encountered: