From cf7aeb47195b4d37107e4e7aed5839344a96cb45 Mon Sep 17 00:00:00 2001 From: Junpeng Lao Date: Mon, 6 Jul 2020 16:27:51 +0200 Subject: [PATCH 1/5] Revert "Drop support for py3.6 (#3992)" This reverts commit 1bf867edf74e1c5fc0db79a4f0ca4e2bdab94e66. --- RELEASE-NOTES.md | 2 -- scripts/install_miniconda.sh | 2 +- setup.py | 1 + 3 files changed, 2 insertions(+), 3 deletions(-) diff --git a/RELEASE-NOTES.md b/RELEASE-NOTES.md index e17392a97fd..c678272efbc 100644 --- a/RELEASE-NOTES.md +++ b/RELEASE-NOTES.md @@ -1,8 +1,6 @@ # Release Notes ## PyMC3 3.9.x (on deck) -This release [does not support Python 3.6 anymore](https://numpy.org/neps/nep-0029-deprecation_policy.html). Use Python 3.7 or higher. - ### Documentation - Notebook on [multilevel modeling](https://docs.pymc.io/notebooks/multilevel_modeling.html) has been rewritten to showcase ArviZ and xarray usage for inference result analysis (see [#3963](https://github.com/pymc-devs/pymc3/pull/3963)) diff --git a/scripts/install_miniconda.sh b/scripts/install_miniconda.sh index 61d27943d0c..b4035f45280 100755 --- a/scripts/install_miniconda.sh +++ b/scripts/install_miniconda.sh @@ -7,7 +7,7 @@ if conda --version > /dev/null 2>&1; then exit 0 fi -PYTHON_VERSION=${PYTHON_VERSION:-3.7} # if no python specified, use 3.7 +PYTHON_VERSION=${PYTHON_VERSION:-3.6} # if no python specified, use 3.6 if [ ${PYTHON_VERSION} == "2.7" ]; then INSTALL_FOLDER="$HOME/miniconda2" diff --git a/setup.py b/setup.py index eef672998a6..a09b70515ec 100755 --- a/setup.py +++ b/setup.py @@ -29,6 +29,7 @@ "Development Status :: 5 - Production/Stable", "Programming Language :: Python", "Programming Language :: Python :: 3", + "Programming Language :: Python :: 3.6", "Programming Language :: Python :: 3.7", "Programming Language :: Python :: 3.8", "License :: OSI Approved :: Apache Software License", From 0cd96d1bfff90016cd87ca14872bf1f3abd87a8f Mon Sep 17 00:00:00 2001 From: Junpeng Lao Date: Mon, 6 Jul 2020 16:30:46 +0200 Subject: [PATCH 2/5] Update README.rst --- README.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.rst b/README.rst index 8549942787e..1effc2ca83f 100644 --- a/README.rst +++ b/README.rst @@ -111,7 +111,7 @@ Another option is to clone the repository and install PyMC3 using Dependencies ============ -PyMC3 is tested on Python 3.7 and depends on Theano, NumPy, +PyMC3 is tested on Python 3.6 and depends on Theano, NumPy, SciPy, and Pandas (see ``requirements.txt`` for version information). From eda63cf7ea1c7160672498776e63b36e6d35d6f8 Mon Sep 17 00:00:00 2001 From: Junpeng Lao Date: Mon, 6 Jul 2020 16:31:35 +0200 Subject: [PATCH 3/5] Update setup.py --- setup.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/setup.py b/setup.py index a09b70515ec..b7cda72df32 100755 --- a/setup.py +++ b/setup.py @@ -81,7 +81,7 @@ def get_version(): # package_data={'docs': ['*']}, include_package_data=True, classifiers=classifiers, - python_requires=">=3.7", + python_requires=">=3.6", install_requires=install_reqs, tests_require=test_reqs, test_suite="nose.collector", From 9454f1c6d600bcfde3aec60f157598d8d1cf9bf0 Mon Sep 17 00:00:00 2001 From: Junpeng Lao Date: Mon, 6 Jul 2020 16:42:04 +0200 Subject: [PATCH 4/5] Update requirements.txt --- requirements.txt | 1 + 1 file changed, 1 insertion(+) diff --git a/requirements.txt b/requirements.txt index c75496b7e5a..9cc32676b4e 100644 --- a/requirements.txt +++ b/requirements.txt @@ -7,3 +7,4 @@ patsy>=0.5.1 fastprogress>=0.2.0 h5py>=2.7.0 typing-extensions>=3.7.4 +dataclasses; python_version < '3.7' From a2344ccbc57d343c46afbd1790db995264e8a85d Mon Sep 17 00:00:00 2001 From: Junpeng Lao Date: Mon, 6 Jul 2020 19:52:03 +0200 Subject: [PATCH 5/5] Update requirements.txt Co-authored-by: Adrian Seyboldt --- requirements.txt | 1 + 1 file changed, 1 insertion(+) diff --git a/requirements.txt b/requirements.txt index 9cc32676b4e..15c2df01e4d 100644 --- a/requirements.txt +++ b/requirements.txt @@ -8,3 +8,4 @@ fastprogress>=0.2.0 h5py>=2.7.0 typing-extensions>=3.7.4 dataclasses; python_version < '3.7' +contextvars; python_version < '3.7'