Skip to content

Commit

Permalink
get rid of distutils.
Browse files Browse the repository at this point in the history
  • Loading branch information
PeterKraus committed Oct 8, 2024
1 parent 035719b commit ae6d87f
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/workflow-pages.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ jobs:
- name: Build the docs
shell: bash
run: |
sphinx-apidoc -o docs/source/apidoc src/yadg -T -M -f --templatedir=docs/apidoc_t
sphinx-apidoc -o docs/source/apidoc src/dgbowl_schemas -T -M -f --templatedir=docs/apidoc_t
sphinx-build -W -b html docs/source public/main
- uses: actions/upload-artifact@v4
with:
Expand Down
6 changes: 3 additions & 3 deletions tests/conftest.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
from distutils import dir_util
import shutil
import os
import pytest

Expand All @@ -14,9 +14,9 @@ def datadir(tmpdir, request):
filename = request.module.__file__
test_dir, _ = os.path.splitext(filename)
if os.path.isdir(test_dir):
dir_util.copy_tree(test_dir, str(tmpdir))
shutil.copytree(test_dir, str(tmpdir), dirs_exist_ok=True)
base_dir, _ = os.path.split(test_dir)
common_dir = os.path.join(base_dir, "common")
if os.path.isdir(common_dir):
dir_util.copy_tree(common_dir, str(tmpdir))
shutil.copytree(common_dir, str(tmpdir), dirs_exist_ok=True)
return tmpdir

0 comments on commit ae6d87f

Please sign in to comment.