New Upstream Release - python-click-log

Ready changes

Summary

Merged new upstream version: 0.4.0 (was: 0.3.2).

Resulting package

Built on 2022-12-31T01:55 (took 3m33s)

The resulting binary packages can be installed (if you have the apt repository enabled) by running one of:

apt install -t fresh-releases python3-click-log

Lintian Result

Diff

diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml
new file mode 100644
index 0000000..59901da
--- /dev/null
+++ b/.github/workflows/tests.yml
@@ -0,0 +1,46 @@
+# Run click-log CI
+
+name: "Test Suite"
+
+on:
+  push:
+    branches:
+      - master
+  pull_request:
+  workflow_dispatch:
+
+defaults:
+  run:
+    shell: bash
+
+jobs:
+  tests:
+    name: "Python ${{ matrix.python-version }} tests"
+    runs-on: "ubuntu-latest"
+
+    strategy:
+      fail-fast: false
+      matrix:
+        python-version:
+          - "3.7"
+          - "3.8"
+          - "3.9"
+          - "3.10"
+          - "pypy-3.7"
+
+    steps:
+      - name: "Check out the repo"
+        uses: "actions/checkout@v3"
+
+      - name: "Set up Python"
+        uses: "actions/setup-python@v3"
+        with:
+          python-version: "${{ matrix.python-version }}"
+
+      - name: "Install tox"
+        run: |
+          python -m pip install tox tox-gh-actions
+
+      - name: "Run tox for ${{ matrix.python-version }}"
+        run: |
+          python -m tox
diff --git a/.travis.yml b/.travis.yml
deleted file mode 100644
index be5b6b6..0000000
--- a/.travis.yml
+++ /dev/null
@@ -1,11 +0,0 @@
-language: python
-
-python:
-    - 2.7
-    - pypy
-    - 3.4
-    - 3.5
-    - 3.6
-
-install: pip install tox
-script: tox
diff --git a/click_log/__init__.py b/click_log/__init__.py
index 3058e19..058a229 100644
--- a/click_log/__init__.py
+++ b/click_log/__init__.py
@@ -3,7 +3,7 @@
 
 import click
 
-__version__ = '0.3.2'
+__version__ = '0.4.0'
 
 
 if not hasattr(click, 'get_current_context'):
diff --git a/click_log/options.py b/click_log/options.py
index 1295ec1..97901fc 100644
--- a/click_log/options.py
+++ b/click_log/options.py
@@ -32,6 +32,7 @@ def simple_verbosity_option(logger=None, *names, **kwargs):
             if x is None:
                 raise click.BadParameter(
                     'Must be CRITICAL, ERROR, WARNING, INFO or DEBUG, not {}'
+                    .format(value)
                 )
             logger.setLevel(x)
 
diff --git a/debian/changelog b/debian/changelog
index a7e68bf..768a1e4 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -1,8 +1,9 @@
-python-click-log (0.3.2-2) UNRELEASED; urgency=medium
+python-click-log (0.4.0-1) UNRELEASED; urgency=medium
 
   * Update standards version to 4.6.1, no changes needed.
+  * New upstream release.
 
- -- Debian Janitor <janitor@jelmer.uk>  Wed, 26 Oct 2022 01:37:51 -0000
+ -- Debian Janitor <janitor@jelmer.uk>  Sat, 31 Dec 2022 01:52:44 -0000
 
 python-click-log (0.3.2-1) unstable; urgency=medium
 
diff --git a/debian/patches/0001-Remove-embedded-image-in-docs-to-avoid-privacy-breac.patch b/debian/patches/0001-Remove-embedded-image-in-docs-to-avoid-privacy-breac.patch
index ff953d0..ebdf908 100644
--- a/debian/patches/0001-Remove-embedded-image-in-docs-to-avoid-privacy-breac.patch
+++ b/debian/patches/0001-Remove-embedded-image-in-docs-to-avoid-privacy-breac.patch
@@ -7,10 +7,10 @@ Subject: Remove embedded image in docs to avoid privacy breach
  README.rst | 3 ---
  1 file changed, 3 deletions(-)
 
-diff --git a/README.rst b/README.rst
-index ffe30d1..fe2cdc4 100644
---- a/README.rst
-+++ b/README.rst
+Index: python-click-log.git/README.rst
+===================================================================
+--- python-click-log.git.orig/README.rst
++++ python-click-log.git/README.rst
 @@ -1,9 +1,6 @@
  click-log
  =========
diff --git a/docs/index.rst b/docs/index.rst
index f3e22f3..66fde9e 100644
--- a/docs/index.rst
+++ b/docs/index.rst
@@ -87,9 +87,9 @@ The ``error:``-prefix will be red, unless the output is piped to another
 command.
 
 The :py:func:`simple_verbosity_option` decorator adds a ``--verbosity`` option
-that takes a (case-insensitive) value of ``DEBUG``, ``INFO``, ``WARNING``,
-``ERROR``, or ``CRITICAL``, and calls ``setLevel`` on the given logger
-accordingly.
+(a short option ``-v`` is also available) that takes a (case-insensitive) value
+of ``DEBUG``, ``INFO``, ``WARNING``, ``ERROR``, or ``CRITICAL``, and calls
+``setLevel`` on the given logger accordingly.
 
 .. note::
 
diff --git a/setup.py b/setup.py
index 13528f1..31becd8 100644
--- a/setup.py
+++ b/setup.py
@@ -30,14 +30,11 @@ setup(
         # List of python versions and their support status:
         # https://en.wikipedia.org/wiki/CPython#Version_history
         'Programming Language :: Python',
-        'Programming Language :: Python :: 2',
-        'Programming Language :: Python :: 2.7',
         'Programming Language :: Python :: 3',
-        'Programming Language :: Python :: 3.3',
-        'Programming Language :: Python :: 3.4',
-        'Programming Language :: Python :: 3.5',
-        'Programming Language :: Python :: 3.6',
-        'Programming Language :: Python :: Implementation :: CPython',
+        'Programming Language :: Python :: 3.7',
+        'Programming Language :: Python :: 3.8',
+        'Programming Language :: Python :: 3.9',
+        'Programming Language :: Python :: 3.10',
         'Topic :: System :: Logging',
     ],
     packages=['click_log'],
diff --git a/tox.ini b/tox.ini
index 9c2d2ac..b50ea51 100644
--- a/tox.ini
+++ b/tox.ini
@@ -1,6 +1,17 @@
+[tox]
+envlist = py37,py38,py39,py310,pypy3
+
 [testenv]
 passenv = LANG
 deps =
     pytest
-    git+https://github.com/mitsuhiko/click
-commands = py.test []
+    git+https://github.com/pallets/click
+commands = python -m pytest {posargs}
+
+[gh-actions]
+python =
+    3.7: py37
+    3.8: py38
+    3.9: py39
+    3.10: py310
+    pypy3: pypy3

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/click_log-0.4.0.egg-info/PKG-INFO
-rw-r--r--  root/root   /usr/lib/python3/dist-packages/click_log-0.4.0.egg-info/dependency_links.txt
-rw-r--r--  root/root   /usr/lib/python3/dist-packages/click_log-0.4.0.egg-info/requires.txt
-rw-r--r--  root/root   /usr/lib/python3/dist-packages/click_log-0.4.0.egg-info/top_level.txt

Files in first set of .debs but not in second

-rw-r--r--  root/root   /usr/lib/python3/dist-packages/click_log-0.3.2.egg-info/PKG-INFO
-rw-r--r--  root/root   /usr/lib/python3/dist-packages/click_log-0.3.2.egg-info/dependency_links.txt
-rw-r--r--  root/root   /usr/lib/python3/dist-packages/click_log-0.3.2.egg-info/requires.txt
-rw-r--r--  root/root   /usr/lib/python3/dist-packages/click_log-0.3.2.egg-info/top_level.txt

No differences were encountered in the control files

More details

Full run details