-
Notifications
You must be signed in to change notification settings - Fork 0
Clarify guidance on Python 3 :: Only packages #1
Comments
backgroundSince this project was published, a lot of work has been done on namespace packages. The best guidance is probably the packaging users guide on namespace packages. The tl;dr is that Fortunately, this project recommends
I'd like not to recommend a solution that dynamically provides different package layouts based on different Pythons. That would mean, for example, that they would have to publish different wheels for different Python versions. I can conceive of how it could be possible, but I've not seen it in the wild and I don't think it's worth the trouble. Instead, I'd recommend that packages (primarily) use native namespace packages if their package requires Python 3.3 or later, but if their package supports Python 3.2 or earlier, it should use How does that sound? |
On further consideration, I'm reluctant to recommend native namespace packages until some of the kinks get ironed out. There are issues like pytest-dev/pytest#3396, which mean that pytest doesn't work with native namespace packages. I was going to recommend |
Thank you for doing all of this research! I'm glad that the existing I will invite you to become a contributor to this repository, so that you can make progress against the new issues you’ve opened. Once you’re ready to release (it's fine if that's not for a while — if we're not ready for PEP 420 yet, maybe things stay as they are on PyPI?), I can head over to PyPI and try to figure out what to press to give you permission to release the package yourself for the first time! We need to catch up sometime! Hopefully we'll see each other at a conference sometime next year. |
In jaraco/backports.entry_points_selectable#5, Brandon raised the concern about packages that are Python 3 only (or that have PEP 420 support, i.e. Python >= 3.3). I can provide some background on the concern and some proposals here.
The text was updated successfully, but these errors were encountered: