From 30b256c9584ff80bf312d083c1df7d6a0fd8f350 Mon Sep 17 00:00:00 2001 From: Ariel Kwiatkowski Date: Wed, 17 Jan 2024 19:59:06 +0100 Subject: [PATCH] Update build scripts --- .gitlab-ci.yml | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index bb3e575..83da95f 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -34,7 +34,7 @@ shfmt: - python -m venv .venv - source .venv/bin/activate - pip install -r requirements.txt - - pip install -e . + - pip install -e .[all] cache: - paths: - .cache/pip @@ -49,10 +49,7 @@ build_sdist: extends: .base stage: build script: - - echo "to be implemented" - # TODO - # - python -m build - # - twine check dist/* + - hatch build artifacts: expire_in: 1 week paths: @@ -65,6 +62,6 @@ publish_to_pypi: needs: - build_sdist script: - - python -m twine upload dist/* --non-interactive -u $PYPI_USERNAME -p $PYPI_PASSWORD + - hatch publish -u $PYPI_USERNAME -a $PYPI_PASSWORD rules: - if: $CI_COMMIT_TAG