TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

Python Packaging for Developers in a Hurry

3 pointsby gcarvalhoover 2 years ago

2 comments

rekahrvover 2 years ago
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 未加载
rekahrvover 2 years ago
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 未加载