From cb4f1dcc59e61bb292d6cefab8e61b2f77585088 Mon Sep 17 00:00:00 2001 From: Ryan Nazareth Date: Thu, 14 May 2020 20:16:34 +0100 Subject: [PATCH] Remove Python 2 from setup.py (#1485) * remove python 2 from setup.py and add python_requires * add note in README --- README.md | 3 ++- python/setup.py | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index cf3ad6c..404e8f2 100644 --- a/README.md +++ b/README.md @@ -37,7 +37,7 @@ If you have custom Stan compiler settings, install from source rather than the C ## Installation in Python -Prophet is on PyPI, so you can use `pip` to install it: +Prophet is on PyPI, so you can use `pip` to install it. From v0.6 onwards, Python 2 is no longer supported. ```bash pip install fbprophet @@ -84,6 +84,7 @@ Make sure compilers (gcc, g++, build-essential) and Python development tools (py - Fix bugs related to upstream changes in `holidays` and `pandas` packages. - Compile model during first use, not during install (to comply with CRAN policy) - `cmdstanpy` backend now available in Python +- Python 2 no longer supported ### Version 0.5 (2019.05.14) diff --git a/python/setup.py b/python/setup.py index 2440629..edba5bd 100644 --- a/python/setup.py +++ b/python/setup.py @@ -129,6 +129,7 @@ setup( setup_requires=[ ], install_requires=install_requires, + python_requires='>=3', zip_safe=False, include_package_data=True, cmdclass={ @@ -139,7 +140,6 @@ setup( test_suite='fbprophet.tests', classifiers=[ 'Programming Language :: Python', - 'Programming Language :: Python :: 2.7', 'Programming Language :: Python :: 3', 'Programming Language :: Python :: 3.7', ],