From c5c6ecb180b619f89c403bf8d12ab2e0f3a07de4 Mon Sep 17 00:00:00 2001 From: Luca Date: Thu, 14 Dec 2023 02:33:46 +0100 Subject: [PATCH] ci: replace poetry with build and twine --- .drone.yml | 15 +++++---------- 1 file changed, 5 insertions(+), 10 deletions(-) diff --git a/.drone.yml b/.drone.yml index a0cbb9d..cad94f1 100644 --- a/.drone.yml +++ b/.drone.yml @@ -17,7 +17,7 @@ steps: export PATH="$$DRONE_WORKSPACE/.venv/bin:$$PATH" - echo $$PATH - which pip - - pip install black flake8 isort poetry + - pip install black build flake8 isort twine - name: check style image: python:3.11-alpine @@ -31,21 +31,16 @@ steps: image: python:3.11-alpine commands: - *path - - poetry build - when: - event: - - pr - - push + - python -m build - - name: build and publish + - name: publish image: python:3.11-alpine commands: - *path - - poetry publish --build --repository git.luj0ga.de + - twine upload --repository-url https://git.luj0ga.de/api/packages/kontakt/pypi -u '' environment: - POETRY_PYPI_TOKEN_git.luj0ga.de: + TwINE_PASSWORD: from_secret: repo_token - POETRY_REPOSITORIES_git.luj0ga.de_URL: https://git.luj0ga.de/api/packages/kontakt/pypi when: event: - tag