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