Skip to content

Conversation

@karthagokul
Copy link
Contributor

Summary

This PR modernizes the up-python build and development workflow by:

  • Replacing the Maven dependency and external proto pulling script with a local up-spec submodule for up-spec core-api proto files.
  • Adding generate_proto.py to generate Python proto bindings locally using grpcio-tools.
  • Migrating deprecated subscribe proto usage to the updated API.
  • Cleaning up unused pull_and_compile_protos.py.
  • Replacing pyproject.toml (Poetry) with a PEP 621 pyproject.toml using setuptools, simplifying build and aligning with modern Python packaging.
  • All existing tests pass (pytest, coverage verified).

Motivation

  • Simplifies development workflow without Maven and Java dependency.
  • Makes proto generation explicit and reproducible via generate_proto.py.
  • Aligns with upstream up-spec for easier updates.
  • Keeps the repo fully Python-native and CI-friendly.

Notes

  • The branch is clean, rebased on upstream main.

Let me know if further adjustments are needed or if you prefer additional documentation updates. Thank you for reviewing!

…dency, Upgraded code for latest up-spec 7af90bd9aee517e79b7a41427d37de28af0f6de0
- Removed Maven dependency references in README as they are no longer needed.
- Updated instructions to reflect using `up-spec` as a git submodule.
- Added steps to run `scripts/generate_proto.py` for generating local Python proto bindings.
- Aligned workflow with the new approach of managing `up-core-api` protos locally instead of pulling during build.
- Ensured instructions remain clean for new contributors while reflecting the deprecated proto subscribe handling updates.
Copy link

@AnotherDaniel AnotherDaniel left a comment

Choose a reason for hiding this comment

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

Nice! Some minor mostly editorial comments...

@@ -0,0 +1,67 @@
"""
SPDX-FileCopyrightText: 2024 Contributors to the Eclipse Foundation

Choose a reason for hiding this comment

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

Update to 2025

@AnotherDaniel AnotherDaniel added the enhancement New feature or request label Jul 11, 2025
@github-actions
Copy link

Code coverage report is ready! 📈

Copy link

@AnotherDaniel AnotherDaniel left a comment

Choose a reason for hiding this comment

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

Looks great, thank you!

@AnotherDaniel AnotherDaniel merged commit 68e0454 into eclipse-uprotocol:main Jul 11, 2025
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants