-
-
Notifications
You must be signed in to change notification settings - Fork 2
Bump version to 2.8.1 #120
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
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull Request Overview
This PR bumps the project version from 1.0.0 to 2.8.0 and streamlines the CI/CD workflow by removing automated version management logic. The changes consolidate version control to manual updates and remove the GitHub Actions job that previously automated version bumps on release events.
Key changes:
- Version bumped from 1.0.0 to 2.8.0 across the codebase
- Removed
__version__variable from the package's__init__.py - Simplified the PyPI publishing workflow to only support manual dispatch
Reviewed Changes
Copilot reviewed 4 out of 4 changed files in this pull request and generated 2 comments.
| File | Description |
|---|---|
| pyproject.toml | Updated project version from 1.0.0 to 2.8.0 |
| struct_module/mcp_server.py | Updated FastMCP server version parameter to 2.8.0 |
| struct_module/init.py | Removed __version__ variable assignment |
| .github/workflows/publish-pypi.yml | Removed automatic release trigger and version update job |
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #120 +/- ##
==========================================
+ Coverage 68.70% 68.85% +0.14%
==========================================
Files 20 20
Lines 1553 1554 +1
Branches 279 279
==========================================
+ Hits 1067 1070 +3
+ Misses 411 409 -2
Partials 75 75 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull Request Overview
Copilot reviewed 4 out of 4 changed files in this pull request and generated 2 comments.
struct_module/__init__.py
Outdated
| from importlib.metadata import version, PackageNotFoundError | ||
|
|
||
| try: | ||
| __version__ = version(__name__) |
Copilot
AI
Oct 27, 2025
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The version(__name__) call will fail because __name__ resolves to 'struct_module', but the package name in pyproject.toml is 'struct'. Change version(__name__) to version('struct') to match the package name.
| __version__ = version(__name__) | |
| __version__ = version('struct') |
| [project] | ||
| name = "struct" | ||
| version = "1.0.0" | ||
| version = "2.8.1" |
Copilot
AI
Oct 27, 2025
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The PR title mentions version 2.8.1, but the description states the version was updated to 2.8.0. The pyproject.toml correctly shows 2.8.1, which matches the PR title. Consider updating the PR description to reflect the accurate version number (2.8.1) to avoid confusion.
This pull request updates the versioning approach for the
structPython package and refines the GitHub Actions workflow for publishing to PyPI. The most important changes are the adoption of dynamic version retrieval, a version bump, and workflow simplification.Versioning Improvements
struct_module/__init__.pyto dynamically retrieve the package version usingimportlib.metadata, falling back to"unknown"if the package is not installed. This replaces the previous hardcoded version string.struct_module/mcp_server.pyto use the dynamically retrieved__version__instead of a hardcoded value.Release Workflow Simplification
update-versionjob from.github/workflows/publish-pypi.yml, which previously updated the version inpyproject.tomlon release events. The workflow now relies solely on manual dispatch and no longer automatically bumps the version on release. [1] [2]Version Bump
pyproject.tomlfrom1.0.0to2.8.1to reflect the new release.