Include data files in ACTS package, such that they may be referenced in
unit tests.
Previously, only Python files were included in an ACTS installation.
Bug: None
Test: unit tests
Change-Id: I6622ce17f1c330d46811ec090ee74c73e2df619c
diff --git a/acts/framework/MANIFEST.in b/acts/framework/MANIFEST.in
index d16f272..f6607fd 100644
--- a/acts/framework/MANIFEST.in
+++ b/acts/framework/MANIFEST.in
@@ -1,5 +1,6 @@
include setup.py README.txt sample_config.json
recursive-include acts *.py
+recursive-include tests *
global-exclude .DS_Store
global-exclude *.pyc
diff --git a/acts/framework/setup.py b/acts/framework/setup.py
index 0dd9b3b..da4ed64 100755
--- a/acts/framework/setup.py
+++ b/acts/framework/setup.py
@@ -173,8 +173,8 @@
def main():
scripts = [
- os.path.join(framework_dir, 'acts', 'bin', 'act.py'),
- os.path.join(framework_dir, 'acts', 'bin', 'monsoon.py')
+ os.path.join('acts', 'bin', 'act.py'),
+ os.path.join('acts', 'bin', 'monsoon.py')
]
# cd to framework directory so the correct package namespace is found
os.chdir(framework_dir)
@@ -183,7 +183,7 @@
description='Android Comms Test Suite',
license='Apache2.0',
packages=setuptools.find_packages(),
- include_package_data=False,
+ include_package_data=True,
tests_require=['pytest'],
install_requires=install_requires,
extras_require={'dev': DEV_PACKAGES},
diff --git a/acts_tests/MANIFEST.in b/acts_tests/MANIFEST.in
new file mode 100644
index 0000000..e69de29
--- /dev/null
+++ b/acts_tests/MANIFEST.in
diff --git a/acts_tests/setup.py b/acts_tests/setup.py
index a92d86f..f8bb677 100755
--- a/acts_tests/setup.py
+++ b/acts_tests/setup.py
@@ -175,7 +175,7 @@
description='Android Comms Test Suite',
license='Apache2.0',
packages=packages,
- include_package_data=False,
+ include_package_data=True,
install_requires=install_requires,
cmdclass={
'install': ActsContribInstall,