Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

refactor!: Move to src/ layout #356

Merged
merged 2 commits into from
Sep 11, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
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.
File renamed without changes.