Update sdist package name in reusabe apps tutorial for PEP 625
在 https://docs.djangoproject.com/zh-hans/2.0/intro/reusable-apps/ 文档链接 第8小节试着构建你自己的应用包通过 ptyhon setup.py sdist (在 django-polls
目录内)。这将创建一个名为
dist 的目录并构建你自己的应用包, django-polls-0.1.tar.gz。 python关键字拼错,让我这让的初学者很懵逼,希望能采纳改进,跟着步骤做的生成的包是django_polls-0.1.tar.gz 是 '_'而不是 '-' 导致我安装 (pip install --user django-polls/dist/django-polls-0.1.tar.gz) 一直找不到文件,希望能把这些错误优化掉,在这里我祝愿 Django团队越来越好!
In the https://docs.djangoproject.com/en/2.0/intro/reusable-apps/#packaging-your-app document link, try to build your own application package through pip setup.py sdist
(in the django-polls directory). This will create a directory called dist and build your own application package, django-polls-0.1.tar.gz
. The python keyword is misspelled, which makes me, a beginner, very confused. I hope to adopt improvements. The package generated by following the steps is django_polls-0.1.tar.gz
, which is '_' instead of '-', which caused me to install (pip install --user django-polls/dist/django-polls-0.1.tar.gz
) and I can't find the file. I hope these errors can be optimized. Here I wish the Django team better and better!
Change History
(14)
Description: |
modified (diff)
|
Summary: |
文档小bug → Typo in generated tarball in packaging your app tutorial
|
Triage Stage: |
Unreviewed → Accepted
|
Type: |
Uncategorized → Cleanup/optimization
|
Version: |
5.1 → dev
|
Owner: |
set to Jason Judkins
|
Status: |
new → assigned
|
Patch needs improvement: |
set
|
Patch needs improvement: |
unset
|
Summary: |
Typo in generated tarball in packaging your app tutorial → Update sdist package name in reusabe apps tutorial for PEP 625
|
Triage Stage: |
Accepted → Ready for checkin
|
Resolution: |
→ fixed
|
Status: |
assigned → closed
|
The documentation has updated since 2.0 to use a
pyproject.toml
file but confirmed that the built tarball has an underscore and the typo is still present there: https://docs.djangoproject.com/en/5.2/intro/reusable-apps/#packaging-your-app