Metadata-Version: 2.4
Name: hello-world-package-ue
Version: 1.0.0
Summary: A demo package for the Universidad Europea Deployment course.
License-Expression: MIT
License-File: LICENSE
Author: semapu
Author-email: sergi.mas@universidadeuropea.es
Requires-Python: >=3.13
Classifier: Programming Language :: Python :: 3
Classifier: License :: OSI Approved :: MIT License
Classifier: Operating System :: OS Independent
Description-Content-Type: text/markdown

Version: 1.0.0

Last update: 15/05/2026

# Summary

This readme contians the main steps to publish a package to PyPI using GitHub Actions and OIDC

--------------------------------------------------

# Environment

Create a virtual environemnt:

> python -m venv venv

Activate the venv:
> venv\Scripts\activate

Create and install requirements
> pip install -r requirements.txt

--------------------------------------------------

# Package

Install poetry
> pip install poetry

Create a new package
> poetry new hello-world-package

Add dependencies
> poetry add <dependency>

Build the package
> poetry build

OIDC (OpenID Connect):
- We told PyPI: "I trust any request that comes from my specific GitHub repository if it has the id-token: write permission". 
- No passwords needed. It’s the highest level of security available today. 
- To configurate it in PyPI visit:
> https://pypi.org/manage/account/publishing/

Automation (GitHub Actions):
- The .github/workflows/publish.yml file is your Robot Assistant
    - on: push: The robot sleeps until it sees you push code to main.
    - runs-on: ubuntu-latest: GitHub rents a clean computer in the cloud for you.
    - The Steps: The robot downloads your code, installs Python 3.13, builds the IKEA boxes (poetry build), and sends them to PyPI using the official "shipping agent" (pypa/gh-action-pypi-publish).

--------------------------------------------------

