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

move tephi to src/tephi #166

Open
wants to merge 4 commits into
base: main
Choose a base branch
from
Open
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
6 changes: 3 additions & 3 deletions docs/tephi/source/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,10 +18,10 @@

# ensure tephi is discoverable by rtd build environment
root = pathlib.Path(__file__).absolute().parent.parent.parent.parent
os.environ["PYTHONPATH"] = str(root)
sys.path.insert(0, str(root))
os.environ["PYTHONPATH"] = str(root) + "/src"
sys.path.insert(0, str(root) + "/src")

import tephi
from src import tephi

# If extensions (or modules to document with autodoc) are in another directory,
# add these directories to sys.path here. If the directory is relative to the
Expand Down
6 changes: 3 additions & 3 deletions setup.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -2,19 +2,19 @@
exclude =
.git,
docs,
tephi/tests/__init__.py
src/tephi/tests/__init__.py
.eggs

[tool:pytest]
testpaths =
tephi/
src/tephi/
markers =
graphical: mark a test as a graphical test
addopts =
-ra
-v
--cov-config=.coveragerc
--cov=tephi
--cov=src/tephi
--cov-report=term-missing
--doctest-modules
doctest_optionflags = NORMALIZE_WHITESPACE ELLIPSIS NUMBER
Expand Down
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.
2 changes: 1 addition & 1 deletion tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ setenv =
BUILDDIR = {toxinidir}/docs/_build
conda_env = requirements/rtd.yml
commands =
sphinx-apidoc -o "{env:DOCSDIR}/api" tephi tephi/tests
sphinx-apidoc -o "{env:DOCSDIR}/api" src/tephi src/tephi/tests
sphinx-build -W --keep-going -b html -d "{env:BUILDDIR}/doctrees" "{env:DOCSDIR}" "{env:BUILDDIR}/html" {posargs}
# when running the doctests, also check that any snippets in the
# docs are representative of the module output
Expand Down
Loading