PEP 771 – Default Extras for Python Software Packages | peps.python.org

PEP 508 specifies a mini-language for declaring package dependencies. One feature of this language is the ability to specify extras, which are optional components of a distribution that, when used, install additional dependencies. This PEP proposes a me...

Python Enhancement Proposals (PEPs)

@Armavica This capability ("default extras") doesn't exist yet, but I have definitely seen a proposal for it. I hope that gets accepted and implemented at some point.

Until then, if you wind up explaining this in your package's installation instructions and telling people they have to manually select one of the three extras, you certainly wouldn't be alone. Of course it'd be ideal if your package (or keras) also checks at runtime and give a useful error message if it doesn't find any of the three dependencies installed.

#Python #PythonPackaging

How uv got so fast: https://nesbitt.io/2025/12/26/how-uv-got-so-fast.html

"uv is fast because of what it doesn’t do, not because of what language it’s written in."

#python #PythonPackaging #uv #pip #rust

How uv got so fast

uv’s speed comes from engineering decisions, not just Rust. Static metadata, dropping legacy formats, and standards that didn’t exist five years ago.

Andrew Nesbitt

For those following along on this 'exciting' saga, I did, in fact, submit a PR. It has been merged and a new version of pypostal has been released. Another OSS success story.
https://github.com/openvenues/pypostal/pull/96

#Python #PythonPackaging

Use pkgconf to find libpostal by e-nomem · Pull Request #96 · openvenues/pypostal

libpostal is available on macOS via Homebrew now and it is one of the recommended ways to install the library, but homebrew on aarch64 installs the library into /opt/homebrew/... so the hard-coded ...

GitHub

Didn't realize that homebrew finally packaged libpostal, that's awesome! Still can't use pypostal though because it has hard coded lib and include dirs that don't work with homebrew's /opt/homebrew/... prefix 😞

Also it still claims python 2 support 😬

I wonder if they'd be open to PRs…

#Python #PythonPackaging

🐍 pyOpenSci has helped 50+ Python packages get production-ready.

Now join founder @leahawasser for a 2-hour workshop to learn the same packaging practices we share in peer review.

📅 Nov 6 | 10 AM MST
🎟️ Early bird ends Oct 5 + scholarships available
🔗 bit.ly/PythonPackaging

#Python #OpenSource #OpenScience #PythonPackaging

Join our hands-on #SciPy2025 workshop led by Leah Wasser, Inessa Pawson, Carol Willing & Tetsuo Koyama.

You’ll:
✅ Build your own Python package
✅ Learn best practices
✅ Publish to TestPyPI
✅ Get packaging resources + community support

No installs needed—GitHub Codespaces works too!

📅 July 8, 8am–12pm PT
📍 Room 316, Greater Tacoma Convention Center

Workshop info: https://www.pyopensci.org/events/pyopensci-scipy25-create-python-package-workshop.html

More SciPy events: https://www.pyopensci.org/blog/pyopensci-at-scipy-2025.html

#Python #OpenSource #PyOpenSci #PythonPackaging

What is Poetry Python? Let’s Simplify Dependency Management

https://tuvocit.bloggersdelight.dk/2025/04/18/poetry-python/

Poetry is a Python tool that simplifies dependency management and packaging with ease. It streamlines project setup, ensures consistency, and helps developers maintain clean, manageable environments.

#PythonDevelopment
#PoetryPython
#DependencyManagement
#PythonTools
#PythonPackaging
#DevTools
#CleanCode
#SoftwareDevelopment
#PythonTips
#Python2025

What is Poetry Python? Let’s Simplify Dependency Management | tuvocit

The world of Python Development continues to grow at a great unprecedented pace, and as per the 2025 global developer survey, Python ranks consistently among the top three most widely used programming languages ​​globally. However though, with the growth comes a fair share of headaches, and Python d

Learn the basics of creating a Python package!
Learn about package structure, the pyproject.toml file (metadata) adding docstrings and code and using your package.

🎥 Watch now! https://youtu.be/XAq-HnPU4XM
#Python #pythonpackaging #OpenSource #openscience

Create Your First Python Package Tutorial - Everything You Need to Know | pyOpenSci

YouTube

🚨 Quick Ways to Secure Your Python PyPI Publishing Workflow! 🚨

🔒 Want to keep your package safe? Follow these 3 key security steps:

✅ Use GitHub Environments to restrict your publishing workflows
✅ Set up PyPI Trusted Publisher instead of API tokens
✅ Scan your workflows with zizmor (on PyPI) to identify security flaws

Read more in our latest blog post:
🔗 https://www.pyopensci.org/blog/python-packaging-security-publish-pypi.html

#Python #security #pythonpackaging

How to Secure Your Python Packages When Publishing to PyPI

Learn how to secure your Python package PyPI publishing workflows and protect your package from attacks. This post covers actionable steps, using PyPI Trusted Publisher, and sanitizing workflows, to ensure your projects stay safe.

pyOpenSci