Skip to content

Commit 0ad1797

Browse files
More src migration + format
Co-authored-by: David Pérez-Suárez <[email protected]>
1 parent 1a57dbb commit 0ad1797

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

ch04packaging/03Packaging.ipynb.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -129,7 +129,7 @@
129129
# In this case, we'll be using `hatch` to build our package, so we list it in the `requires` field. Technically speaking, `hatch` is the front-end (a CLI utility)
130130
# for the actual build-backend `hatchling`. `hatchling` is installed with hatch and can be specified as the `build-backend` in `pyproject.toml`.
131131
#
132-
# Finally, we can set specific options for `hatch` using additional sections in `pyproject.toml`: in this case, we will tell `hatch` that it needs to find **and include** all of the files in our `greetings` folder.
132+
# Finally, we can set specific options for `hatch` using additional sections in `pyproject.toml`: in this case, we will tell `hatch` that it needs to find **and include** all of the files in our `src` folder.
133133
# The best way to look at all the options of a build-backend is by going through its documentation.
134134

135135
# %%
@@ -151,6 +151,7 @@
151151
# %% [markdown]
152152
# Some of the build-backends allow users to automate the package's version using VCS.
153153
# For instance, you might want to look into [`hatch-vcs`](https://github.com/ofek/hatch-vcs) to enable VCS versioning with `hatch`.
154+
#
154155
# We can now install this "package" with pip (make sure `hatch` is installed):
155156

156157
# %% language="bash"
@@ -410,7 +411,7 @@ def process():
410411

411412
[tool.hatch.build.targets.sdist]
412413
include = [
413-
"greetings/",
414+
"src/",
414415
]
415416

416417

0 commit comments

Comments
 (0)