Skip to content

Commit

Permalink
More src migration + format
Browse files Browse the repository at this point in the history
Co-authored-by: David Pérez-Suárez <[email protected]>
  • Loading branch information
Saransh-cpp and dpshelio authored Aug 12, 2024
1 parent 1a57dbb commit 0ad1797
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions ch04packaging/03Packaging.ipynb.py
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,7 @@
# 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)
# for the actual build-backend `hatchling`. `hatchling` is installed with hatch and can be specified as the `build-backend` in `pyproject.toml`.
#
# 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.
# 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.
# The best way to look at all the options of a build-backend is by going through its documentation.

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

# %% language="bash"
Expand Down Expand Up @@ -410,7 +411,7 @@ def process():

[tool.hatch.build.targets.sdist]
include = [
"greetings/",
"src/",
]


Expand Down

0 comments on commit 0ad1797

Please sign in to comment.