Ejemplo n.º 1
0
async def all_ports() -> port.PortIter:
    tags_ver_strs = (
        ('v1.2.11', '1.2.11'),
        ('v1.2.10', '1.2.10'),
        ('v1.2.9', '1.2.9'),
        ('v1.2.8', '1.2.8'),
        ('v1.2.7.3', '1.2.7'),
        ('v1.2.6.1', '1.2.6'),
        ('v1.2.5.3', '1.2.5'),
        ('v1.2.4.5', '1.2.4'),
        ('v1.2.3.8', '1.2.3'),
        ('v1.2.2.4', '1.2.2'),
        ('v1.2.1.2', '1.2.1'),
        ('v1.2.0.8', '1.2.0'),
    )

    tags_vers = ((tag, VersionInfo.parse(s)) for tag, s in tags_ver_strs)

    return (auto.SimpleGitHubAdaptingPort(
        package_id=port.PackageID('zlib', version),
        owner='madler',
        repo='zlib',
        tag=tag,
        package_json={
            'name': 'zlib',
            'namespace': 'zlib',
            'depends': [],
        },
        library_json={
            'name': 'zlib',
            'uses': [],
        },
        fs_transform=fixup_zlib,
        try_build=True,
    ) for tag, version in tags_vers)
Ejemplo n.º 2
0
async def all_ports() -> port.PortIter:
    tags = await github.get_repo_tags('catchorg', 'catch2')
    versions = ((tag, util.tag_as_version(tag)) for tag in tags)

    min_ver = VersionInfo(2, 12)
    max_ver = VersionInfo(2, 99999, 9999)
    return (
        auto.SimpleGitHubAdaptingPort(
            package_id=port.PackageID('catch2', version),
            owner='catchorg',
            repo='catch2',
            tag=tag,
            package_json={
                'name': 'catch2',
                'namespace': 'catch2',
                'depends': [],
            },
            library_json={
                'name': 'catch2',
                'uses': [],
            },
            fs_transform=fixup_catch2,
            try_build=True,
        ) for tag, version in versions  #
        if (version is not None and version >= min_ver and version < max_ver))  # pylint: disable=chained-comparison
Ejemplo n.º 3
0
async def all_ports() -> port.PortIter:
    owner = 'chriskohlhoff'
    tags = await github.get_repo_tags(owner, 'asio')
    tag_re = re.compile(r'asio-(\d+)-(\d+)-(\d+)')
    version_strs = ((tag, tag_re.sub(r'\1.\2.\3', tag)) for tag in tags)
    versions = ((tag, VersionInfo.parse(ver_str)) for tag, ver_str in version_strs)

    return (auto.SimpleGitHubAdaptingPort(
        package_id=port.PackageID('asio', version),
        owner=owner,
        repo='asio',
        tag=tag,
        package_json={
            'name': 'asio',
            'namespace': 'asio',
            'depends': [],
        },
        library_json={
            'name': 'asio',
            'uses': [],
        },
        fs_transform=fixup_asio,
        try_build=version != VersionInfo(1, 16, 0),
    ) for tag, version in versions if version >= VersionInfo(1, 12, 0))
Ejemplo n.º 4
0
async def all_ports() -> port.PortIter:
    tags = [
        ('20200923.2', '2020.9.23'),
        ('20200225.3', '2020.2.25'),
        ('20190808.1', '2019.8.8'),
    ]

    return (auto.SimpleGitHubAdaptingPort(
        package_id=port.PackageID('abseil', VersionInfo.parse(version_str)),
        owner='abseil',
        repo='abseil-cpp',
        tag=tag,
        package_json={
            'name': 'abseil',
            'namespace': 'abseil',
            'depends': [],
        },
        library_json={
            'name': 'abseil',
            'uses': [],
        },
        fs_transform=fixup_abseil,
        try_build=False,
    ) for tag, version_str in tags)
Ejemplo n.º 5
0
 def __init__(self, year: int, version: VersionInfo) -> None:
     self.year = year
     self.version = version
     self.package_id = port.PackageID('sqlite3', version)