Skip to content

Fix missing docker runtime dependency (0.1.1)#56

Merged
toddysm merged 1 commit into
mainfrom
fix/missing-docker-dependency
May 18, 2026
Merged

Fix missing docker runtime dependency (0.1.1)#56
toddysm merged 1 commit into
mainfrom
fix/missing-docker-dependency

Conversation

@toddysm
Copy link
Copy Markdown
Owner

@toddysm toddysm commented May 18, 2026

Problem

Running regshape after pip install regshape from PyPI fails with:

ModuleNotFoundError: No module named 'docker'

The docker package is imported by regshape.libs.docker.operations but it was not declared as a runtime dependency in pyproject.toml. It was only listed in requirements.txt, which is used for local development environments and does not influence the metadata of the published wheel.

Fix

  • Add docker>=7.1.0 to [project].dependencies in pyproject.toml.
  • Move pytest into a new [project.optional-dependencies] dev extra so it stays out of the runtime metadata (installable via pip install 'regshape[dev]').
  • Bump version to 0.1.1 (PyPI does not allow re-uploading 0.1.0).

Release plan

After this PR is merged, cut a v0.1.1 release and trigger the Publish to PyPI workflow.

The published 0.1.0 wheel was missing the docker runtime dependency, causing `ModuleNotFoundError: No module named 'docker'` when running the CLI after `pip install regshape`. The docker package was only listed in requirements.txt (used for local dev), not in pyproject.toml's [project].dependencies (used to generate package metadata).

- Add `docker>=7.1.0` to runtime dependencies in pyproject.toml.
- Move `pytest` into a new [project.optional-dependencies] `dev` extra so it stays out of runtime metadata; install via `pip install regshape[dev]`.
- Bump version to 0.1.1 (PyPI does not allow re-uploading 0.1.0).
Copilot AI review requested due to automatic review settings May 18, 2026 01:36
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

Fixes missing docker runtime dependency in the published wheel's metadata, moves pytest to an optional dev extra, and bumps the version to 0.1.1 for PyPI re-publication.

Changes:

  • Add docker>=7.1.0 to runtime dependencies.
  • Add [project.optional-dependencies] with dev = ["pytest>=9.0.3"].
  • Bump version from 0.1.0 to 0.1.1.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@toddysm toddysm merged commit 48a4d3c into main May 18, 2026
8 checks passed
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