Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update nixpkgs and migrate the code base to packaging 22+ #547

Draft
wants to merge 7 commits into
base: master
Choose a base branch
from

Conversation

Atry
Copy link
Contributor

@Atry Atry commented Mar 27, 2023

No description provided.

Atry and others added 7 commits March 27, 2023 19:22
  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
@Atry Atry changed the title Update nixpkgs Update nixpkgs and migrate the code base to packaging 22+ Mar 28, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant