Remove Python 2 from setup.py (#1485)

* remove python 2 from setup.py and add python_requires

* add note in README
This commit is contained in:
Ryan Nazareth 2020-05-14 20:16:34 +01:00 committed by GitHub
parent caaaee8d34
commit cb4f1dcc59
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 2 deletions

View file

@ -37,7 +37,7 @@ If you have custom Stan compiler settings, install from source rather than the C
## Installation in Python ## 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 ```bash
pip install fbprophet 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. - Fix bugs related to upstream changes in `holidays` and `pandas` packages.
- Compile model during first use, not during install (to comply with CRAN policy) - Compile model during first use, not during install (to comply with CRAN policy)
- `cmdstanpy` backend now available in Python - `cmdstanpy` backend now available in Python
- Python 2 no longer supported
### Version 0.5 (2019.05.14) ### Version 0.5 (2019.05.14)

View file

@ -129,6 +129,7 @@ setup(
setup_requires=[ setup_requires=[
], ],
install_requires=install_requires, install_requires=install_requires,
python_requires='>=3',
zip_safe=False, zip_safe=False,
include_package_data=True, include_package_data=True,
cmdclass={ cmdclass={
@ -139,7 +140,6 @@ setup(
test_suite='fbprophet.tests', test_suite='fbprophet.tests',
classifiers=[ classifiers=[
'Programming Language :: Python', 'Programming Language :: Python',
'Programming Language :: Python :: 2.7',
'Programming Language :: Python :: 3', 'Programming Language :: Python :: 3',
'Programming Language :: Python :: 3.7', 'Programming Language :: Python :: 3.7',
], ],