Browse Source

Few python3 (and 3.6) compatibility improvements

- devstack plugin: run manage.py using $PYTHON (defined by devstack,
  it points to the Python interpreter used by DevStack;
- add an explicit envlist for py36;
- add the classifier for Python 3.6 to setup.cfg;
- bump the minumum tox version to 2.0, which is the de-facto
  minimum version.

Change-Id: I2bce1562b9ac49abf2e80efd3d6df392e40328b1
tags/10.0.0.0b1
Luigi Toscano 6 months ago
parent
commit
6733240dac
3 changed files with 4 additions and 3 deletions
  1. 1
    1
      devstack/plugin.sh
  2. 1
    0
      setup.cfg
  3. 2
    2
      tox.ini

+ 1
- 1
devstack/plugin.sh View File

@@ -12,7 +12,7 @@ function configure_sahara_dashboard {
12 12
     # NOTE: If locale directory does not exist, compilemessages will fail,
13 13
     # so check for an existence of locale directory is required.
14 14
     if [ -d ${SAHARA_DASH_DIR}/sahara_dashboard/locale ]; then
15
-        (cd ${SAHARA_DASH_DIR}/sahara_dashboard; DJANGO_SETTINGS_MODULE=openstack_dashboard.settings ../manage.py compilemessages)
15
+        (cd ${SAHARA_DASH_DIR}/sahara_dashboard; DJANGO_SETTINGS_MODULE=openstack_dashboard.settings $PYTHON ../manage.py compilemessages)
16 16
     fi
17 17
 }
18 18
 

+ 1
- 0
setup.cfg View File

@@ -17,6 +17,7 @@ classifier =
17 17
     Programming Language :: Python :: 2.7
18 18
     Programming Language :: Python :: 3
19 19
     Programming Language :: Python :: 3.5
20
+    Programming Language :: Python :: 3.6
20 21
 
21 22
 [files]
22 23
 packages =

+ 2
- 2
tox.ini View File

@@ -1,6 +1,6 @@
1 1
 [tox]
2
-minversion = 1.6
3
-envlist = py35,py27,pep8,py27dj18
2
+minversion = 2.0
3
+envlist = py36,py35,py27,pep8,py27dj18
4 4
 skipsdist = True
5 5
 
6 6
 [testenv]

Loading…
Cancel
Save