Skip to content

Commit bc2a4db

Browse files
authored
Use source layout (#16)
* Use source layout * Apply suggestions from code review * Fix makefile
1 parent 4cd4c5e commit bc2a4db

File tree

6 files changed

+7
-4
lines changed

6 files changed

+7
-4
lines changed

.github/workflows/build_docs.yml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,7 @@ jobs:
1717
python-version: "3.10"
1818

1919
- name: Install dependencies
20-
run: |
21-
python -m pip install ".[docs]"
20+
run: python -m pip install ".[docs]"
2221
- name: Build docs
2322
run: make doc
2423

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ doc: # Generate Sphinx HTML documentation, including API docs
33
# It has been added to _toc.yml as root
44
cp README.md docs/README.md
55
# We want to use the demos in the book, we convert them with jupytext and copy them to the documentation
6-
jupytext --to=ipynb demos/demo.py --output=docs/demo.ipynb
6+
jupytext --to=ipynb demo/demo.py --output=docs/demo.ipynb
77
jupyter book build docs
88

99
clean-pytest: # Remove output from pytest
File renamed without changes.

pyproject.toml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,11 @@
22
requires = ["setuptools>=62.1.0", "wheel"]
33

44
[tool.setuptools]
5-
py-modules = ["mypackage"]
5+
package-dir = {"" = "src"}
6+
7+
[tool.setuptools.packages.find]
8+
where = ["src"]
9+
610

711
[project]
812
name = "mypackage"
File renamed without changes.
File renamed without changes.

0 commit comments

Comments
 (0)