Skip to content

Commit 31021a2

Browse files
committed
Merge branch 'feat/make_version_case_sensitive' into 'main'
feat: make versions case sensitive Closes PACMAN-1036 See merge request espressif/idf-component-manager!510
2 parents 83895f3 + d694db9 commit 31021a2

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

idf_component_tools/utils.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -276,7 +276,7 @@ def __init__(self, version_string: str):
276276
version_string: can be `*`, git commit hash (hex, 160 bit),
277277
or valid semantic version string
278278
"""
279-
self._version_string: str = version_string.strip().lower()
279+
self._version_string: str = version_string.strip()
280280
self._semver: t.Optional[Version] = None
281281

282282
# Setting flags:

tests/idf_component_tools/test_utils.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,7 @@ def test_flags(self):
4343
('1.2.3~1', '1.2.3~1'),
4444
('1.2.3-rc1+build1', '1.2.3-rc1+build1'),
4545
('1.2.3~1-rc1+build1', '1.2.3~1-rc1+build1'),
46+
('1.2.3-Alpha', '1.2.3-Alpha'),
4647
],
4748
)
4849
def test_string_is_unified(self, version, expected):

0 commit comments

Comments
 (0)