You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Single-source versioning: derive Python version from Cargo.toml (#255)
Replace the hardcoded __version__ in __init__.py with
importlib.metadata.version('wily'). Maturin already derives the Python
package version from backend/Cargo.toml, so Cargo.toml is now the
single source of truth for the version number.
- src/wily/__init__.py: Use importlib.metadata instead of hardcoded string
- backend/Cargo.toml: Sync version to 2.0.0-alpha.2
- release.toml: Add cargo-release config for local version bumps
- CONTRIBUTING.md: Document release process using cargo-release
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Copy file name to clipboardExpand all lines: CONTRIBUTING.md
+51-3Lines changed: 51 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -11,11 +11,59 @@ Please note we have a code of conduct, please follow it in all your interactions
11
11
build.
12
12
2. Update the README.md with details of changes to the interface, this includes new environment
13
13
variables, exposed ports, useful file locations and container parameters.
14
-
3. Increase the version numbers in any examples files and the README.md to the new version that this
15
-
Pull Request would represent. The versioning scheme we use is [SemVer](http://semver.org/).
16
-
4. You may merge the Pull Request in once you have the sign-off of two other developers, or if you
14
+
3. You may merge the Pull Request in once you have the sign-off of two other developers, or if you
17
15
do not have permission to do that, you may request the second reviewer to merge it for you.
18
16
17
+
## Development Setup
18
+
19
+
```console
20
+
$ uv sync --all-groups
21
+
$ maturin develop
22
+
```
23
+
24
+
## Releasing a New Version
25
+
26
+
The version is defined in a single place: `backend/Cargo.toml`. The Python package version is derived automatically via maturin at build time and read at runtime using `importlib.metadata`.
0 commit comments