File: python-versions-in-tox

package info (click to toggle)
sagenb-export 3.2-4
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, bullseye
  • size: 556 kB
  • sloc: python: 591; makefile: 28; sh: 8
file content (30 lines) | stat: -rw-r--r-- 922 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
Description: test against the current python versions, not hard-coded ones
 Upstream test suite is testing against python2.7 and python3.5 at
 build-time.  Fix this to test against 'python' and 'python3' to use
 whatever the current Debian default is for this release, instead of
 hard-coding a specific version number.
Author: Steve Langasek <steve.langasek@ubuntu.com>

Index: sagenb-export-3.2/tox.ini
===================================================================
--- sagenb-export-3.2.orig/tox.ini
+++ sagenb-export-3.2/tox.ini
@@ -1,12 +1,12 @@
 [tox]
-envlist = py27, py34
+envlist = python, python3
 
-[testenv:py27]
-commands=python2.7 -m unittest discover
+[testenv:python]
+commands=python -m unittest discover
 
-[testenv:py34]
+[testenv:py3.4]
 commands=python3.4 -m unittest discover
 
-[testenv:py35]
-commands=python3.5 -m unittest discover
+[testenv:python3]
+commands=python3 -m unittest discover