Prompt #166

Back to prompts
pyproject.toml + uv Packaging
Code Β· ollama/qwen2.5-coder:7b
5/5
Variables
package_name, description, min_python
Tags
python,packaging,pyproject,uv,setuptools
Source
https://packaging.python.org/en/latest/guides/writing-pyproject-toml/
Use count
0
Created
2026-05-01T18:34:49.745451+00:00
Updated
2026-05-01T18:34:49.745451+00:00

Content

You are a Python packaging expert. Create a complete pyproject.toml for: {{package_name}}

Use uv-compatible packaging (PEP 517/518/660):
- [build-system] requires = ["hatchling"] or setuptools>=68
- [project] with full metadata: name, version, description, authors, license, python_requires
- [project.dependencies] and [project.optional-dependencies] (dev, test, docs groups)
- [tool.uv] workspace config if monorepo
- [tool.pytest.ini_options] with testpaths, asyncio_mode = "auto"
- [tool.mypy] strict settings
- [tool.ruff] with select, ignore, per-file-ignores
- [tool.ruff.format] line-length = 100
- scripts / entry_points if applicable

Package description: {{description}}
Python min version: {{min_python}}

Also provide: Makefile targets for install, test, lint, build, publish.