|
Size: 737
Comment:
|
Size: 949
Comment:
|
| Deletions are marked like this. | Additions are marked like this. |
| Line 43: | Line 43: |
== Other example == {{{ hello_project/ ├── pyproject.toml ├── Makefile ├── .gitignore ├── src/ │ └── main.py └── tests/ └── test_main.py }}} |
pyproject.toml
Replaces requirements.txt
To install pip install -e .
my_project/
├── pyproject.toml
└── my_package/
├── __init__.py
└── main.py[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"]
Other example
hello_project/
├── pyproject.toml
├── Makefile
├── .gitignore
├── src/
│ └── main.py
└── tests/
└── test_main.py