nav-union
Bibliotek for å forenkle oppsett av Union tasks og abstrahere bort Nav-spesifikk konfigurasjon for image config.
Eksempel på bruk
import flyte
from nav_union.utils import default_image
from nav_union.slack import flyte_task
image = default_image()
image = image.with_uv_project(pyproject_file="pyproject.toml")
image = image.with_env_vars({"test": "test"})
env = flyte.TaskEnvironment(
name="my_env",
image=image,
...
)
@flyte_task(task_environment=env, channel_name="kom-i-gang-med-union", notify_on_failure=True)
def my_task():
print("Hello World!")
Tester
Kjør testene lokalt med:
uv sync --locked
uv run --locked pytest
Testene krever ikke Slack-token, Union-tilgang eller bygging av container-images. GitHub Actions kjører dem på Python 3.12 og 3.14 ved push og pull requests.
Ny release
Lag og push en ny versjonstag på formen 0.2.0:
git tag 0.2.0
git push origin 0.2.0
Tag-pushen oppretter en GitHub Release med automatisk genererte release notes og publiserer pakken til PyPI.
Metadata
Release files for nav-union 0.2.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| nav_union-0.2.0.tar.gz | 2.9 kB | With provenance | Details for nav_union-0.2.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| nav_union-0.2.0-py3-none-any.whl | Python 3 | none | any | Details for nav_union-0.2.0-py3-none-any.whl |
Total release size: 6.8 kB
Security for nav-union 0.2.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
Full provenance
Both files in this release have been uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.