Run of fresh-releases for pyct

Try this locally (using silver-platter):

debian-svp new-upstream pyct 

Merge these changes:

git pull https://janitor.debian.net/git/pyct fresh-releases/main

Summary

Merged new upstream version: 0.4.8 (was: 0.4.7a3).

Diff

diff --git a/.travis.yml b/.travis.yml
index 4e12d4b..cbfcd91 100644
--- a/.travis.yml
+++ b/.travis.yml
@@ -1,5 +1,7 @@
-sudo: false
-language: generic
+language: python
+
+python:
+  - "3.7"
 
 # quick hack to determine what tag is (improvements welcomed)
 #     release: ^v(\d+|\.)*[^a-z]\d*$
@@ -7,7 +9,6 @@ language: generic
 
 env:
   global:
-    - PYENV_VERSION=3.7
     - CHANS_DEV="-c pyviz/label/dev"
     - CHANS_REL="-c pyviz"
     - LABELS_DEV="--label=dev"
diff --git a/debian/changelog b/debian/changelog
index 510c3f8..4e1c13a 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -1,3 +1,6 @@
+pyct (0.4.8-1) UNRELEASED; urgency=low
+ -- Debian Janitor <janitor@jelmer.uk>  Mon, 29 Mar 2021 08:06:09 -0000
+
 pyct (0.4.7a3-2) unstable; urgency=medium
 
   * Source only upload for migration to testing
diff --git a/pyct/__init__.py b/pyct/__init__.py
index 1907558..46b27c1 100644
--- a/pyct/__init__.py
+++ b/pyct/__init__.py
@@ -2,6 +2,8 @@ import param
 
 NAME = "pyct"
 
+from .report import report  # noqa: api
+
 # version comes from git if available, otherwise from .version file
-__version__ = str(param.version.Version(fpath=__file__, archive_commit="$Format:%h$",
+__version__ = str(param.version.Version(fpath=__file__, archive_commit="740720a",
                                         reponame=NAME))
diff --git a/pyct/__main__.py b/pyct/__main__.py
new file mode 100644
index 0000000..b0d4fb1
--- /dev/null
+++ b/pyct/__main__.py
@@ -0,0 +1,6 @@
+def main(args=None):
+    import pyct.cmd
+    pyct.cmd.main()
+
+if __name__ == "__main__":
+    main()
diff --git a/pyct/cmd.py b/pyct/cmd.py
index 78b309c..0efa732 100644
--- a/pyct/cmd.py
+++ b/pyct/cmd.py
@@ -419,7 +419,7 @@ def add_commands(parser, name, cmds=None, args=None):
         d_parser.add_argument('--use-test-data', action='store_true',
                               help=("Use data's test files, if any, instead of fetching full data. "
                                     "If test file not in '.data_stubs', fall back to fetching full data."))
-        _add_common_args(d_parser, name, '-v', '--path')
+        _add_common_args(d_parser, name, '--path')
         _set_defaults(d_parser, name, fetch_data)
 
     if 'examples' in cmds:
diff --git a/pyct/report.py b/pyct/report.py
index ffc1bdc..a5b8e5c 100755
--- a/pyct/report.py
+++ b/pyct/report.py
@@ -28,10 +28,10 @@ def report(*packages):
                 try:
                     # See if there is a command by that name and check its --version if so
                     try:
-                        loc = subprocess.check_output(['command','-v',      package]).decode().splitlines()[0].strip()
+                        loc = subprocess.check_output('command -v {}'.format(package), shell=True).decode().splitlines()[0].strip()
                     except:
                         # .exe in case powershell (otherwise wouldn't need it)
-                        loc = subprocess.check_output(['where.exe',       package]).decode().splitlines()[0].strip()                    
+                        loc = subprocess.check_output( 'where.exe {}'.format(package), shell=True).decode().splitlines()[0].strip()                    
                     out = ""
                     try:
                         out = subprocess.check_output([package, '--version'], stderr=subprocess.STDOUT)
diff --git a/setup.py b/setup.py
index f6874f8..063e2e4 100755
--- a/setup.py
+++ b/setup.py
@@ -81,7 +81,7 @@ setup_args = dict(
     },
     entry_points = {
         'console_scripts': [
-            'pyct=pyct.cmd:main',
+            'pyct=pyct.__main__:main',
         ],
     }
 )
diff --git a/tox.ini b/tox.ini
index f05e943..0c95f15 100644
--- a/tox.ini
+++ b/tox.ini
@@ -8,6 +8,7 @@ deps = .[tests]
 
 [_cmd_examples]
 commands = pytest pyct
+           python -c "import pyct; pyct.report('pyct','python','system')"
 deps = .[tests,cmd]
 
 [_build_examples]
@@ -30,6 +31,7 @@ commands = pytest pyct
            pyct --version
            pyct report --help           
            pyct report pyct python
+           python -m pyct --version
 
 [testenv]
 changedir = {envtmpdir}

Debdiff

[The following lists of changes regard files as different if they have different names, permissions or owners.]

Files in second set of .debs but not in first

-rw-r--r--  root/root   /usr/lib/python3/dist-packages/pyct-0.4.8.egg-info/PKG-INFO
-rw-r--r--  root/root   /usr/lib/python3/dist-packages/pyct-0.4.8.egg-info/dependency_links.txt
-rw-r--r--  root/root   /usr/lib/python3/dist-packages/pyct-0.4.8.egg-info/entry_points.txt
-rw-r--r--  root/root   /usr/lib/python3/dist-packages/pyct-0.4.8.egg-info/requires.txt
-rw-r--r--  root/root   /usr/lib/python3/dist-packages/pyct-0.4.8.egg-info/top_level.txt
-rw-r--r--  root/root   /usr/lib/python3/dist-packages/pyct/__main__.py

Files in first set of .debs but not in second

-rw-r--r--  root/root   /usr/lib/python3/dist-packages/pyct-0.4.7a3.egg-info/PKG-INFO
-rw-r--r--  root/root   /usr/lib/python3/dist-packages/pyct-0.4.7a3.egg-info/dependency_links.txt
-rw-r--r--  root/root   /usr/lib/python3/dist-packages/pyct-0.4.7a3.egg-info/entry_points.txt
-rw-r--r--  root/root   /usr/lib/python3/dist-packages/pyct-0.4.7a3.egg-info/requires.txt
-rw-r--r--  root/root   /usr/lib/python3/dist-packages/pyct-0.4.7a3.egg-info/top_level.txt

No differences were encountered in the control files

Lintian Result

Full worker log Full build log