Skip to content

Release v4.9.0#412

Merged
SB-PawanN merged 9 commits into
masterfrom
release/v4.9.0
Apr 21, 2026
Merged

Release v4.9.0#412
SB-PawanN merged 9 commits into
masterfrom
release/v4.9.0

Conversation

@SB-PawanN
Copy link
Copy Markdown
Contributor

Add bugsnag.__version__ attribute for programmatic version checking as per PEP 396 specification
#409

Steve Kirkland and others added 8 commits March 11, 2026 12:04
Clarify use of the next banch
This implements the requested feature to expose bugsnag.__version__
for programmatic version checking, as per PEP 396.

Changes:
- Created VERSION file containing current version (4.8.0)
- Updated bugsnag/__init__.py to read from VERSION and expose __version__
- Updated setup.py to read version from VERSION file
- Updated bugsnag/notifier.py to read version from VERSION file
- Added MANIFEST.in to include VERSION in package distributions
- Updated CHANGELOG.md with enhancement entry
- Updated CONTRIBUTING.md to document simplified release process

Benefits:
- Single source of truth for version number (no more manual updates in 3 places)
- bugsnag.__version__ now available for programmatic access
- Graceful fallback to 'unknown' if VERSION file is missing
Implements bugsnag.__version__ for programmatic version checking (PEP 396).
Uses Makefile approach (inspired by bugsnag-cocoa) to address performance concerns.

Changes:
- Added __version__ = '4.8.0' to bugsnag/__init__.py
- Hardcoded version='4.8.0' in setup.py
- Hardcoded 'version': '4.8.0' in bugsnag/notifier.py
- Added Makefile with bump target for automated version updates
- Updated CHANGELOG.md with enhancement entry
- Updated CONTRIBUTING.md to document Makefile usage
- Removed VERSION file and MANIFEST.in (no runtime file I/O overhead)
- Updated features/support/env.rb (removed VERSION from test fixtures)

Usage:
- Users: bugsnag.__version__ returns '4.8.0'
- Maintainers: make VERSION=x.y.z bump (updates all 3 files)

Benefits:
- Zero runtime overhead (no file I/O during import)
- bugsnag.__version__ attribute now available
- Automated version updates via single Makefile command
- Addresses reviewer feedback on performance concerns
- Restore flask extras_require (accidental removal)
- Update CHANGELOG.md format per reviewer suggestion
- All 532 core unit tests passing
Adding makefile to bump __verion__ at 3 places.
Address PLAT-15480: Fix CI failures in AWS Lambda Maze Runner tests and ensure ASGI integration tests are compatible with Starlette 1.0+

Changes:
* Enable Python 3.14 for AWS Lambda feature tests (removed @not-python-3.14 tags)
* Increase Maze Runner timeouts for AWS Lambda cold starts (10s → 20s)
* Migrate ASGI tests from deprecated @app.route() to app.add_route() for Starlette 1.0+ compatibility
@SB-PawanN SB-PawanN marked this pull request as ready for review April 21, 2026 11:51
@SB-PawanN SB-PawanN requested a review from SB-jigneshR April 21, 2026 11:51
@SB-PawanN SB-PawanN requested a review from SB-sourabhk April 21, 2026 12:29
@SB-PawanN SB-PawanN merged commit bb936a1 into master Apr 21, 2026
44 checks passed
@SB-PawanN SB-PawanN deleted the release/v4.9.0 branch April 21, 2026 14:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants