From 12aa324a831e46a7ae72205a5b8f0063b7fe1407 Mon Sep 17 00:00:00 2001 From: "Sean J. Taylor" Date: Fri, 8 Sep 2017 08:53:31 -0700 Subject: [PATCH] Fixes to get tests to run on Python 3 --- python/MANIFEST.in | 3 +++ python/setup.py | 2 ++ 2 files changed, 5 insertions(+) diff --git a/python/MANIFEST.in b/python/MANIFEST.in index e1edbb1..10c5fe3 100644 --- a/python/MANIFEST.in +++ b/python/MANIFEST.in @@ -4,3 +4,6 @@ include LICENSE # Ensure in-place built models do not get included in the source dist. prune fbprophet/stan_models + +# Necessary for tests to run +include fbprophet/tests/*.csv \ No newline at end of file diff --git a/python/setup.py b/python/setup.py index 0f21c1c..b7a227d 100644 --- a/python/setup.py +++ b/python/setup.py @@ -113,6 +113,8 @@ setup( ], zip_safe=False, include_package_data=True, + # For Python 3, Will enforce that tests are run after a build. + use_2to3=True, cmdclass={ 'build_py': BuildPyCommand, 'develop': DevelopCommand,