Skip to content

Conversation

@rejzzzz
Copy link

@rejzzzz rejzzzz commented Jan 13, 2026

Fixes #808

  • added univers sorting library
  • kept natsort as fallback

now it should have 1.6.0 < 1.53.0

Signed-off-by: Rejwanul Hoque hoquerejwanulrh@gmail.com

@rejzzzz rejzzzz force-pushed the 808-sort-PURLs-by-version-scheme branch from 2425051 to cb3ec26 Compare January 13, 2026 20:28
@rejzzzz
Copy link
Author

rejzzzz commented Jan 13, 2026

TESTS:

  • added 5 unit tests (with 18 test cases) in SortVersionTestCase inside test_models.py
python3 manage_purldb.py test packagedb.tests.test_models.SortVersionTestCase --settings=purldb_project.settings
Found 5 test(s).
Creating test database for alias 'default'...

Compute license_detections for 0 resources.
Updating DB objects...
System check identified no issues (0 silenced).
.....
----------------------------------------------------------------------
Ran 5 tests in 2.543s

OK
Destroying test database for alias 'default'...
  • added 3 integration tests in test_sort_version_integration.py
python3 manage_purldb.py test packagedb.tests.test_models.SortVersionTestCase packagedb.tests.test_sort_version_integration.SortVersionIntegrationTestCase --settings=purldb_project.settings
Found 8 test(s).
Creating test database for alias 'default'...

Compute license_detections for 0 resources.
Updating DB objects...
System check identified no issues (0 silenced).
........
----------------------------------------------------------------------
Ran 8 tests in 4.004s

OK
Destroying test database for alias 'default'...

@rejzzzz rejzzzz force-pushed the 808-sort-PURLs-by-version-scheme branch 2 times, most recently from 668d9dc to 3c5cb49 Compare January 13, 2026 20:52
Signed-off-by: Rejwanul Hoque <hoquerejwanulrh@gmail.com>
@rejzzzz rejzzzz force-pushed the 808-sort-PURLs-by-version-scheme branch from 3c5cb49 to fcf9eb0 Compare January 13, 2026 20:58
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.

Ensure that PURLs are sorted according to their version scheme with univers

1 participant