Skip to content

Commit

Permalink
moved package to src/
Browse files Browse the repository at this point in the history
  • Loading branch information
janscience committed Apr 19, 2024
1 parent 2c18366 commit c587854
Show file tree
Hide file tree
Showing 16 changed files with 8 additions and 6 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/runchecks.yml
Expand Up @@ -35,7 +35,7 @@ jobs:
shell: bash

- name: Run tests
run: python3 -m pytest -v --cov-report xml --cov-report html:cover --cov-report term --cov audioio tests/
run: pytest -v --cov-report xml --cov-report html:cover --cov-report term --cov audioio tests/
shell: bash

- name: Build documentation
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/uploaddocs.yml
Expand Up @@ -32,7 +32,7 @@ jobs:
pip install -r requirements.txt
- name: Run tests
run: python3 -m pytest -v --cov-report xml --cov-report html:cover --cov-report term --cov audioio tests/
run: pytest -v --cov-report xml --cov-report html:cover --cov-report term --cov audioio tests/
shell: bash

- name: Build documentation
Expand Down
3 changes: 2 additions & 1 deletion build-docs.sh
Expand Up @@ -9,6 +9,7 @@ for cmd in mkdocs pdoc3; do
done

PACKAGE="audioio"
PACKAGESRC="src/$PACKAGE"
PACKAGEROOT="$(dirname "$(realpath "$0")")"
BUILDROOT="$PACKAGEROOT/site"

Expand Down Expand Up @@ -58,7 +59,7 @@ if command -v pdoc3 >/dev/null; then
echo

cd "$PACKAGEROOT"
pdoc3 --html --config latex_math=True --config sort_identifiers=False --output-dir "$BUILDROOT/api-tmp" $PACKAGE
pdoc3 --html --config latex_math=True --config sort_identifiers=False --output-dir "$BUILDROOT/api-tmp" $PACKAGESRC
mv "$BUILDROOT/api-tmp/$PACKAGE" "$BUILDROOT/api"
rmdir "$BUILDROOT/api-tmp"
cd - > /dev/null
Expand Down
3 changes: 3 additions & 0 deletions pyproject.toml
Expand Up @@ -47,3 +47,6 @@ audiomodules = "audioio.audiomodules:main"

[tool.setuptools.dynamic]
version = {attr = "audioio.version.__version__"}

[tool.pytest.ini_options]
pythonpath = "src"
4 changes: 1 addition & 3 deletions setup.py
@@ -1,5 +1,3 @@
from setuptools import setup

setup(
packages = ['audioio']
)
setup()
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 c587854

Please sign in to comment.