-
-
Notifications
You must be signed in to change notification settings - Fork 38.7k
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 Python dependencies for Nix #12855
Merged
Merged
Commits on May 31, 2021
-
Configuration menu - View commit details
-
Copy full SHA for f4d00ab - Browse repository at this point
Copy the full SHA f4d00abView commit details -
Nix: Update milc version in pyproject.toml to match requirements.txt
The lock file already contained milc 1.3.0, but pyproject.toml still specified the minimum required version as 1.1.0, which is not compatible with the current Python code.
Configuration menu - View commit details
-
Copy full SHA for 4d94497 - Browse repository at this point
Copy the full SHA 4d94497View commit details -
Nix: Remove
Wave
from pyproject.tomlApparenty the `wave` entry was added to requirements-dev.txt by mistake (the code actually uses the builtin `wave` package, not the `Wave` project that is available on PyPi). That entry has already been removed from requirements-dev.txt; remove it from pyproject.toml too.
Configuration menu - View commit details
-
Copy full SHA for 065f8d5 - Browse repository at this point
Copy the full SHA 065f8d5View commit details -
Nix: Add
hid
andpyusb
to Python dependenciesRecent updated added `hid` and `pyusb` to requirements-dev.txt; update pyproject.toml accordingly. In addition, these Python modules use native libraries (`hidapi` and `libusb1`), and need Nix-specific changes to find those libraries; add the needed changes to shell.nix as overrides. The `pyusb` override was copied from the corresponding nixpkgs package; the `hid` override is new, because that Python package is not in nixpkgs at the moment.
Configuration menu - View commit details
-
Copy full SHA for 02c59dd - Browse repository at this point
Copy the full SHA 02c59ddView commit details -
Nix: Rename the poetry project to
qmk_firmware
The `qmk` name collides with the name of the QMK CLI package.
Configuration menu - View commit details
-
Copy full SHA for 36055b8 - Browse repository at this point
Copy the full SHA 36055b8View commit details -
Nix: Add QMK CLI to Python dependencies
Current QMK build scripts loudly complain about the missing QMK CLI. The obvious solution is to include `qmk` in the list of Python dependencies in pyproject.toml; this makes the `qmk` executable available in the nix-shell environment, and stops the warnings. Note that any leftover `bin/qmk` uses may become errors after this change, because apparently the Nix wrapper for the `qmk` executable prepends a directory containing some `python3` version to `$PATH`, but that `python3` cannot find the Python packages required by `bin/qmk`. However, if the code uses `$(QMK_BIN)` correctly, it would run the `qmk` executable from `$PATH` instead, which would run properly.
Configuration menu - View commit details
-
Copy full SHA for 7c3f080 - Browse repository at this point
Copy the full SHA 7c3f080View commit details -
Configuration menu - View commit details
-
Copy full SHA for 8f6ce33 - Browse repository at this point
Copy the full SHA 8f6ce33View commit details -
Nix: Change Python dependency on
qmk
to wildcardThe `qmk = "^0.0.46"` dependency specification automatically added by `poetry add qmk` is not suitable, because it prevents any version upgrades for the `qmk` package due to the special handling of `0.0` for caret requirements. Replace this specification with `"*"`, so that `poetry update --lock` could be used to bump the locked version to the latest available without the need to change `pyproject.toml`. Co-authored-by: Steve Purcell <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 1430a2f - Browse repository at this point
Copy the full SHA 1430a2fView commit details -
Nix: Bump locked versions for Python dependencies
Use the latest QMK CLI (0.0.46 -> 0.0.48) and other packages: - argcomplete: 1.12.2 -> 1.12.3 - attrs: 20.3.0 -> 21.2.0 - flake8: 3.9.0 -> 3.9.2 - six: 1.15.0 -> 1.16.0 - pygments: 2.8.1 -> 2.9.0
Configuration menu - View commit details
-
Copy full SHA for 876a963 - Browse repository at this point
Copy the full SHA 876a963View commit details -
Nix: Bump locked versions for Python dependencies
Use `( cd nix && poetry update --lock; )` to update all Python dependencies to their most recent versions (although `requirements.txt` has not been changed, the actual code is no longer compatible with older versions of some Python packages). Dependency changes: - halo: 0.0.31 (new) - log-symbols: 0.0.14 (new) - milc: 1.3.0 -> 1.4.2 - qmk: 0.0.48 -> 0.0.51 - spinners: 0.0.24 (new) - termcolor: 1.1.0 (new)
Configuration menu - View commit details
-
Copy full SHA for 3788f01 - Browse repository at this point
Copy the full SHA 3788f01View commit details
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.