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
Merged
Show file tree
Hide file tree
Changes from 4 commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ HARDWARE_DIR := hardware
USB_BRIDGE_DIR := usb-bridge
NODE_USB_BRIDGE_CLIENT_DIR := usb-bridge/node-client

PYTHON_DIRS := $(API_DIR) $(UPDATE_SERVER_DIR) $(ROBOT_SERVER_DIR) $(SERVER_UTILS_DIR) $(SHARED_DATA_DIR)/python $(G_CODE_TESTING_DIR) $(HARDWARE_DIR) $(USB_BRIDGE_DIR)
PYTHON_DIRS := $(API_DIR) $(UPDATE_SERVER_DIR) $(ROBOT_SERVER_DIR) $(SERVER_UTILS_DIR) $(SHARED_DATA_DIR)/python $(SYSTEM_SERVER_DIR) $(G_CODE_TESTING_DIR) $(HARDWARE_DIR) $(USB_BRIDGE_DIR)

# This may be set as an environment variable (and is by CI tasks that upload
# to test pypi) to add a .dev extension to the python package versions. If
Expand Down
2 changes: 1 addition & 1 deletion api/setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ def get_version():
f"opentrons-shared-data=={VERSION}",
"aionotify==0.3.1",
"anyio>=3.6.1,<4.0.0",
"jsonschema>=3.0.1,<4.18.0",
"jsonschema>=3.0.1,<5",
"numpy>=1.20.0,<2",
"pydantic>=1.10.9,<2.0.0",
"pyserial>=3.5",
Expand Down
2 changes: 1 addition & 1 deletion hardware/Pipfile
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ python-can = "==4.2.2"
pyserial = "==3.5"
typing-extensions = ">=4.0.0,<5"
numpy = "==1.22.3"
pydantic = "==1.9.2"
pydantic = "==1.10.12"

[dev-packages]
pytest = "==7.4.4"
Expand Down
1,006 changes: 548 additions & 458 deletions hardware/Pipfile.lock

Large diffs are not rendered by default.

4 changes: 3 additions & 1 deletion performance-metrics/Pipfile
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,9 @@ name = "pypi"
[packages]
performance-metrics = {file = ".", editable = true}
psutil = "==6.0.0"
systemd-python = "234"
# systemd-python errors upon installation if the host machine does not have systemd.
# Mark it as Linux-only so we can have dev environments on such machines.
systemd-python = { version = "==234", markers="sys_platform=='linux'" }

[dev-packages]
pytest = "==7.4.4"
Expand Down
15 changes: 8 additions & 7 deletions performance-metrics/Pipfile.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion shared-data/python/Pipfile
Original file line number Diff line number Diff line change
Expand Up @@ -26,5 +26,5 @@ pytest-clarity = "~=1.0.0"

[packages]
opentrons-shared-data = { editable = true, path = "." }
jsonschema = "==4.21.1"
jsonschema = "==4.17.3"
pydantic = "==1.10.12"
471 changes: 206 additions & 265 deletions shared-data/python/Pipfile.lock

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion shared-data/python/setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -141,7 +141,7 @@ def get_version():
)
PACKAGES = find_packages(where=".", exclude=["tests", "tests.*"])
INSTALL_REQUIRES = [
"jsonschema>=3.0.1,<4.18.0",
"jsonschema>=3.0.1,<5",
"typing-extensions>=4.0.0,<5",
"pydantic>=1.10.9,<2.0.0",
]
Expand Down
Loading