Update nixpkgs and migrate the code base to packaging 22+#547
Draft
Atry wants to merge 7 commits intoDavHau:masterfrom
Draft
Update nixpkgs and migrate the code base to packaging 22+#547Atry wants to merge 7 commits intoDavHau:masterfrom
Atry wants to merge 7 commits intoDavHau:masterfrom
Conversation
File "/nix/store/zh55b23dvbad0mcl4jw30qppg6ccywms-python3.9-setuptools-67.4.0/lib/python3.9/site-packages/setuptools/_vendor/packaging/version.py", >
raise InvalidVersion(f"Invalid version: '{version}'")
```
error: builder for '/nix/store/2v2qddl3cp6s4pmwvw51hjk8d5w83f4f-mach-nix-1.0.0-dev.drv' failed with exit code 1;
last 10 log lines:
> > raise InvalidSpecifier(f"Invalid specifier: '{spec}'")
> E packaging.specifiers.InvalidSpecifier: Invalid specifier: '==*'
>
> /nix/store/9vrkqnyxrn54fl28ggil1vzffylcqf0i-python3.9-packaging-23.0/lib/python3.9/site-packages/packaging/specifiers.py:245: InvalidSpecifier
> =========================== short test summary info ============================
> FAILED mach_nix/tests/test_requirements.py::test_parse_requirements[blas * openblas-exp_output19] - packaging.specifiers.InvalidSpecifier: Invalid specifier: '==*'
> FAILED mach_nix/tests/test_requirements.py::test_parse_requirements[requests * *bla-exp_output27] - packaging.specifiers.InvalidSpecifier: Invalid specifier: '==*'
> FAILED mach_nix/tests/test_requirements.py::test_parse_requirements[requests * *-exp_output28] - packaging.specifiers.InvalidSpecifier: Invalid specifier: '==*'
> ================= 3 failed, 55 passed, 257 deselected in 0.36s =================
> /nix/store/sw36plhp82916wwg6i6097rkzza7d950-stdenv-linux/setup: line 1594: pop_var_context: head of shell_variables not a function context
For full logs, run 'nix log /nix/store/2v2qddl3cp6s4pmwvw51hjk8d5w83f4f-mach-nix-1.0.0-dev.drv'.
```
- list() is added because SpecifierSet().filter could now returns an iterator, not list - suppress the exception thrown from parse_ver if the version number is invalid since pypa/packaging#530
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
No description provided.