Commit 036f8a4d authored by Tjerk Vreeken's avatar Tjerk Vreeken Committed by Jesse VanderWees

Move rtctools package to src subfolder

This is common practice to avoid e.g. accidentally running tests against
the source directory instead of the installed directory. See e.g.
https://hynek.me/articles/testing-packaging/ for more explanation.
parent f4cb1221
rtctools/_version.py export-subst
src/rtctools/_version.py export-subst
include versioneer.py
include rtctools/_version.py
include src/rtctools/_version.py
......@@ -8,7 +8,7 @@ license_file = COPYING.LESSER
[versioneer]
VCS = git
style = pep440
versionfile_source = rtctools/_version.py
versionfile_source = src/rtctools/_version.py
versionfile_build = rtctools/_version.py
tag_prefix =
parentdir_prefix = rtctools-
......
......@@ -43,7 +43,8 @@ setup(
download_url='http://gitlab.com/deltares/rtc-tools/',
classifiers = [_f for _f in CLASSIFIERS.split('\n') if _f],
platforms = ['Windows', 'Linux', 'Mac OS-X', 'Unix'],
packages = find_packages(),
packages = find_packages("src"),
package_dir = {"": "src"},
install_requires = install_reqs,
tests_require = ['nose'],
test_suite = 'nose.collector',
......
......@@ -43,7 +43,7 @@ def get_config():
cfg.style = "pep440"
cfg.tag_prefix = ""
cfg.parentdir_prefix = "rtctools-"
cfg.versionfile_source = "rtctools/_version.py"
cfg.versionfile_source = "src/rtctools/_version.py"
cfg.verbose = False
return cfg
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment