Hacktoberfest 2026: le issue che i maintainer hanno segnato per ottobre, aperte e adatte ai principianti. Sfoglia le issue Hacktoberfest

Automate more of the Python upgrade

Aperta
#319 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
4/5
Tempo stimato
3-5 giorni
Idoneità per principianti
35/100
Tipo di issue
Funzionalità
Chiarezza
Abbastanza chiara
Stato di attività
Ferma
Stack tecnologico
github-actions, python

Direzione di ricerca

Leggi .github/workflows/new_python.yml per comprendere l’attuale checklist per l’upgrade di Python, quindi esamina renovate.json e decision 0022-spec-0.html. Decidi quali passaggi di supporto e Deprecation debbano essere automatizzati, registra tale decisione nel documento collegato e implementa l’automazione concordata oppure suddividi il lavoro più complesso in una nuova Issue.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

When a new python version is released we currently have the checklist in https://github.com/DiamondLightSource/python-copier-template/blob/main/.github/workflows/new_python.yml. Many of these steps could be done automatically by renovate e.g. something like:

{
  "regexManagers": [
    {
      "fileMatch": ["^\\.github/workflows/.*\\.ya?ml$"],
      "matchStrings": [
        "python-version:\\s*\

\[(?<currentVersions>[^\\]

]+)\\]

"
      ],
      "datasourceTemplate": "python",
      "depNameTemplate": "python",
      "versioningTemplate": "pep440"
    }
  ]
}

in the renovate.json should update the versions under test.

There are probably differing opinions of how much of this we do automatically, semi-automatically or manually based on risk. My preference would be to split the move into two steps:

  • Adding the new version as supported - e.g. adding it to the versions under test and to the classifiers. I would say if the tests pass then merge this w/o human input
  • Deprecating the old one. I think this does need human intervention as it's risky and there may be valid reasons it's hard. However, we can probably still get renovate to make the PR for it.

Acceptance Criteria

Lingua principale
Jinja
Stelle
25
Fork
10
Merge medio
4g 17h
PR unite (30g)
7

Guida per i contributori

Apri la guida per i contributori

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di DiamondLightSource/python-copier-template

Tutte le issue di DiamondLightSource/python-copier-template

Issue simili

Altre issue su DevOps

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.