Loading .gitlab-ci.yml +0 −4 Original line number Diff line number Diff line Loading @@ -4,11 +4,9 @@ stages: - build - publish # Job 1: construir las distribuciones (sdist/wheel) build_release: stage: build rules: # Solo ejecuta cuando es un tag (similar a "release published") - if: '$CI_COMMIT_TAG' script: - python -m pip install --upgrade pip Loading @@ -19,14 +17,12 @@ build_release: - dist/ expire_in: 1 week # Job 2: publicar en PyPI pypi_publish: stage: publish needs: - build_release rules: - if: '$CI_COMMIT_TAG' # Usa un token de PyPI almacenado en variables de CI/CD variables: TWINE_USERNAME: "__token__" TWINE_PASSWORD: "$PYPI_API_TOKEN" Loading setup.py +2 −2 Original line number Diff line number Diff line from setuptools import setup, find_packages setup( name="provider_gw", version="0.2", name="provider_gateway", version="0.1.0", author="pelayoToAl", url="https://labs.etsi.org/rep/ocf/provider-gateway.git", author_email="pelayo.torresalonso@telefonica.com", Loading Loading
.gitlab-ci.yml +0 −4 Original line number Diff line number Diff line Loading @@ -4,11 +4,9 @@ stages: - build - publish # Job 1: construir las distribuciones (sdist/wheel) build_release: stage: build rules: # Solo ejecuta cuando es un tag (similar a "release published") - if: '$CI_COMMIT_TAG' script: - python -m pip install --upgrade pip Loading @@ -19,14 +17,12 @@ build_release: - dist/ expire_in: 1 week # Job 2: publicar en PyPI pypi_publish: stage: publish needs: - build_release rules: - if: '$CI_COMMIT_TAG' # Usa un token de PyPI almacenado en variables de CI/CD variables: TWINE_USERNAME: "__token__" TWINE_PASSWORD: "$PYPI_API_TOKEN" Loading
setup.py +2 −2 Original line number Diff line number Diff line from setuptools import setup, find_packages setup( name="provider_gw", version="0.2", name="provider_gateway", version="0.1.0", author="pelayoToAl", url="https://labs.etsi.org/rep/ocf/provider-gateway.git", author_email="pelayo.torresalonso@telefonica.com", Loading