Skip to content

Commit a517307

Browse files
Update project_metadata.md
1 parent a3c3388 commit a517307

File tree

1 file changed

+29
-0
lines changed

1 file changed

+29
-0
lines changed

episodes/project_metadata.md

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -108,6 +108,35 @@ Here you can specify various steps that you would want to run before making your
108108
# This command will only be defined on Windows
109109
greet = { cmd = "echo 'Happy Python Packaging!'" }
110110
```
111+
Final `pyproject.toml` should look like this below, for reference.
112+
113+
```toml
114+
[project]
115+
authors = [{name = "Priyanka O"}]
116+
dependencies = []
117+
name = "po_greet_me"
118+
requires-python = ">= 3.11"
119+
version = "0.1.2"
120+
description = "greet_me Pixi-managed package"
121+
122+
[build-system]
123+
build-backend = "hatchling.build"
124+
requires = ["hatchling"]
125+
126+
[tool.hatch.build.targets.wheel]
127+
packages = ["my_package"]
128+
129+
[tool.pixi.workspace]
130+
channels = ["conda-forge"]
131+
platforms = ["linux-64"]
132+
133+
[tool.pixi.pypi-dependencies]
134+
greet_me = { path = ".", editable = true }
135+
requests = ">=2.32.5,<3"
136+
137+
[tool.pixi.tasks]
138+
greet = { cmd = "echo 'Happy Python Packaging!'" }
139+
```
111140
::::::::::::::::::::::::::::::::::::: keypoints
112141
- Need to have a `pyproject.toml` file
113142
- Need to have `[build-system]` section with `requires` and `build-backend` specfied.

0 commit comments

Comments
 (0)