Opened 4 months ago

Last modified 3 months ago

#36402 closed Cleanup/optimization

Typo in generated tarball in packaging your app tutorial — at Version 1

Reported by: 李明 Owned by:
Component: Documentation Version: dev
Severity: Normal Keywords:
Cc: Triage Stage: Ready for checkin
Has patch: yes Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: yes UI/UX: no

Description (last modified by Sarah Boyce)

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 (1)

comment:1 by Sarah Boyce, 4 months ago

Description: modified (diff)
Summary: 文档小bugTypo in generated tarball in packaging your app tutorial
Triage Stage: UnreviewedAccepted
Type: UncategorizedCleanup/optimization
Version: 5.1dev

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

Note: See TracTickets for help on using tickets.
Back to Top