Browse code

bump required Python to version 3.6

Bas Nijholt authored on 16/02/2018 17:49:31 • Joseph Weston committed on 16/02/2018 18:14:20
Showing 2 changed files
... ...
@@ -50,7 +50,7 @@ and [`distributed`](https://distributed.readthedocs.io/en/latest/).
50 50
 
51 51
 
52 52
 ## Installation
53
-`adaptive` works with Python 3.5 and higher on Linux, Windows, or Mac, and provides optional extensions for working with the Jupyter/IPython Notebook.
53
+`adaptive` works with Python 3.6 and higher on Linux, Windows, or Mac, and provides optional extensions for working with the Jupyter/IPython Notebook.
54 54
 
55 55
 The recommended way to install adaptive is using `pip`:
56 56
 ```bash
... ...
@@ -1,9 +1,14 @@
1 1
 #!/usr/bin/env python3
2 2
 # -*- coding: utf-8 -*-
3 3
 
4
+import sys
4 5
 from setuptools import setup
5 6
 
6 7
 
8
+if sys.version_info < (3, 6):
9
+    print('adaptive requires Python 3.6 or above.')
10
+    sys.exit(1)
11
+
7 12
 install_requires = [
8 13
     'scipy',
9 14
     'ipython',
... ...
@@ -19,6 +24,7 @@ extras_require = {
19 24
         'distributed',
20 25
         'ipywidgets',
21 26
     ],
27
+}
22 28
 
23 29
 setup(
24 30
     name='adaptive',