FAQ | This is a LIVE service | Changelog

Skip to content

Commits on Source 6

  • Dr Rich Wareham's avatar
    feat: template minimum version numbers for dependencies · 5e998990
    Dr Rich Wareham authored
    In #98 some of the challenges with having renovate keep dependencies
    fresh in this repo were discussed. In particular the contents of the
    template/ directory are, well, templated and so there's no guarantee
    that renovatebot will be able to parse them. Even if we made them
    parseable, it's hard to enforce continued parse-ability in CI.
    
    Instead, lean in to the templating approach by adding files which
    renovatebot *can* parse specify the minimum version requirements and
    have copier read from that file to populate the requirements within the
    template.
    
    Fortunately the copier installed alongside renovatebot has support for
    copier-templates-extensions installed which, in turn, allows adding
    custom extensions to the template context via Python scripts inside the
    template repo.
    
    Combine both things together: we now have `template*requirements.txt`
    files which renovatebot *can* parse and update which are used to
    replace constructions such as `{{ deps.somepackagename.version }}` in
    the `pyproject.toml` and `.gitlab/webapp.gitlab-ci.yml` files. When
    renovatebot updates the `template*requirements.txt` files, the templates
    will automatically make use of the new minimum versions.
    
    Note that these are always *minimum* versions. We don't want to stop
    renovate from being able to _additionally_ update dependencies in
    templated repos even if a new version of the template with bumped
    dependencies hasn't been released.
    
    Add some configuration to `renovate.json` to reduce the number of MRs
    likely to be raised by renovate to a manageable rate.
    
    [1] https://github.com/renovatebot/renovate/discussions/34368
    5e998990
  • Dr Rich Wareham's avatar
    Merge branch 'keep-dependencies-fresh' into 'master' · 7cdcb525
    Dr Rich Wareham authored
    feat: template minimum version numbers for dependencies
    
    See merge request !103
    7cdcb525
  • Dr Rich Wareham's avatar
    fix(template-devops-requirements): tweak index-url for renovatebot · a8f2a7f3
    Dr Rich Wareham authored
    Renovatebot *should* understand `--index-url` in `requirements.txt`
    files but the renovatebot docs[1] explicitly call out that it needs to
    be the first line. Our files have it as the first *effective* line after
    comments but, to be pedantic, it's not the first *physical* line. Update
    the `--index-url` usage to match the renovatebot docs.
    
    [1] https://docs.renovatebot.com/python/#index-url-in-requirementstxt
    a8f2a7f3
  • Dr Rich Wareham's avatar
    Merge branch 'fix-renovate-devops-deps' into 'master' · 3746d7d1
    Dr Rich Wareham authored
    fix(template-devops-requirements): tweak index-url for renovatebot
    
    See merge request !104
    3746d7d1
  • Dr Rich Wareham's avatar
  • Dr Rich Wareham's avatar
    Merge branch 'release-fresh-deps' into 'master' · e21a628b
    Dr Rich Wareham authored
    chore(CHANGELOG): record that renovate now manages deps
    
    See merge request !105
    e21a628b
Loading