i-nex / I-Nex

System information tool written in gambas3, python, bash
http://i-nex.linux.pl/
174 stars 24 forks source link

uses python script but no dependency on python2 or python3 declared ? #41

Closed shirishag75 closed 7 years ago

shirishag75 commented 7 years ago

Got this -

E: i-nex: python-script-but-no-python-dep usr/share/i-nex/pastebinit/pastebinit
N: 
N:    Packages with Python scripts should depend on the package python. Those
N:    with scripts that specify a specific version of Python must depend on
N:    that version of Python (exactly).
N:    
N:    For example, if a script in the package uses #!/usr/bin/python, the
N:    package needs a dependency on python. If a script uses
N:    #!/usr/bin/python2.6, the package needs a dependency on python2.6. A
N:    dependency on python (>= 2.6) is not correct, since later versions of
N:    Python may not provide the /usr/bin/python2.6 binary.
N:    
N:    If you are using debhelper, adding ${python:Depends} to the Depends
N:    field and ensuring dh_python2 or dh_python3 are run during the build
N:    should take care of adding the correct dependency.
N:    
N:    In some cases a weaker relationship, such as Suggests or Recommends,
N:    will be more appropriate.
N:    
N:    Severity: important, Certainty: certain
N:    
N:    Check: scripts, Type: binary
N: 

And for sure it doesn't talk about python directly but uses python-configobj which in turn depends on python2 -

┌─[shirish@debian] - [~/games] - [10013]
└─[$] aptitude show i-nex                                                                                                           
Package: i-nex                           
Version: 7.4.0.1
State: installed
Automatically installed: no
Priority: extra
Section: contrib/admin
Maintainer: eloaders <eloaders@linux.pl>
Architecture: amd64
Uncompressed Size: 11.0 M
Depends: libc6 (>= 2.3), libcpuid13, gambas3-runtime (>= 3.8.4), gambas3-gb-image (>= 3.8.4), gambas3-gb-qt5 (>= 3.8.4), gambas3-gb-form (>=3.8.4), gambas3-gb-desktop (>= 3.8.4), gambas3-gb-desktop-x11 (>= 3.8.4), grep (>= 2.5), bash (>= 4.1), coreutils (>= 7.4), sed (>= 4.2), _python-configobj,_ curl, mesa-utils
Recommends: mount (>= 2.17), x11-utils (>= 7.5), pciutils, lsb-release (>= 4.0), x11-xserver-utils (>= 7.5)
Replaces: i-nex
Description: CPU-Z Alternative for Linux. For Viewing System Device Information.
 I-Nex is an application that gathers information for hardware components.
 Available on your system and displays it using an user
 interface similar to the popular Windows tool CPU-Z.
Homepage: http://i-nex.linux.pl

And from python-configobj I get this -

┌─[shirish@debian] - [~/games] - [10014]
└─[$] aptitude show python-configobj                                                                                                
Package: python-configobj                
Version: 5.0.6-2
State: installed
Automatically installed: no
Priority: optional
Section: python
Maintainer: Debian Python Modules Team <python-modules-team@lists.alioth.debian.org>
Architecture: all
Uncompressed Size: 166 k
Depends: python (>= 2.7), python (< 2.8), python-six
Suggests: python-configobj-doc
Description: simple but powerful config file reader and writer for Python 2
 ConfigObj is a simple but powerful config file reader and writer: an ini file round tripper. Its main feature is that it is very easy to use, with a straightforward programmer's interface and a simple syntax for config files. It has lots of other features, though: 

 * Nested sections (subsections), to any level 
 * List values 
 * Multiple line values 
 * String interpolation (substitution) 
 * Integrated with a powerful validation system + including automatic type checking/conversion + and allowing default values + repeated sections
 * All comments in the file are preserved 
 * The order of keys/sections is preserved 
 * Full Unicode support 
 * Powerful unrepr mode for storing/retrieving Python data-types 

 This is the Python 2 version of the package.
Homepage: http://www.voidspace.org.uk/python/configobj.html

It's not necessary but would be good if we can have python2 depends either as suggests or recommendations.