Skip to content

Commit

Permalink
Devops: move package into the src/ subdirectory (#119)
Browse files Browse the repository at this point in the history
This structure is what is recommended by the Python documentation:

   https://packaging.python.org/en/latest/tutorials/packaging-projects/#creating-the-package-files

There are a number of benefits for this structure and will prevent a
variety of problems with package installations. As a result, many
important packages in the Python ecosystem have started to adopt this
package structure.
  • Loading branch information
sphuber committed Oct 13, 2022
1 parent 237fbe4 commit 37538d0
Show file tree
Hide file tree
Showing 17 changed files with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/source/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -228,7 +228,7 @@ def run_apidoc(app):
source_dir = Path(os.path.abspath(__file__)).parent
apidoc_dir = source_dir / 'apidoc'
apidoc_dir.mkdir(exist_ok=True)
package_dir = source_dir.parent.parent / 'kiwipy'
package_dir = source_dir.parent.parent / 'src' / 'kiwipy'

# we write to a temporary folder first then only move across files that have changed
# this ensures that document rebuilds are not triggered every time (due to change in file mtime)
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

0 comments on commit 37538d0

Please sign in to comment.