Loading .gitlab-ci.yml 0 → 100644 +39 −0 Original line number Diff line number Diff line image: python:3.12 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 - python -m pip install build - python -m build artifacts: paths: - 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" script: - python -m pip install --upgrade pip - python -m pip install twine - twine upload dist/* environment: name: pypi url: "https://pypi.org/project/provider-gw/$CI_COMMIT_TAG" setup.py +4 −4 Original line number Diff line number Diff line Loading @@ -2,10 +2,10 @@ from setuptools import setup, find_packages setup( name="provider_gw", version="0.1", author="JorgeEcheva", url="https://github.com/Telefonica/pesp_provider_gw", author_email="jorge.echevarriauribarri.practicas@telefonica.com", version="0.2", author="pelayoToAl", url="https://labs.etsi.org/rep/ocf/provider-gateway.git", author_email="pelayo.torresalonso@telefonica.com", description="PROVIDER_GW is a component designed to facilitate the integration of legacy systems with the Common API Framework (CAPIF).", long_description=open("README.md").read(), long_description_content_type="text/markdown", Loading Loading
.gitlab-ci.yml 0 → 100644 +39 −0 Original line number Diff line number Diff line image: python:3.12 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 - python -m pip install build - python -m build artifacts: paths: - 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" script: - python -m pip install --upgrade pip - python -m pip install twine - twine upload dist/* environment: name: pypi url: "https://pypi.org/project/provider-gw/$CI_COMMIT_TAG"
setup.py +4 −4 Original line number Diff line number Diff line Loading @@ -2,10 +2,10 @@ from setuptools import setup, find_packages setup( name="provider_gw", version="0.1", author="JorgeEcheva", url="https://github.com/Telefonica/pesp_provider_gw", author_email="jorge.echevarriauribarri.practicas@telefonica.com", version="0.2", author="pelayoToAl", url="https://labs.etsi.org/rep/ocf/provider-gateway.git", author_email="pelayo.torresalonso@telefonica.com", description="PROVIDER_GW is a component designed to facilitate the integration of legacy systems with the Common API Framework (CAPIF).", long_description=open("README.md").read(), long_description_content_type="text/markdown", Loading