Commit 70173c5
authored
Bump version to 2.8.1 (#120)
This pull request updates the versioning approach for the `struct`
Python 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**
* Updated the `struct_module/__init__.py` to dynamically retrieve the
package version using `importlib.metadata`, falling back to `"unknown"`
if the package is not installed. This replaces the previous hardcoded
version string.
* Changed the MCP server initialization in `struct_module/mcp_server.py`
to use the dynamically retrieved `__version__` instead of a hardcoded
value.
**Release Workflow Simplification**
* Removed the `update-version` job from
`.github/workflows/publish-pypi.yml`, which previously updated the
version in `pyproject.toml` on release events. The workflow now relies
solely on manual dispatch and no longer automatically bumps the version
on release.
[[1]](diffhunk://#diff-d4585bdbbb00b46a400628c271f195eb312333d18474299152a0b75fb1a7ec4bL4-L5)
[[2]](diffhunk://#diff-d4585bdbbb00b46a400628c271f195eb312333d18474299152a0b75fb1a7ec4bL14-L45)
**Version Bump**
* Updated the package version in `pyproject.toml` from `1.0.0` to
`2.8.1` to reflect the new release.1 parent 890bbe0 commit 70173c5
File tree
4 files changed
+9
-37
lines changed- .github/workflows
- struct_module
4 files changed
+9
-37
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | 3 | | |
4 | | - | |
5 | | - | |
6 | 4 | | |
7 | 5 | | |
8 | 6 | | |
| |||
11 | 9 | | |
12 | 10 | | |
13 | 11 | | |
14 | | - | |
15 | | - | |
16 | | - | |
17 | | - | |
18 | | - | |
19 | | - | |
20 | | - | |
21 | | - | |
22 | | - | |
23 | | - | |
24 | | - | |
25 | | - | |
26 | | - | |
27 | | - | |
28 | | - | |
29 | | - | |
30 | | - | |
31 | | - | |
32 | | - | |
33 | | - | |
34 | | - | |
35 | | - | |
36 | | - | |
37 | | - | |
38 | | - | |
39 | | - | |
40 | | - | |
41 | | - | |
42 | | - | |
43 | | - | |
44 | 12 | | |
45 | | - | |
46 | 13 | | |
47 | 14 | | |
48 | 15 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4 | 4 | | |
5 | 5 | | |
6 | 6 | | |
7 | | - | |
| 7 | + | |
8 | 8 | | |
9 | 9 | | |
10 | 10 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | | - | |
2 | | - | |
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
18 | 18 | | |
19 | 19 | | |
20 | 20 | | |
| 21 | + | |
21 | 22 | | |
22 | 23 | | |
23 | 24 | | |
24 | 25 | | |
25 | 26 | | |
26 | 27 | | |
27 | | - | |
| 28 | + | |
28 | 29 | | |
29 | 30 | | |
30 | 31 | | |
| |||
0 commit comments