New Upstream Release - flufl.testing
Ready changes
Summary
Merged new upstream version: 0.8 (was: 0.7).
Resulting package
Built on 2022-05-03T10:21 (took 2m59s)
The resulting binary packages can be installed (if you have the apt repository enabled) by running one of:
apt install -t fresh-releases python3-flufl.testing
Lintian Result
Diff
diff --git a/LICENSE.txt b/LICENSE.txt
index 357fbab..6c1db7c 100644
--- a/LICENSE.txt
+++ b/LICENSE.txt
@@ -1,4 +1,4 @@
-Copyright 2016 Barry Warsaw
+Copyright 2013-2018 Barry Warsaw
Licensed under the Apache License, Version 2.0 (the "License"); you may not
use this file except in compliance with the License. You may obtain a copy of
diff --git a/NEWS.rst b/NEWS.rst
index f687a7b..3b83115 100644
--- a/NEWS.rst
+++ b/NEWS.rst
@@ -2,9 +2,13 @@
flufl.testing
===============
-Copyright (C) 2016 Barry A. Warsaw
+Copyright (C) 2013-2018 Barry Warsaw
+0.8 (2018-07-20)
+================
+* Non-``from`` imports can follow ``from``-import from ``__future__`` module.
+
0.7 (2016-12-14)
================
* Fix minor typo.
diff --git a/PKG-INFO b/PKG-INFO
index ba6d35c..b0add24 100644
--- a/PKG-INFO
+++ b/PKG-INFO
@@ -1,10 +1,10 @@
-Metadata-Version: 1.1
+Metadata-Version: 1.2
Name: flufl.testing
-Version: 0.7
+Version: 0.8
Summary: A small collection of test tool plugins
Home-page: https://gitlab.com/warsaw/flufl.testing
-Author: Barry Warsaw
-Author-email: barry@python.org
+Maintainer: Barry Warsaw
+Maintainer-email: barry@python.org
License: ASLv2
Download-URL: https://pypi.python.org/pypi/flufl.testing
Description: UNKNOWN
diff --git a/README.rst b/README.rst
index 069796f..f479896 100644
--- a/README.rst
+++ b/README.rst
@@ -24,7 +24,8 @@ flake8 import order plugin
This flake8_ plugin enables import order checks as are used in the `GNU
Mailman`_ project. Specifically, it enforces the following rules:
-* Non-``from`` imports must precede ``from``-imports.
+* Non-``from`` imports must precede ``from``-imports, except import from
+ ``__future__`` module, which should be on the top.
* Exactly one line must separate the block of non-``from`` imports from the
block of ``from`` imports.
* Import exactly one module per non-``from`` import line.
@@ -38,6 +39,8 @@ Mailman`_ project. Specifically, it enforces the following rules:
It's so much easier to see an example::
+ from __future__ import generator_stop
+
import copy
import socket
import logging
@@ -114,8 +117,8 @@ You can also name a default layer by setting::
default_layer = my.package.layers.DefaultLayer.
-This has the same format as the ``setup`` and ``teardown settings, except that
-it should name a class.
+This has the same format as the ``setup`` and ``teardown`` settings, except
+that it should name a class.
Pre-test initialization
@@ -146,7 +149,7 @@ for ever test as it starts and stops::
Author
======
-``flufl.testing`` is Copyright (C) 2013-2016 Barry Warsaw <barry@python.org>
+``flufl.testing`` is Copyright (C) 2013-2018 Barry Warsaw <barry@python.org>
Licensed under the terms of the Apache License, Version 2.0.
diff --git a/debian/changelog b/debian/changelog
index fc31881..9eb07a2 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -1,3 +1,9 @@
+flufl.testing (0.8-1) UNRELEASED; urgency=low
+
+ * New upstream release.
+
+ -- Debian Janitor <janitor@jelmer.uk> Tue, 03 May 2022 10:18:42 -0000
+
flufl.testing (0.7-3) unstable; urgency=low
[ Debian Janitor ]
diff --git a/flufl.testing.egg-info/PKG-INFO b/flufl.testing.egg-info/PKG-INFO
index ba6d35c..b0add24 100644
--- a/flufl.testing.egg-info/PKG-INFO
+++ b/flufl.testing.egg-info/PKG-INFO
@@ -1,10 +1,10 @@
-Metadata-Version: 1.1
+Metadata-Version: 1.2
Name: flufl.testing
-Version: 0.7
+Version: 0.8
Summary: A small collection of test tool plugins
Home-page: https://gitlab.com/warsaw/flufl.testing
-Author: Barry Warsaw
-Author-email: barry@python.org
+Maintainer: Barry Warsaw
+Maintainer-email: barry@python.org
License: ASLv2
Download-URL: https://pypi.python.org/pypi/flufl.testing
Description: UNKNOWN
diff --git a/flufl/testing/__init__.py b/flufl/testing/__init__.py
index e220fa9..376df7c 100644
--- a/flufl/testing/__init__.py
+++ b/flufl/testing/__init__.py
@@ -1 +1 @@
-__version__ = '0.7'
+__version__ = '0.8'
diff --git a/flufl/testing/imports.py b/flufl/testing/imports.py
index 88e19e3..0957872 100644
--- a/flufl/testing/imports.py
+++ b/flufl/testing/imports.py
@@ -1,16 +1,4 @@
-# Copyright (C) 2016 Barry A. Warsaw
-#
-# Licensed under the Apache License, Version 2.0 (the "License"); you may not
-# use this file except in compliance with the License. You may obtain a copy
-# of the License at
-#
-# http://www.apache.org/licenses/LICENSE-2.0
-#
-# Unless required by applicable law or agreed to in writing, software
-# distributed under the License is distributed on an "AS IS" BASIS,
-# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-# See the License for the specific language governing permissions and
-# limitations under the License.
+"""flake8 plugin."""
from ast import NodeVisitor
from collections import namedtuple
@@ -92,6 +80,10 @@ class ImportOrder:
if len(record.names) != 1:
yield self._error(record, NONFROM_MULTIPLE_NAMES)
if last_import.itype is ImportType.from_import:
+ # If the previous import was a __future__ import, just
+ # ignore the rest of the checks.
+ if last_import.module is '__future__':
+ continue
yield self._error(record, NONFROM_FOLLOWS_FROM)
# Shorter imports should always precede longer import *except*
# when they are dotted imports and everything but the last
diff --git a/flufl/testing/nose.py b/flufl/testing/nose.py
index dc45354..d00dd17 100644
--- a/flufl/testing/nose.py
+++ b/flufl/testing/nose.py
@@ -1,17 +1,3 @@
-# Copyright (C) 2013-2016 Barry A. Warsaw
-#
-# Licensed under the Apache License, Version 2.0 (the "License"); you may not
-# use this file except in compliance with the License. You may obtain a copy
-# of the License at
-#
-# http://www.apache.org/licenses/LICENSE-2.0
-#
-# Unless required by applicable law or agreed to in writing, software
-# distributed under the License is distributed on an "AS IS" BASIS,
-# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-# See the License for the specific language governing permissions and
-# limitations under the License.
-
"""nose2 test infrastructure."""
import os
diff --git a/setup.cfg b/setup.cfg
index 861a9f5..8bfd5a1 100644
--- a/setup.cfg
+++ b/setup.cfg
@@ -1,5 +1,4 @@
[egg_info]
tag_build =
tag_date = 0
-tag_svn_revision = 0
diff --git a/setup.py b/setup.py
index ed8aa30..7e7fe5c 100644
--- a/setup.py
+++ b/setup.py
@@ -1,17 +1,3 @@
-# Copyright (C) 2016 Barry A. Warsaw
-#
-# Licensed under the Apache License, Version 2.0 (the "License"); you may not
-# use this file except in compliance with the License. You may obtain a copy
-# of the License at
-#
-# http://www.apache.org/licenses/LICENSE-2.0
-#
-# Unless required by applicable law or agreed to in writing, software
-# distributed under the License is distributed on an "AS IS" BASIS,
-# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-# See the License for the specific language governing permissions and
-# limitations under the License.
-
from setup_helpers import get_version, require_python
from setuptools import setup, find_packages
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/flufl.testing-0.8-nspkg.pth -rw-r--r-- root/root /usr/lib/python3/dist-packages/flufl.testing-0.8.egg-info/PKG-INFO -rw-r--r-- root/root /usr/lib/python3/dist-packages/flufl.testing-0.8.egg-info/dependency_links.txt -rw-r--r-- root/root /usr/lib/python3/dist-packages/flufl.testing-0.8.egg-info/entry_points.txt -rw-r--r-- root/root /usr/lib/python3/dist-packages/flufl.testing-0.8.egg-info/namespace_packages.txt -rw-r--r-- root/root /usr/lib/python3/dist-packages/flufl.testing-0.8.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/flufl.testing-0.7-nspkg.pth -rw-r--r-- root/root /usr/lib/python3/dist-packages/flufl.testing-0.7.egg-info/PKG-INFO -rw-r--r-- root/root /usr/lib/python3/dist-packages/flufl.testing-0.7.egg-info/dependency_links.txt -rw-r--r-- root/root /usr/lib/python3/dist-packages/flufl.testing-0.7.egg-info/entry_points.txt -rw-r--r-- root/root /usr/lib/python3/dist-packages/flufl.testing-0.7.egg-info/namespace_packages.txt -rw-r--r-- root/root /usr/lib/python3/dist-packages/flufl.testing-0.7.egg-info/top_level.txt
No differences were encountered in the control files