Simon Willison on Nostr: I finally spent some time figuring out a minimal way of developing and packaging a ...
I finally spent some time figuring out a minimal way of developing and packaging a Python library using a pyproject.toml file
It turns out you can do it with just a pyproject.toml file - no setup.py, no setup.cfg - and the only tools you need are pip and build, with no need to use Poetry/Hatch/Flit/etc for the simplest case
https://til.simonwillison.net/python/pyprojectPublished at
2023-07-08 04:42:41Event JSON
{
"id": "735d3b76100598b93d34c5fe4d193a71a7e5e13824267760b4dc7cd15a6d01bc",
"pubkey": "8b0be93ed69c30e9a68159fd384fd8308ce4bbf16c39e840e0803dcb6c08720e",
"created_at": 1688791361,
"kind": 1,
"tags": [
[
"mostr",
"https://fedi.simonwillison.net/users/simon/statuses/110676630643269311"
]
],
"content": "I finally spent some time figuring out a minimal way of developing and packaging a Python library using a pyproject.toml file\n\nIt turns out you can do it with just a pyproject.toml file - no setup.py, no setup.cfg - and the only tools you need are pip and build, with no need to use Poetry/Hatch/Flit/etc for the simplest case\n\nhttps://til.simonwillison.net/python/pyproject",
"sig": "95475640f5d13dbcbdea00b00d1938f88a0db205a17fa421315987aa6eb33cef92e5e1f0500cb3ac2107c14f612bcb46b59a0f41fc2c75c169bcba75337eb0d3"
}