March 5, 2021

How to Find All Repositories in a GitHub Organization Which Do Not Follow the Src Layout?

Let’s say, while not everybody is convinced, that the so-called src layout is a great idea, at least it is a trend in the Python eco system. And, e.g. Hynek has written about good reasons to use the src layout. While my personal and work repositories (mostly) follow the src layout, what about the almost 300 Zope repositories? all-repos to the rescue I really love to play with all-repos, an awesome tool to manage and manipulate a large amount of git repositories....

January 11, 2021

How to Install a Python Package Directly From a Git Branch From GitHub

Bernát Gábor is currently working on a complete rewrite for tox. I alpha-tested the latest release (4.0.0a2), and reported a couple of problems. Within a day Bernát published some fixes on the rewrite branch, and asked me to test it. That means there is no new package on PyPI, yet. So, I had to install tox directly from GitHub, to be exact, from the rewrite branch: pip install git+https://github.com/tox-dev/tox@rewrite or more general...

July 23, 2020

Why Is Setuptools a Runtime Dependency

… or in other words… Why is this snippet part of setup.py in all Zope projects? install_requires = 'setuptools', This sounds weird at first, but there is good reason. setuptools provides pkg_resources, and the latter is used in __init__.py, in order to declare a namespace package. __import__('pkg_resources').declare_namespace(__name__) Still confused? While pkg_resources-style namespace packages are no longer recommended for new projects, this approach was used to split large packages, and retrieve the contents from more than one location....