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

chore(python): Various small Python build and dependency fixes #15720

Merged
merged 5 commits into from
Jul 22, 2024

Conversation

SyntaxColoring
Copy link
Contributor

@SyntaxColoring SyntaxColoring commented Jul 19, 2024

Overview

Fix various small things about our Python build system and dev environments that I encountered while working on #15706.

Test Plan

Make sure CI keeps passing.

Changelog

See the individual commit messages.

Risk assessment

Low.

abr-testing, hardware-testing, performance-metrics, and test-data-generation are also missing, but that makes sense because they're special things that we treat as sort of off to the side.
shared-data/python's setup.py's constraint did not overlap with its Pipfile's constraint, causing `pipenv lock --dev` to fail.

Separately, api's exact version number pin did not match shared-data's exact version number pin. buildroot uses the one that api specifies, so this changes shared-data's to match that.
This was preventing `pipenv lock` and `make setup` on macOS.
This did not match shared-data's constraint, causing `pipenv lock` failures.
@SyntaxColoring SyntaxColoring requested review from a team as code owners July 19, 2024 17:34
Copy link
Contributor

@DerekMaggio DerekMaggio left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, nice catch on the linux only thing

@SyntaxColoring
Copy link
Contributor Author

CI shows linting failing in hardware/ because of the Pydantic fix (?). Looking into it.

Something about the Pydantic upgrade was interacting poorly with Mypy. Despite these fields having defaults, Mypy was raising errors when the class was instantiated without them. Somehow, declaring the defaults as keyword arguments instead of positional arguments fixes it.

Also fix a typo, `descript` -> `description`.
@SyntaxColoring SyntaxColoring merged commit 8f2583f into edge Jul 22, 2024
57 checks passed
@SyntaxColoring SyntaxColoring deleted the build_fixups branch July 22, 2024 14:55
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.

2 participants