Browse Source

Fixes to get tests to run on Python 3

Sean J. Taylor 7 years ago
parent
commit
12aa324a83
2 changed files with 5 additions and 0 deletions
  1. 3 0
      python/MANIFEST.in
  2. 2 0
      python/setup.py

+ 3 - 0
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

+ 2 - 0
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,