Skip to main content

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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

poetry-ci-updater-0.1.0.tar.gz (4.2 kB view details)

Uploaded Source

Built Distribution

poetry_ci_updater-0.1.0-py3-none-any.whl (5.2 kB view details)

Uploaded Python 3

File details

Details for the file poetry-ci-updater-0.1.0.tar.gz.

File metadata

  • Download URL: poetry-ci-updater-0.1.0.tar.gz
  • Upload date:
  • Size: 4.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.0.3 CPython/3.8.0 Linux/5.3.0-51-generic

File hashes

Hashes for poetry-ci-updater-0.1.0.tar.gz
Algorithm Hash digest
SHA256 48671f408836b767a3c5922e31252d3e2ed8173adaa192d735dbc1ae1a6a5076
MD5 57c202a82219d4c08e0ad8461c6e32ed
BLAKE2b-256 78cd0e7b100f2652ae1e8d0b0d3c2895aa0a05a25bc3ded26a77b5bd9f70068c

See more details on using hashes here.

File details

Details for the file poetry_ci_updater-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: poetry_ci_updater-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 5.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.0.3 CPython/3.8.0 Linux/5.3.0-51-generic

File hashes

Hashes for poetry_ci_updater-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 a0a7fba82add7082384d7a305b29b4eedf2a5f0424acef60aaacbfb6f606197f
MD5 0db549a1a93e0488e5a1cf804d29a442
BLAKE2b-256 73030e5d84a50fafb5a47608ac6a2b4d491ffc7970279d6a77079a4a8f966f12

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page