From c0f763515a4cc4ce34815ac473c0d6f207bfda99 Mon Sep 17 00:00:00 2001 From: Thomas Waldmann Date: Thu, 4 Apr 2019 01:23:40 +0200 Subject: [PATCH] adjust to src/ based project layout --- .coveragerc | 10 +++++----- setup.py | 3 ++- 2 files changed, 7 insertions(+), 6 deletions(-) diff --git a/.coveragerc b/.coveragerc index 3c4fc4a..2c48fe6 100644 --- a/.coveragerc +++ b/.coveragerc @@ -2,12 +2,12 @@ [run] branch = True -source = nsupdate +source = src/nsupdate omit = - */migrations/* - */_tests/* - nsupdate/wsgi.py - nsupdate/settings/* + src/*/migrations/* + src/*/_tests/* + src/nsupdate/wsgi.py + src/nsupdate/settings/* [report] # Regexes for lines to exclude from consideration diff --git a/setup.py b/setup.py index 543b32f..bfcb896 100644 --- a/setup.py +++ b/setup.py @@ -18,7 +18,8 @@ setup( description='A dynamic DNS update service', long_description=readme_content, keywords="dyndns ddns dynamic dns django", - packages=find_packages(exclude=['_tests', ]), + packages=find_packages('src', exclude=['_tests', ]), + package_dir={'': 'src'}, package_data={ 'nsupdate': [ 'templates/*.html',