diff --git a/.coveragerc b/.coveragerc index 2b1651a..afda56a 100644 --- a/.coveragerc +++ b/.coveragerc @@ -1,7 +1,13 @@ [run] branch = true +parallel = true source = picobox +[paths] +source = + src/ + */site-packages/ + [report] exclude_lines = # __repr__ is used for debug purposes and is not something we want to diff --git a/setup.py b/setup.py index cf013ae..7c9f265 100644 --- a/setup.py +++ b/setup.py @@ -17,7 +17,8 @@ license='MIT', author='Ihor Kalnytskyi', author_email='ihor@kalnytskyi.com', - packages=setuptools.find_packages(exclude=['docs', 'tests*']), + packages=setuptools.find_packages(where='src'), + package_dir={'': 'src'}, use_scm_version={ 'root': here, }, diff --git a/picobox/__init__.py b/src/picobox/__init__.py similarity index 100% rename from picobox/__init__.py rename to src/picobox/__init__.py diff --git a/picobox/_box.py b/src/picobox/_box.py similarity index 100% rename from picobox/_box.py rename to src/picobox/_box.py diff --git a/picobox/_scopes.py b/src/picobox/_scopes.py similarity index 100% rename from picobox/_scopes.py rename to src/picobox/_scopes.py diff --git a/picobox/_stack.py b/src/picobox/_stack.py similarity index 100% rename from picobox/_stack.py rename to src/picobox/_stack.py diff --git a/tox.ini b/tox.ini index a3c70b6..659f853 100644 --- a/tox.ini +++ b/tox.ini @@ -7,6 +7,7 @@ deps = pytest commands = {envpython} -m coverage run -m pytest --strict {posargs:} + {envpython} -m coverage combine {envpython} -m coverage report -m [testenv:metadata]