No project description provided
Project description
Poetry CI Updater
This package is intended to help integrating poetry with your CI.
It will create a new branch where it will push the updated poetry.lock to. If your git provider is supported, it will also create a pull/merge request.
Installation
Pypi
poetry add --dev poetry-ci-updater
Git
poetry add --dev git+https://github.com/MarcoGlauser/poetry-ci-updater@master
Usage
Gitlab
Because Gitlab currently can't write to the repository with the $CI_JOB_TOKEN, you will need to define a secret enviroment variable with the name PERSONAL_ACCESS_TOKEN.
update-dependencies:
stage: build
image: python:3.8
before_script:
- git config user.email "{$GITLAB_USER_EMAIL}"
- git config user.name "${GITLAB_USER_NAME}"
script:
- pip install poetry
- git remote rm origin
- git remote add origin https://gitlab-ci-token:${PERSONAL_ACCESS_TOKEN}@${CI_SERVER_HOST}:${CI_SERVER_PORT}/${CI_PROJECT_PATH}.git
- CI_JOB_TOKEN=${PERSONAL_ACCESS_TOKEN} poetry run poetry-ci-updater
rules:
- if: $CI_PIPELINE_SOURCE == "schedule"
TODO
- Github Actions support
- Tests
- Provider Options
- Keep update branch up to date
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Close
Hashes for poetry_ci_updater-0.1.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | a0a7fba82add7082384d7a305b29b4eedf2a5f0424acef60aaacbfb6f606197f |
|
MD5 | 0db549a1a93e0488e5a1cf804d29a442 |
|
BLAKE2b-256 | 73030e5d84a50fafb5a47608ac6a2b4d491ffc7970279d6a77079a4a8f966f12 |