Skip to content

Commit

Permalink
ci: Update configs for src/ layout
Browse files Browse the repository at this point in the history
  • Loading branch information
tony committed Sep 11, 2022
1 parent 103f432 commit 6300aa8
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 6 deletions.
5 changes: 3 additions & 2 deletions docs/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,13 +8,14 @@
# Get the project root dir, which is the parent dir of this
cwd = Path(__file__).parent
project_root = cwd.parent
src_root = project_root / "src"

sys.path.insert(0, str(project_root))
sys.path.insert(0, str(src_root))
sys.path.insert(0, str(cwd / "_ext"))

# package data
about: t.Dict[str, str] = {}
with open(project_root / "django_docutils" / "__about__.py") as fp:
with open(src_root / "django_docutils" / "__about__.py") as fp:
exec(fp.read(), about)

extensions = [
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ authors = [

readme = "README.md"
packages = [
{ include = "django_docutils" },
{ include = "*", from = "src" },
]
classifiers = [
'Development Status :: 2 - Pre-Alpha',
Expand Down
6 changes: 3 additions & 3 deletions setup.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@ universal = 1
[flake8]
exclude = .*/,.tox,
*.egg,
django_docutils/_compat.py,
django_docutils/__*__.py,
src/django_docutils/_compat.py,
src/django_docutils/__*__.py,
*/migrations
select = E,W,F,N
max-line-length = 88
Expand All @@ -29,6 +29,6 @@ doctest_optionflags = ELLIPSIS NORMALIZE_WHITESPACE
filterwarnings =
ignore::PendingDeprecationWarning
testpaths =
django_docutils
src/django_docutils
tests
docs

0 comments on commit 6300aa8

Please sign in to comment.