diff --git a/python/MANIFEST.in b/python/MANIFEST.in index 6c93d64..edabf53 100644 --- a/python/MANIFEST.in +++ b/python/MANIFEST.in @@ -2,6 +2,7 @@ include stan/unix/*.stan include stan/win/*.stan include LICENSE include requirements.txt +include pyproject.toml # Ensure in-place built models do not get included in the source dist. prune fbprophet/stan_model diff --git a/python/pyproject.toml b/python/pyproject.toml new file mode 100644 index 0000000..b69648a --- /dev/null +++ b/python/pyproject.toml @@ -0,0 +1,2 @@ +[build-system] +requires = ["Cython>=0.22", "numpy>=1.10.0", "pystan>=2.14"] diff --git a/python/setup.py b/python/setup.py index 28c7b3b..a769822 100644 --- a/python/setup.py +++ b/python/setup.py @@ -9,7 +9,7 @@ from pkg_resources import ( add_activation_listener, require, ) -from setuptools import setup +from setuptools import setup, find_packages from setuptools.command.build_py import build_py from setuptools.command.develop import develop from setuptools.command.test import test as test_command @@ -19,8 +19,7 @@ PLATFORM = 'unix' if platform.platform().startswith('Win'): PLATFORM = 'win' -SETUP_DIR = os.path.dirname(os.path.abspath(__file__)) -MODEL_DIR = os.path.join(SETUP_DIR, 'stan', PLATFORM) +MODEL_DIR = os.path.join('stan', PLATFORM) MODEL_TARGET_DIR = os.path.join('fbprophet', 'stan_model') @@ -100,18 +99,16 @@ setup( name='fbprophet', version='0.4', description='Automatic Forecasting Procedure', - url='facebook.github.io/prophet/', + url='https://facebook.github.io/prophet/', author='Sean J. Taylor , Ben Letham ', author_email='sjt@fb.com', license='BSD', - packages=['fbprophet', 'fbprophet.tests'], + packages=find_packages(), setup_requires=[ ], install_requires=install_requires, 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,