Posts tagged python

Migrating Python setup.cfg / setup.py to pyproject.toml

This is how I migrate my old style of Python project setup using setup.cfg and setup.py to pyproject.toml using uv and setuptools.

Before, I used pyenv with .python-project containing the name of a project-specific Python version to switch automatically on cd’ing to the project directory.

Read more ...


setup.cfg –> pyproject.toml

https://pypi.org/project/ini2toml/

Read more ...


Words Written This Year

The year is coming to an end. I promised myself to write more, so now would be a good time to count things, that is: words. Let’s count words!

I tried a top-down approach a while ago, but it did not work out, because I got side-tracked with technicalities. Let’s try a bottom-up approach this time.

Read more ...


Python Ellipsis

You can use the ellipsis literal ... to show the general structure of some code while keeping it valid Python, e.g.:

src/ellipsis.py

Read more ...