<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>PyPI on Chen Kai Blog</title><link>https://www.chenk.top/en/tags/pypi/</link><description>Recent content in PyPI on Chen Kai Blog</description><generator>Hugo</generator><language>en</language><lastBuildDate>Sun, 24 Apr 2022 09:00:00 +0000</lastBuildDate><atom:link href="https://www.chenk.top/en/tags/pypi/index.xml" rel="self" type="application/rss+xml"/><item><title>Python Engineering (7): Packaging — From pip install to PyPI</title><link>https://www.chenk.top/en/python-engineering/07-packaging-and-distribution/</link><pubDate>Sun, 24 Apr 2022 09:00:00 +0000</pubDate><guid>https://www.chenk.top/en/python-engineering/07-packaging-and-distribution/</guid><description>&lt;p>You wrote a useful utility. A colleague asks you to share it. You zip the folder and email it. They unzip it, run &lt;code>python main.py&lt;/code>, and get &lt;code>ModuleNotFoundError&lt;/code> because they do not have the dependencies. Then they install the dependencies, but the wrong versions. Then they have Python 3.8 and your f-string walrus operators do not parse.&lt;/p>
&lt;p>Proper packaging eliminates all of this. With &lt;code>pip install your-tool&lt;/code>, everything just works: correct dependencies, correct versions, and a clean CLI command.&lt;/p></description></item></channel></rss>