Esempio n. 1
0
def main():
    config = read_config()
    section = 'python'

    changelogs = get_changelogs(config, tracked=True)

    all_cnt = len(changelogs)
    for i, x in enumerate(reversed(changelogs)):
        if i % 10 == 0:
            print("Process: %s of %s" % (i, all_cnt))
        if x['namespace'] != section:
            untrack_changelog(config, x)
def subscribe_all_python():
    config = read_config(os.path.join(os.path.dirname(__file__), 'allmychanges.cfg'))

    section = 'python'

    changelogs = get_changelogs(config, tracked=True)
    subscribed_packages = [x['name'] for x in changelogs
                           if 'namespace' in x and x['namespace'] == section]

    python_libraries = search_category(config, section)

    all_cnt = len(python_libraries)

    for i, x in enumerate(python_libraries):
        if i % 10 == 0:
            print("Process: %s of %s" % (i, all_cnt))

        if not (x.get('name') in subscribed_packages):
            print("Track: ", x.get('name'))
            track_changelog(config, x)
Esempio n. 3
0
def main():
    config = read_config()

    section = 'python'

    changelogs = get_changelogs(config, tracked=True)
    subscribed_packages = [
        x['name'] for x in changelogs
        if 'namespace' in x and x['namespace'] == section
    ]

    namespace_libraries = search_category(config, section)

    all_cnt = len(namespace_libraries)

    for i, x in enumerate(namespace_libraries):
        if i % 10 == 0:
            print("Process: %s of %s" % (i, all_cnt))

        if not (x.get('name') in subscribed_packages):
            print("Track: ", x.get('name'))
            track_changelog(config, x)
def subscribe_all_python():
    config = read_config(
        os.path.join(os.path.dirname(__file__), 'allmychanges.cfg'))

    section = 'python'

    changelogs = get_changelogs(config, tracked=True)
    subscribed_packages = [
        x['name'] for x in changelogs
        if 'namespace' in x and x['namespace'] == section
    ]

    python_libraries = search_category(config, section)

    all_cnt = len(python_libraries)

    for i, x in enumerate(python_libraries):
        if i % 10 == 0:
            print('Process: %s of %s' % (i, all_cnt))

        if not (x.get('name') in subscribed_packages):
            print('Track: ', x.get('name'))
            track_changelog(config, x)