Skip to content

fix: name the distribution litegrip-python - #72

Merged
yang-dong-yd merged 1 commit into
mainfrom
fix/name-distribution-litegrip-python
Oct 24, 2026
Merged

yang-dong-yd merged 1 commit into
mainfrom
fix/name-distribution-litegrip-python

Conversation

@yang-dong-yd

Copy link
Copy Markdown
Contributor

Summary

Align litegrip with the naming used by litearm-python: repository, distribution and PyPI project all use the same name. The distribution becomes litegrip-python while the import package stays litegrip.

This matches a pending publisher configured for litegrip-python. If the PyPI pending publisher uses another name, it must be changed to litegrip-python; otherwise the first upload will fail the same way v1.1.1 did.

Do not re-run the failed v1.1.1 publish job: its artifacts are built as litegrip. This fix: commit produces a new release whose artifacts are litegrip_python-*.

Changes

  • pyproject.toml: name = "litegrip-python".
  • _detect_version() reads the litegrip-python distribution.
  • Optional-extra hints in the source, examples and both READMEs use litegrip-python[zenoh].
  • Remove the "not on PyPI yet" line from the install instructions.
  • Add a test that keeps the manifest name and the runtime lookup in sync.

Testing

python3 -m unittest discover -s tests -t tests -v

Result: Ran 467 tests in 10.828s — OK.

Built a wheel and checked its metadata:

uv build --wheel --out-dir /tmp/litegrip-dist-new
unzip -p /tmp/litegrip-dist-new/*.whl "*/METADATA" | grep -E "^(Name|Version|Summary|License-Expression|License-File):"

Result:

Name: litegrip-python
Version: 0.0.0
Summary: Python SDK for the LiteGrip lightweight robotic gripper series
License-Expression: Apache-2.0
License-File: LICENSE

Installed the wheel into a clean venv and confirmed the version lookup finds the new distribution name:

import version: 0.0.0

Issues

No linked issue.

Align the distribution name with the repository and the PyPI project,
as litearm-python does, so the trusted publisher can create the
project. The import package stays litegrip; only the install name
changes.

Update the version lookup, the optional-extra hints, both READMEs and
the examples, and add a test that keeps the manifest and runtime names
in sync.
@yang-dong-yd
yang-dong-yd merged commit 7f98ef5 into main Oct 24, 2026
1 check passed
@yang-dong-yd
yang-dong-yd deleted the fix/name-distribution-litegrip-python branch October 24, 2026 09:30
@github-actions

Copy link
Copy Markdown

🎉 This PR is included in version 1.1.2 🎉

The release is available on GitHub release

Your semantic-release bot 📦🚀

@github-actions github-actions Bot added the released Shipped in a release label Oct 24, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

released Shipped in a release

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant