def get_minor_version_range(version: str) -> str:
    """Generate a version range like >=1.2.3,<1.3.0 based on a given version
    (e.g. of spaCy).
    """
    release = Version(version).release
    return f">={version},<{release[0]}.{release[1] + 1}.0"
Generate a version range like >=1.2.3,<1.3.0 based on a given version
    (e.g. of spaCy).
    
spacy/util.py