Skip to content

Handle possible duplication of constraints in VersionRange #45

Open
@keshav-space

Description

@keshav-space

Eliminate the possibility of constraints duplication in VersionRange and add some tests to validate the same.

>>> from univers.version_range import NginxVersionRange
>>> range=NginxVersionRange.from_native("1.5.0+, 1.4.1+, 1.4.0+")
>>> str(range)
'vers:nginx/>=1.4.0|>=1.4.1|<1.5.0|<1.5.0|>=1.5.0'

Context: #42 (comment)

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions