mirror of
https://github.com/ZGCA-Forge/MsgCenterPy.git
synced 2026-02-12 10:45:13 +00:00
Compare commits
2 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
a871c11df8 | ||
|
|
7d1bc307ee |
@@ -1,5 +1,5 @@
|
|||||||
[bumpversion]
|
[bumpversion]
|
||||||
current_version = 0.0.3
|
current_version = 0.0.4
|
||||||
commit = True
|
commit = True
|
||||||
tag = True
|
tag = True
|
||||||
tag_name = v{new_version}
|
tag_name = v{new_version}
|
||||||
|
|||||||
24
.github/workflows/publish.yml
vendored
24
.github/workflows/publish.yml
vendored
@@ -169,13 +169,31 @@ jobs:
|
|||||||
- name: Verify version consistency
|
- name: Verify version consistency
|
||||||
if: github.event_name == 'release'
|
if: github.event_name == 'release'
|
||||||
run: |
|
run: |
|
||||||
VERSION=$(python -c "import msgcenterpy; print(msgcenterpy.__version__)" 2>/dev/null || echo "unknown")
|
# Install package first
|
||||||
TAG_VERSION="${GITHUB_REF#refs/tags/v}"
|
pip install -e .
|
||||||
|
|
||||||
|
# Get package version (fail fast if not available)
|
||||||
|
VERSION=$(python -c "import msgcenterpy; print(msgcenterpy.__version__)")
|
||||||
|
|
||||||
|
# Handle both v0.0.3 and 0.0.3 tag formats
|
||||||
|
RAW_TAG="${GITHUB_REF#refs/tags/}"
|
||||||
|
if [[ "$RAW_TAG" == v* ]]; then
|
||||||
|
TAG_VERSION="${RAW_TAG#v}"
|
||||||
|
else
|
||||||
|
TAG_VERSION="$RAW_TAG"
|
||||||
|
fi
|
||||||
|
|
||||||
|
echo "Package version: $VERSION"
|
||||||
|
echo "Tag version: $TAG_VERSION"
|
||||||
|
|
||||||
if [ "$VERSION" != "$TAG_VERSION" ]; then
|
if [ "$VERSION" != "$TAG_VERSION" ]; then
|
||||||
echo "Version mismatch: package=$VERSION, tag=$TAG_VERSION"
|
echo "❌ Version mismatch: package=$VERSION, tag=$TAG_VERSION"
|
||||||
|
echo "Please ensure the package version matches the git tag"
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
echo "✅ Version verification passed: $VERSION"
|
||||||
|
|
||||||
- name: Build release distributions
|
- name: Build release distributions
|
||||||
run: |
|
run: |
|
||||||
python -m build
|
python -m build
|
||||||
|
|||||||
@@ -5,7 +5,7 @@ A multi-format message conversion system supporting seamless conversion
|
|||||||
between ROS2, Pydantic, Dataclass, JSON, Dict, YAML and JSON Schema.
|
between ROS2, Pydantic, Dataclass, JSON, Dict, YAML and JSON Schema.
|
||||||
"""
|
"""
|
||||||
|
|
||||||
__version__ = "0.0.3"
|
__version__ = "0.0.4"
|
||||||
__license__ = "Apache-2.0"
|
__license__ = "Apache-2.0"
|
||||||
|
|
||||||
from msgcenterpy.core.envelope import MessageEnvelope, create_envelope
|
from msgcenterpy.core.envelope import MessageEnvelope, create_envelope
|
||||||
|
|||||||
Reference in New Issue
Block a user