Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

115 is the next ESR major version #104

Merged
merged 1 commit into from
Apr 12, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,9 @@ This project adheres to [Semantic Versioning](http://semver.org/).
### Removed
* Support for python < 3.7

### Added
* 115 is the next ESR major version

## [1.2.0] - 2022-11-25

### Changed
Expand Down
2 changes: 1 addition & 1 deletion mozilla_version/gecko.py
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,7 @@ class GeckoVersion(BaseVersion):

_ALL_NUMBERS = BaseVersion._ALL_NUMBERS + _OPTIONAL_NUMBERS

_KNOWN_ESR_MAJOR_NUMBERS = (10, 17, 24, 31, 38, 45, 52, 60, 68, 78, 91, 102)
_KNOWN_ESR_MAJOR_NUMBERS = (10, 17, 24, 31, 38, 45, 52, 60, 68, 78, 91, 102, 115)

_LAST_AURORA_DEVEDITION_AS_VERSION_TYPE = 54

Expand Down
10 changes: 7 additions & 3 deletions mozilla_version/test/test_gecko.py
Original file line number Diff line number Diff line change
Expand Up @@ -351,6 +351,10 @@ def test_gecko_version_implements_str_operator(version_string, expected_output):
('91.0esr', 'major_number', '102.0esr'),
('91.0.1esr', 'major_number', '102.0esr'),
('91.1.0esr', 'major_number', '102.0esr'),

('102.0esr', 'major_number', '115.0esr'),
('102.0.1esr', 'major_number', '115.0esr'),
('102.1.0esr', 'major_number', '115.0esr'),
))
def test_gecko_version_bump(version_string, field, expected):
version = GeckoVersion.parse(version_string)
Expand Down Expand Up @@ -385,9 +389,9 @@ def test_gecko_version_bump(version_string, field, expected):

('32.0', 'build_number'),

('102.0esr', 'major_number'),
('102.0.1esr', 'major_number'),
('102.1.0esr', 'major_number'),
('115.0esr', 'major_number'),
('115.0.1esr', 'major_number'),
('115.1.0esr', 'major_number'),
))
def test_gecko_version_bump_raises(version_string, field):
version = GeckoVersion.parse(version_string)
Expand Down