python / python/release-tools

Enable a `latest` symlink on the ftp index

Offen
#145 0 Kommentare 1 Reaktion 0 zugewiesene Personen Auf GitHub ansehen

Dieses Issue hat noch niemand übernommen.

Vorherrschende Sprache
Python
Sterne
61
Forks
48
Ø Merge
1 Std. 22 Min.
Gemergte PRs (30 T.)
4

Beschreibung

Hello all 👋
I recently talked with a friend of mine (@sdelquin) and he has a specific use-case for the ftp directory on his Python seminars and usually the students are requested to download "the latest Python version" from the command-line, from which he developed a little ad-hoc script to get such function:

PYTHON_LATEST=`curl -s https://www.python.org/downloads/ | gunzip -c | grep latest | perl -nle 'print $1 if /(\d+\.\d+\.\d+)/'`
PYTHON_DOWNLOAD=https://www.python.org/ftp/python/$PYTHON_LATEST/Python-$PYTHON_LATEST.tgz

This use-case could be improved if we have a latest symlink at https://www.python.org/ftp/python/ always pointing to the latest stable release.

I'm not certain how to implement this, because I'm not aware of how the ftp index is generated, but I have the feeling it shouldn't be so complicated, considering that during the release process, the release managers can select a checkbox to say "this is the latest release".

In my experience this is nothing new, and in some other indexes it's common to find a latest symlink, like this example

Just for the record, I already talked about this with @hugovk and @ewdurbin but I'm opening an issue so the discussion can stay in one place :)

Beitragsleitfaden

Für dieses Repository ist kein Beitragsleitfaden indexiert

Erste Schritte

  1. Lies das ganze Issue und danach den Beitragsleitfaden des Projekts.
  2. Schreib ins Issue, dass du es übernimmst — das erspart doppelte Arbeit.
  3. Forke das Repository und arbeite in einem Branch.
  4. Öffne einen Pull Request, der die Issue-Nummer nennt.

Rechercherichtung

Beginne damit nachzuverfolgen, wie der FTP-Index generiert wird und wie der Release-Prozess den neuesten stabilen Release erfasst; die Beschreibung nennt keine spezifischen Dateien oder Tests. Als erledigt gilt die Aufgabe, wenn der Python-FTP-Index einen latest-Symlink bereitstellt, der auf den neuesten stabilen Release zeigt und nach Releases weiterhin korrekt ist.

Vom Indexierungsmodell aus dem Issue-Text verfasst.

Bewertung

Tech-Stack
python
Bereich
release
Issue-Typ
Feature
Schwierigkeit
4/5
Geschätzter Aufwand
3-5 Tage
Aktivitätsstatus
Veraltet
Klarheit
Größtenteils klar
Anfängerfreundlichkeit
35/100

Neue Issues direkt in Ihr Postfach

Eine kurze Übersicht über anfängerfreundliche GitHub-Issues.