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
The evaluation in poetry2nix doesn't take and/or precedence into account, which causes problems with more complex conditionals. Like conditional dependencies which propagate their marker resulting in multiple conditions. eg.
foo; python_version>"3.4"bar; sys_platform=="win32"# depends on foo
nix-repl> evalPep508 ''python_version > "3.4" or python_version > "3.4" and sys_platform == "win32"''
false
nix-repl> evalPep508 ''python_version > "3.4" and sys_platform == "win32" or python_version > "3.4"''
true
In [1]: from packaging.markers import Marker
In [2]: Marker('python_version > "3.4" or python_version > "3.4" and sys_platform == "win32"').evaluate()
Out[2]: True
In [3]: Marker('python_version > "3.4" and sys_platform == "win32" or python_version > "3.4"').evaluate()
Out[3]: True
The text was updated successfully, but these errors were encountered:
The evaluation in poetry2nix doesn't take and/or precedence into account, which causes problems with more complex conditionals. Like conditional dependencies which propagate their marker resulting in multiple conditions. eg.
Compared to the packaging module.
The text was updated successfully, but these errors were encountered: