[Tiny Feature] Add mcrfpy.__version__ for version identity #164

Closed
opened 2025-12-29 03:54:03 +00:00 by john · 0 comments
Owner

Summary

Users and bug reports need a way to identify which version of McRogueFace they're running.

Implementation

Add version string to the mcrfpy module:

>>> import mcrfpy
>>> mcrfpy.__version__
'1.0.0'

Details

  1. Define version in one place (probably McRFPy_API.cpp or a header)
  2. Expose as __version__ attribute on the module
  3. Follow semantic versioning: MAJOR.MINOR.PATCH
  4. Consider also exposing:
    • mcrfpy.__sfml_version__ - underlying SFML version
    • mcrfpy.__python_version__ - embedded Python version

Version Scheme

  • 1.0.0 - First public release
  • 1.0.x - Bug fixes
  • 1.x.0 - New features, backward compatible
  • 2.0.0 - Breaking API changes
  • README should display current version
  • Website should show version
  • Release tags should match version string
## Summary Users and bug reports need a way to identify which version of McRogueFace they're running. ## Implementation Add version string to the `mcrfpy` module: ```python >>> import mcrfpy >>> mcrfpy.__version__ '1.0.0' ``` ## Details 1. Define version in one place (probably `McRFPy_API.cpp` or a header) 2. Expose as `__version__` attribute on the module 3. Follow semantic versioning: `MAJOR.MINOR.PATCH` 4. Consider also exposing: - `mcrfpy.__sfml_version__` - underlying SFML version - `mcrfpy.__python_version__` - embedded Python version ## Version Scheme - **1.0.0** - First public release - **1.0.x** - Bug fixes - **1.x.0** - New features, backward compatible - **2.0.0** - Breaking API changes ## Related - README should display current version - Website should show version - Release tags should match version string
john closed this issue 2025-12-29 21:24:38 +00:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Reference
john/McRogueFace#164
No description provided.