1
0
mirror of https://github.com/python-escpos/python-escpos synced 2025-08-24 09:03:34 +00:00

SETUP move code to src

This way we can ensure that the packaged code is tested.
See https://hynek.me/articles/testing-packaging/ or c62a78c015

+ DOC adapt doc to new structure and test doc with travis
This commit is contained in:
Patrick Kanzler
2016-06-20 16:41:46 +02:00
parent e8e91eba80
commit 87438f9efa
13 changed files with 32 additions and 7 deletions

View File

@@ -20,7 +20,7 @@ from setuptools_scm import get_version
# 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
# documentation root, use os.path.abspath to make it absolute, like shown here.
sys.path.insert(0, os.path.abspath('..'))
sys.path.insert(0, os.path.abspath('../src'))
root = os.path.relpath(os.path.join(os.path.dirname(__file__), '..'))
# -- General configuration ------------------------------------------------
@@ -42,6 +42,11 @@ extensions = [
'sphinx.ext.inheritance_diagram',
]
# supress warnings for external images
suppress_warnings = [
'image.nonlocal_uri',
]
# enable todos
todo_include_todos = True