Addition of Poetry to "Using virtualenvs..." section
Chưa có ai nhận issue này.
Đánh giá
- Độ khó
- 4/5
- Thời gian dự kiến
- 3-5 ngày
- Mức phù hợp với người mới
- 38/100
- Loại issue
- Tài liệu
- Độ rõ ràng
- Khá rõ ràng
- Mức độ hoạt động
- Đình trệ
- Công nghệ
- python
- Lĩnh vực
- documentation
Hướng nghiên cứu
Yêu cầu này nhắm đến phần “Using virtualenvs...” của hướng dẫn và liên kết đến Poetry; trước tiên hãy đọc phần đó cùng với các hướng dẫn xung quanh về quản lý dependency. Làm rõ phạm vi và các lưu ý về khả năng tương thích, sau đó cập nhật hướng dẫn để phần trình bày về Poetry và các hạn chế của nó được nêu rõ.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
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.
- Ngôn ngữ chính
- Batchfile
- Star
- 29.8k
- Fork
- 5.9k
- Chỉ số merge pull request
- Không có pull request nào được merge trong 30 ngày
Hướng dẫn đóng góp
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Issue khác của realpython/python-guide
-
Page 404 error Đang mở
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 65/100
realpython/python-guide#1104 · 2 bình luận ·
-
Độ khó 1/5 1-3 giờ Mức phù hợp với người mới 62/100
realpython/python-guide#327 ·
-
PyZMQ improvements Đang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 62/100
realpython/python-guide#326 · 5 bình luận ·
-
@alex Đang mở
Độ khó 5/5 Hơn một tuần Mức phù hợp với người mới 10/100
realpython/python-guide#1194 ·
-
Development Team SAP Đang mở
Độ khó 5/5 Hơn một tuần Mức phù hợp với người mới 10/100
realpython/python-guide#1192 ·
Tất cả issue của realpython/python-guide
Issue tương tự
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 70/100
MystenLabs/sui#28056 · 1 bình luận ·
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 76/100
-
status:untriaged
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 82/100
midnightntwrk/servicedesk#200 ·
-
type/bug
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 68/100
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 72/100
git/git-scm.com#2207 ·