Addition of Poetry to "Using virtualenvs..." section
Dieses Issue hat noch niemand übernommen.
Bewertung
- Schwierigkeit
- 4/5
- Geschätzter Aufwand
- 3-5 Tage
- Anfängerfreundlichkeit
- 38/100
- Issue-Typ
- Dokumentation
- Klarheit
- Größtenteils klar
- Aktivitätsstatus
- Veraltet
- Tech-Stack
- python
- Bereich
- documentation
Rechercherichtung
Die Anfrage bezieht sich auf den Abschnitt „Using virtualenvs...“ des Leitfadens und verweist auf Poetry; lies zunächst diesen Abschnitt und die umgebenden Hinweise zur Abhängigkeitsverwaltung. Kläre den Umfang und die Kompatibilitätsvorbehalte und aktualisiere dann den Leitfaden, damit seine Behandlung von Poetry und dessen Einschränkungen ausdrücklich ist.
Vom Indexierungsmodell aus dem Issue-Text verfasst.
Beschreibung
Hi there, thank you for all the work put into this guide so far!
Are there any discussions or plans to mention Poetry anywhere in this guide (I couldn't find any previous issues on this)?
Rationale
I think poetry solves a huge missing piece in the Python ecosystem. For any node.js developers, it is similar to npm and yarn. For many newcomers to the language, the way python does dependency management and virtual environments has a very high learning curve.
Poetry introduces (over traditional pip based package management):
- A unified project manifest
pyproject.tomlcontaining dependencies and build information - Introduces a
poetry.lockfile that pins dependency versions (a better alternative thanpip freezeIMO) - Avoids installing dependencies globally (poetry automatically creates a virtualenv and installs project dependencies there)
- Using
poetry runexecutes commands automatically in the proper virtualenv context (no more needing tosource venv/bin/activate)
And plenty more that I'm sure I am not listing here...
Limitations
As with any new technology, there are some limitations:
- Poetry is dropping support for Python 2.7 and 3.5 in the next release
- Lots of older tutorials and resources probably do not use it, which could confuse beginners even more
Thoughts on this? Would be happy to help contribute wherever I can.
- Vorherrschende Sprache
- Batchfile
- Sterne
- 29.8k
- Forks
- 5.9k
- PR-Merge-Kennzahlen
- Keine gemergten PRs in 30 T.
Beitragsleitfaden
Erste Schritte
- Lesen Sie das ganze Issue und danach den Beitragsleitfaden des Projekts.
- Schreiben Sie ins Issue, dass Sie es übernehmen — das erspart doppelte Arbeit.
- Forken Sie das Repository und arbeiten Sie in einem Branch.
- Öffnen Sie einen Pull Request, der die Issue-Nummer nennt.
Mehr aus realpython/python-guide
-
Page 404 error Offen
Schwierigkeit 1/5 Unter einer Stunde Anfängerfreundlichkeit 65/100
realpython/python-guide#1104 · 2 Kommentare ·
-
Schwierigkeit 1/5 1-3 Stunden Anfängerfreundlichkeit 62/100
realpython/python-guide#327 ·
-
PyZMQ improvements Offen
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 62/100
realpython/python-guide#326 · 5 Kommentare ·
-
@alex Offen
Schwierigkeit 5/5 Über eine Woche Anfängerfreundlichkeit 10/100
realpython/python-guide#1194 ·
-
Development Team SAP Offen
Schwierigkeit 5/5 Über eine Woche Anfängerfreundlichkeit 10/100
realpython/python-guide#1192 ·
Alle Issues in realpython/python-guide
Ähnliche Issues
-
Link Checker Report Offenautomated issue report
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 78/100
felladrin/uo-is-not-dead#176 · 1 Kommentar ·
-
Add link for tutorial Offendocumentation
Schwierigkeit 1/5 Unter einer Stunde Anfängerfreundlichkeit 78/100
Qiskit/qiskit-addon-sqd#376 ·
-
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 75/100
Seeed-Studio/wiki-documents#5655 · 2 Kommentare ·
-
type:content-error
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 72/100
stephrobert/blog-roadmap#15 ·
-
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 82/100