Skip to content

maven.py: "release" qualifier not treated as release alias #188

Description

@selsky

What: ALIASES dict in maven.py maps "ga" and "final" to "" but omits "release". So Version("1.0") == Version("1.0-release") returns False.

Expected: The Maven ComparableVersion spec defines "", "final", "ga", and "release" as equivalent.
Reference: https://maven.apache.org/pom.html#version-order-specification

Fix: Add "release": "" to the ALIASES dict on line 33 of univers/maven.py.

Reproduction:

  assert Version("1.0") == Version("1.0-release")  # fails
  assert Version("1.0") == Version("1.0-final")    # passes
  assert Version("1.0") == Version("1.0-ga")       # passes

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions