Skip to content

Commit

Permalink
Use source layout (#16)
Browse files Browse the repository at this point in the history
* Use source layout

* Apply suggestions from code review

* Fix makefile
  • Loading branch information
jorgensd authored Sep 13, 2022
1 parent 4cd4c5e commit bc2a4db
Show file tree
Hide file tree
Showing 6 changed files with 7 additions and 4 deletions.
3 changes: 1 addition & 2 deletions .github/workflows/build_docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,7 @@ jobs:
python-version: "3.10"

- name: Install dependencies
run: |
python -m pip install ".[docs]"
run: python -m pip install ".[docs]"
- name: Build docs
run: make doc

Expand Down
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ doc: # Generate Sphinx HTML documentation, including API docs
# It has been added to _toc.yml as root
cp README.md docs/README.md
# We want to use the demos in the book, we convert them with jupytext and copy them to the documentation
jupytext --to=ipynb demos/demo.py --output=docs/demo.ipynb
jupytext --to=ipynb demo/demo.py --output=docs/demo.ipynb
jupyter book build docs

clean-pytest: # Remove output from pytest
Expand Down
File renamed without changes.
6 changes: 5 additions & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,11 @@
requires = ["setuptools>=62.1.0", "wheel"]

[tool.setuptools]
py-modules = ["mypackage"]
package-dir = {"" = "src"}

[tool.setuptools.packages.find]
where = ["src"]


[project]
name = "mypackage"
Expand Down
File renamed without changes.
File renamed without changes.

0 comments on commit bc2a4db

Please sign in to comment.