镜像站点 · 本页由第三方 GitHub 只读镜像提供,非 GitHub 官方站点,不接受任何登录或凭据输入。前往 github.com
Skip to content

Compare across pre-release #90

Open

Description

@sergiotomasello

Is there a way to create a requirement spec which includes all ( * ,x) pre-releases ?

ie:

v = semantic_version.Version('1.0.0-rc.1')
ss1 = semantic_version.SimpleSpec('>=1.0.0-*') # => Exception

The only thing that works is the following:

ss2 = semantic_version.SimpleSpec('>=1.0.0-rc')

It satisfies all 1.0.0-rc.* Versions including 1.0.0

Activity

  1. rbarrois commented on Jan 1, 2020

    @rbarrois
    Owner

    Not currently; this doesn't exist for two reasons:

    • Working with pre-release versions is always complex, and seldom useful;
    • Since SimpleSpec implements an ad-hoc matching specification, many corner cases may have been forgotten.

    How would you intuitively express "I want 1.0.0, including any pre-release"? Maybe we can include that in the ad-hoc spec and implement it :)

    This should also:

    • Not change the current semantics by including pre-release versions where they previously weren't included;
    • Not overlap a similar range specification (I'd like to stick to the "There should be one-- and preferably only one --obvious way to do it" approach)
    • Be consistent with the rest of the spec...

    Thanks ;)

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

    Status:DesignNeededThis issue is waiting for somewhat to suggest a new designTopic:APIImprovements to the library APIType:Enhancement

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions