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
{{ message }}
This repository has been archived by the owner on Jan 12, 2021. It is now read-only.
WARNING cannot find tool.dephell section in the config (path=pyproject.toml)
ERROR InvalidSpecifier: ^tox
Traceback (most recent call last):
File "/usr/lib/python3.8/site-packages/dephell/cli.py", line 66, in main
result = handler()
File "/usr/lib/python3.8/site-packages/dephell/commands/deps_convert.py", line 45, in __call__
resolver = loader.load_resolver(path=self.config['from']['path'])
File "/usr/lib/python3.8/site-packages/dephell/converters/base.py", line 94, in load_resolver
root = self.load(path=path)
File "/usr/lib/python3.8/site-packages/dephell/converters/base.py", line 54, in load
root = self.loads(content=stream.read())
File "/usr/lib/python3.8/site-packages/dephell/converters/poetry.py", line 112, in loads
deps.extend(self._make_deps(
File "/usr/lib/python3.8/site-packages/dephell/converters/poetry.py", line 331, in _make_deps
constraint=Constraint(root, content),
File "/usr/lib/python3.8/site-packages/dephell/models/constraint.py", line 14, in __init__
self._specs = {source.name: RangeSpecifier(spec)}
File "/usr/lib/python3.8/site-packages/dephell_specifier/range_specifier.py", line 40, in __init__
self._specs = self._parse(spec)
File "/usr/lib/python3.8/site-packages/dephell_specifier/range_specifier.py", line 66, in _parse
result.update(cls._parse_npm(constr))
File "/usr/lib/python3.8/site-packages/dephell_specifier/range_specifier.py", line 146, in _parse_npm
raise InvalidSpecifier(constr)
packaging.specifiers.InvalidSpecifier: ^tox
And how can SolidPython rely on an undocumented parsing edge case in poetry? Poetry could tighten up its data validation routines at any time, resulting in their pyproject.toml failing to parse.
This really sounds like a dangerous bug in the pyproject.toml. What's poetry's perspective on accepting such files?
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Short description
dephell fails to parse some valid poetry dependencies. portey works just fine but dephell errors out.
Output
Steps to reproduce
Traceback
Config
Example: https://github.com/SolidCode/SolidPython/blob/master/pyproject.toml
Versions
The text was updated successfully, but these errors were encountered: