Slides for a discussion in the PyCon US 2022 Packaging Summit. This probably won’t make much sense unless you read the minute notes. You can also find there other topics discussed during the summit.
wrong pip install package[docs,tests] any(marker.evaluate({"extra": x}) for x in extras) No other operators make sense “Negative extra” is impossible Exclude a dependency when an extra is specified 4
use help from interested folks A “default extra” specification in metadata Requires-Dist: package asks for that extra group Semantic incompatibility What happens when pip install package[another] ? package[] requests to not install the defaul group? 6