|
⇤ ← Revision 1 as of 2026-02-25 08:36:29
Size: 446
Comment:
|
Size: 611
Comment:
|
| Deletions are marked like this. | Additions are marked like this. |
| Line 1: | Line 1: |
| Describe Python/pyproject.toml here. | = pyproject.toml = |
| Line 5: | Line 5: |
{{{ #!highlight python # my_package/main.py def say_hello(): print("Hello from the world of TOML-configured Python!") if __name__ == "__main__": say_hello() }}} |
pyproject.toml
Replaces requirements.txt
To install pip install -e .
[build-system] requires = ["setuptools>=61.0"] build-backend = "setuptools.build_meta" [project] name = "my_hello_app" version = "0.1.0" dependencies = [] [project.scripts] # This creates a command 'hello-world' that runs say_hello() hello-world = "my_package.main:say_hello" [tool.setuptools] packages = ["my_package"]
