Drop support for use_pkginfo_python_versions

Unused.

authorJulien Cristau <julien.cristau@logilab.fr>
changeset5b8446d9b559
branchdefault
phasedraft
hiddenno
parent revision#f6b937183620 [narval] fix pylint checker for pylint 1.4 (closes #4771946)
child revision<not specified>
files modified by this revision
_narval/preprocessors/apycot/distutils.py
# HG changeset patch
# User Julien Cristau <julien.cristau@logilab.fr>
# Date 1415786804 -3600
# Wed Nov 12 11:06:44 2014 +0100
# Node ID 5b8446d9b55943330835dbd60620fd462a728104
# Parent f6b937183620929b5b139df39c7765c746501310
Drop support for use_pkginfo_python_versions

Unused.

diff --git a/_narval/preprocessors/apycot/distutils.py b/_narval/preprocessors/apycot/distutils.py
@@ -30,30 +30,10 @@
1  def pyversions(test):
2      config = test.apycot_config()
3      tested_pyversions = config.get('tested_python_versions')
4      if tested_pyversions:
5          pyversions = set(splitstrip(tested_pyversions))
6 -    elif config.get('use_pkginfo_python_versions'):
7 -        from logilab.devtools.lib.pkginfo import PackageInfo
8 -        try:
9 -            pkginfodir = dirname(test.environ['pkginfo'])
10 -        except KeyError:
11 -            pkginfodir = test.project_path()
12 -        try:
13 -            pkginfo = PackageInfo(directory=pkginfodir)
14 -            pyversions = set(pkginfo.pyversions)
15 -        except (NameError, ImportError):
16 -            pyversions = set()
17 -        ignored_pyversions = config.get('ignored_python_versions')
18 -        if ignored_pyversions:
19 -            ignored_pyversions = set(ignored_pyversions)
20 -            ignored_pyversions = pyversions.intersection(
21 -                ignored_pyversions)
22 -            if ignored_pyversions:
23 -                for py_ver in ignored_pyversions:
24 -                    test.writer.debug('python version %s ignored', py_ver)
25 -                pyversions.difference_update(ignored_pyversions)
26      else:
27          pyversions = None
28      if pyversions:
29          pyversions_ = []
30          for pyver in pyversions: