Skip to content

Commit

Permalink
Adopt src code layout
Browse files Browse the repository at this point in the history
Also ensures that .tox/.doctrees tmp location is used instead of
.tmp/.doctrees which was not a gitignored location and also
polluted the root project directory.

Fixes: #551
  • Loading branch information
ssbarnea committed Sep 2, 2021
1 parent a69f52b commit 05483d3
Show file tree
Hide file tree
Showing 93 changed files with 6 additions and 3 deletions.
2 changes: 1 addition & 1 deletion docs/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -224,7 +224,7 @@
"--implicit-namespaces",
"--private", # include “_private” modules
]
apidoc_module_dir = "../ansible_navigator"
apidoc_module_dir = "../src/ansible_navigator"
apidoc_module_first = False
apidoc_output_dir = "pkg"
apidoc_separate_modules = True
Expand Down
3 changes: 3 additions & 0 deletions setup.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,8 @@ classifiers =
Programming Language :: Python :: Implementation :: PyPy

[options]
package_dir =
= src
packages = find:
install_requires =
ansible-runner >=2,<3
Expand All @@ -46,6 +48,7 @@ console_scripts =
ansible-navigator=ansible_navigator.cli:main

[options.packages.find]
where = src
exclude =
tests*
testing*
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.
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.
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.
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.
4 changes: 2 additions & 2 deletions tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ allowlist_externals = ansible-playbook
[testenv:type]
description = Verify static typing with MyPy under {basepython} ({envpython})
commands =
mypy --txt-report ./{[base]mypy_tmp_dir} ./{[base]pkg_name} ./tests ./share
mypy --txt-report ./{[base]mypy_tmp_dir} ./src/{[base]pkg_name} ./tests ./share

[testenv:build-docs]
allowlist_externals =
Expand All @@ -94,7 +94,7 @@ commands =
-a \
-n \
-W --keep-going \
-d "{toxinidir}/.tmp/.doctrees" \
-d "{toxinidir}/.tox/.doctrees" \
. \
"{envdir}/docs_out"

Expand Down

0 comments on commit 05483d3

Please sign in to comment.