瀏覽代碼

Fixes to get tests to run on Python 3

Sean J. Taylor 7 年之前
父節點
當前提交
12aa324a83
共有 2 個文件被更改,包括 5 次插入0 次删除
  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.
 # Ensure in-place built models do not get included in the source dist.
 prune fbprophet/stan_models
 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,
     zip_safe=False,
     include_package_data=True,
     include_package_data=True,
+    # For Python 3, Will enforce that tests are run after a build.
+    use_2to3=True,
     cmdclass={
     cmdclass={
         'build_py': BuildPyCommand,
         'build_py': BuildPyCommand,
         'develop': DevelopCommand,
         'develop': DevelopCommand,