pypi:
    image:
        name: pretix/ci-image
    before_script:
        - cat $PYPIRC > ~/.pypirc
        - pip install -U pip uv
        - uv pip install --system -U wheel setuptools twine build pretix-plugin-build check-manifest
    script:
        - python -m build
        - check-manifest .
        - twine check dist/*
        - twine upload dist/*
    only:
        - pypi
    artifacts:
        paths:
            - dist/