Update to latest repo-template and uv
Nessuno ha ancora preso questa issue.
Valutazione
- Difficoltà
- 5/5
- Tempo stimato
- Più di una settimana
- Idoneità per principianti
- 25/100
- Tipo di issue
- Refactoring
- Chiarezza
- Abbastanza chiara
- Stato di attività
- Ferma
- Stack tecnologico
- docker, github-actions, python
- Ambito
- build-system, ci-cd, developer-experience, devops, documentation
Direzione di ricerca
Confronta il dependabot.yml, i file requirements.*, pyproject.toml, justfile, Dockerfiles, .dockerignore, la configurazione di pre-commit, DEVELOPERS.md e i workflow GHA del repository con repo-template. Inizia esaminando il template di riferimento e i file correnti del progetto, quindi esegui i comandi just elencati man mano che vengono apportate le modifiche. Il lavoro è completato quando la checklist è completa, uv.lock è stato generato, gli aggiornamenti delle dipendenze e le build Docker funzionano e i checks hanno esito positivo.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Descrizione
Refer to https://github.com/opensafely-core/repo-template
Note: you probably want to commit with --no-verify until the justfile is updated and committed; otherwise pre-commit hooks will use old justfile commands and fail confusingly.
- Update dependabot.yml for github actions to include 7 day cooldown
- Move dependencies from requirements.prod.in into pyproject.toml
[project] - Copy tool.uv section from repo-template and move dev dependencies from requirements.dev.in into pyproject.toml
[dependency groups](remove pip and pip-tools if they're in the dependencies) - Delete requirements.* files
- Add a .python-version file (if there isn't one already)
- Update justfile with repo-template recipes; note that
devenvis not required for most recipes anymore (but recipes that require a .env file may need_dotenvsetup). In addition to adding the new recipes/versions of recipes for uv, update any extra ones that do e.g.python ...touv run python ... - Run
just cleanto remove any old venv - Run
just devenv,just check/test/runto make sure things work and generate a uv.lock - Run
just update-dependenciesand check that works too, and theexclude-newertimestamp in pyproject.toml and uv.lock has been correctly updated to 7 days ago - Update pre-commit config if necessary (compare with repo-template)
- Update Dockerfiles to use uv (following repo-template Dockerfile)
- Ensure that .python-version and pyproject.toml are not ignored in the .dockerignore file
- Run just docker/build to check it's working
- Update DEVELOPERS.md to include sections from repo-template on using uv and updating dependencies
- Update GHA workflows; any jobs that use setup-action will need to add:
install-uv: true
cache: uv
But you can remove the python version unless you have anything in a workflow job that runs python without using uv.
- Lingua principale
- Python
- Stelle
- 0
- Fork
- 0
- Merge medio
- 2g 20h
- PR unite (30g)
- 9
Guida per i contributori
Nessuna guida per i contributori indicizzata per questo repository
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Altre issue di opensafely-core/osgithub
-
dependency-management
Difficoltà 2/5 1-3 ore Idoneità per principianti 74/100
opensafely-core/osgithub#289 ·
-
Difficoltà 5/5 Più di una settimana Idoneità per principianti 35/100
opensafely-core/osgithub#269 ·
-
Difficoltà 3/5 1-2 giorni Idoneità per principianti 52/100
opensafely-core/osgithub#242 ·
-
Difficoltà 5/5 Più di una settimana Idoneità per principianti 30/100
opensafely-core/osgithub#230 · 1 commento ·
-
Difficoltà 4/5 3-5 giorni Idoneità per principianti 32/100
opensafely-core/osgithub#142 ·
Tutte le issue di opensafely-core/osgithub
Issue simili
-
agent-ready documentation needs-triage
Difficoltà 1/5 1-3 ore Idoneità per principianti 88/100
-
documentation
Difficoltà 1/5 Meno di un'ora Idoneità per principianti 91/100
-
workflow-status page template still says reusable workflows are "triggered only by workflow_call:" Aperta
Difficoltà 1/5 Meno di un'ora Idoneità per principianti 92/100
-
instance instance add
Difficoltà 1/5 Meno di un'ora Idoneità per principianti 72/100
searxng/searx-instances#939 · 1 commento ·
-
area-deployment area-integrations triage:bot-seen
Difficoltà 2/5 Mezza giornata Idoneità per principianti 86/100