How to create a Python package in 2022
11–20 of 153 posts
Re: How to create a Python package in 2022
#12Re: How to create a Python package in 2022
#13PyPi is adding support for GitHub OIDC for publishing packages soon, so there will be no need to generate API keys - you can just grant your GitHub Actions permissions to publish to PyPi. https://github.com/pypi/warehouse/issues/10619
Thank you for linking it! Yes, this will be a huge convenience and security win for the large number of packages that use GitHub to release new versions.
Re: How to create a Python package in 2022
#14Re: How to create a Python package in 2022
#15... Have to admit: We recently ended up contracting conda packaging out because it was nowhere near clear enough to make sense for our core team to untangle. Would love to see a similar tutorial on a github flow packaging & publishing to conda. Still no convinced we're doing it right for subtleties like optional dependencies: equivalent of `pip install graphistry` vs `pip install graphistry[ai]` vs `graphistry[umap-learn]`, etc.
Re: How to create a Python package in 2022
#16Python is a mess.
Re: How to create a Python package in 2022
#17Re: How to create a Python package in 2022
#18We've been fine-ish with classic setup.py/setup.cfg + gha for publishing to pypi. But as we do OSS data science (gpu graph ai + viz), where conda is typical nowadays... ... Have to admit: We recently ended up contracting conda packaging out because it was nowhere near clear enough to make sense for our core team to untangle. Would love to see a similar tutorial on a github flow packaging & publishing to conda. Still…
Re: How to create a Python package in 2022
#19Sigh I don't see why I need to use a 3rd party tool for what should be a very straightforward process in Python out of the box. In fact, I think these days it actually is straightforward, of course once you work out what you need to do... Python is a mess.
Re: How to create a Python package in 2022
#20Also, can't believe everyone let me get away with not writing about documentation! I'll see to it that it gets done and added to the article.