3 points · by sysk · 12y ago · 3 comments
Compare this with Node's npm and package.json. I'm almost considering giving up Python at this point just due to the apparent complexity of package management.
Is it just me? Is it not such a big deal in practice? Anyone else coming from Node.js land got confused by Python's package system?
For the little of npm I've seen its equivalent is pip, and package.json maybe pip's requirements files.
[1] https://packaging.python.org/en/latest/current.html [2] https://packaging.python.org/en/latest/glossary.html
So if I understand correctly, the usual workflow is to create a distribution for your source code using setuptools (python setup.py sdist) and then upload them to Pypi using (python setup.py upload) or using Twine (twine upload dist/*). The uploaded distributions can then be installed by third party users by using pip (pip install somedistname).
* You are right on the usual workflow
* I haven't used Twine so I can't comment on it
Additional things you might want to look into:
* Using ssh[2] to upload to PyPI
* Signing distributions with OpenPGP