TE
科技回声
首页24小时热榜最新最佳问答展示工作
GitHubTwitter
首页

科技回声

基于 Next.js 构建的科技新闻平台,提供全球科技新闻和讨论内容。

GitHubTwitter

首页

首页最新最佳问答展示工作

资源链接

HackerNews API原版 HackerNewsNext.js

© 2025 科技回声. 版权所有。

Python Packaging for Developers in a Hurry

3 点作者 gcarvalho超过 2 年前

2 条评论

rekahrv超过 2 年前
Thanks a lot, that&#x27;s a great intro to many useful tools. I have 2 questions.<p>Managing dependencies<p>&quot;If you’re developing a library, use nothing. Let your users decide, and give them as much flexibility as possible to maximize compatibility (don’t pin, unless to exclude some known-to-fail version ranges).&quot; What does this &quot;nothing&quot; contain? :-) A `requirements.txt`? Do you test the library with various versions of that dependency (e.g. with tox)?
评论 #34333278 未加载
rekahrv超过 2 年前
Docker<p>&quot;Using a virtual environment inside a Docker container is perhaps over-the-top, but it provides extra isolation from the base image’s own Python dependencies, and the entire &#x2F;venv folder can be copied over between stages if you need.&quot;<p>Do you have some use cases in mind when this can be handy?
评论 #34333332 未加载