Run of fresh-releases for python-orderedattrdict

Try this locally (using silver-platter):

debian-svp new-upstream python-orderedattrdict 

Merge these changes:

Summary

Merged new upstream version: 1.6.0 (was: 1.5.1).

Diff

diff --git a/PKG-INFO b/PKG-INFO
index b09f657..1d8e444 100644
--- a/PKG-INFO
+++ b/PKG-INFO
@@ -1,6 +1,6 @@
 Metadata-Version: 1.1
 Name: orderedattrdict
-Version: 1.5.1
+Version: 1.6.0
 Summary: OrderedDict with attribute-style access
 Home-page: https://github.com/sanand0/orderedattrdict
 Author: S Anand
@@ -143,7 +143,7 @@ Description: orderedattrdict
             flake8 .
             python setup.py test
         
-        Update version in ``setup.py`` and Changelog below. Then commit. Then::
+        Update version in ``setup.py`` and ``Changelog`` below. Then commit. Then::
         
             git tag -a v1.x.x           # Annotate with a one-line summary of features
             git push --follow-tags
@@ -162,6 +162,7 @@ Description: orderedattrdict
         - ``1.4.2``: Add Python 3.5 support
         - ``1.4.3``: Fix bdist installation issues for Python 2.7
         - ``1.5``: Add ``Tree`` data structure
+        - ``1.6``: ``str()`` prints human-friendly dict
         
 Keywords: ordereddict ordered map attrdict tree conf config configuration yaml json
 Platform: UNKNOWN
diff --git a/README.rst b/README.rst
index 916d68a..ac4600c 100644
--- a/README.rst
+++ b/README.rst
@@ -135,7 +135,7 @@ Test locally::
     flake8 .
     python setup.py test
 
-Update version in ``setup.py`` and Changelog below. Then commit. Then::
+Update version in ``setup.py`` and ``Changelog`` below. Then commit. Then::
 
     git tag -a v1.x.x           # Annotate with a one-line summary of features
     git push --follow-tags
@@ -154,3 +154,4 @@ Changelog
 - ``1.4.2``: Add Python 3.5 support
 - ``1.4.3``: Fix bdist installation issues for Python 2.7
 - ``1.5``: Add ``Tree`` data structure
+- ``1.6``: ``str()`` prints human-friendly dict
diff --git a/debian/changelog b/debian/changelog
index 40187ad..c6671be 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -1,3 +1,6 @@
+python-orderedattrdict (1.6.0-1) UNRELEASED; urgency=low
+ -- Debian Janitor <janitor@jelmer.uk>  Mon, 29 Mar 2021 03:09:53 -0000
+
 python-orderedattrdict (1.5.1-1) unstable; urgency=medium
 
   * Didn't mean to orphan that one
diff --git a/orderedattrdict.egg-info/PKG-INFO b/orderedattrdict.egg-info/PKG-INFO
index b09f657..1d8e444 100644
--- a/orderedattrdict.egg-info/PKG-INFO
+++ b/orderedattrdict.egg-info/PKG-INFO
@@ -1,6 +1,6 @@
 Metadata-Version: 1.1
 Name: orderedattrdict
-Version: 1.5.1
+Version: 1.6.0
 Summary: OrderedDict with attribute-style access
 Home-page: https://github.com/sanand0/orderedattrdict
 Author: S Anand
@@ -143,7 +143,7 @@ Description: orderedattrdict
             flake8 .
             python setup.py test
         
-        Update version in ``setup.py`` and Changelog below. Then commit. Then::
+        Update version in ``setup.py`` and ``Changelog`` below. Then commit. Then::
         
             git tag -a v1.x.x           # Annotate with a one-line summary of features
             git push --follow-tags
@@ -162,6 +162,7 @@ Description: orderedattrdict
         - ``1.4.2``: Add Python 3.5 support
         - ``1.4.3``: Fix bdist installation issues for Python 2.7
         - ``1.5``: Add ``Tree`` data structure
+        - ``1.6``: ``str()`` prints human-friendly dict
         
 Keywords: ordereddict ordered map attrdict tree conf config configuration yaml json
 Platform: UNKNOWN
diff --git a/orderedattrdict/__init__.py b/orderedattrdict/__init__.py
index aa7d488..7a03bdf 100644
--- a/orderedattrdict/__init__.py
+++ b/orderedattrdict/__init__.py
@@ -22,7 +22,7 @@ class AttrDict(OrderedDict):
     __exclude_keys__ = set()
 
     def __getattr__(self, name):
-        'Getting ad.x gets ad["x"]'
+        '''Getting ad.x gets ad["x"]'''
         if (name.startswith('__') or name.startswith('_OrderedDict__') or
                 name in self.__exclude_keys__):
             return super(AttrDict, self).__getattr__(name)
@@ -33,19 +33,23 @@ class AttrDict(OrderedDict):
                 raise AttributeError(name)
 
     def __setattr__(self, name, value):
-        'Setting ad.x sets ad["x"]'
+        '''Setting ad.x sets ad["x"]'''
         if (name.startswith('__') or name.startswith('_OrderedDict__') or
                 name in self.__exclude_keys__):
             return super(AttrDict, self).__setattr__(name, value)
         self[name] = value
 
     def __delattr__(self, name):
-        'Deleting ad.x deletes ad["x"]'
+        '''Deleting ad.x deletes ad["x"]'''
         if (name.startswith('__') or name.startswith('_OrderedDict__') or
                 name in self.__exclude_keys__):
             return super(AttrDict, self).__delattr__(name)
         del self[name]
 
+    def __str__(self):
+        '''Print like a dict that is human readable'''
+        return '{' + ', '.join('%r: %r' % (key, val) for key, val in self.items()) + '}'
+
 
 class CounterAttrDict(AttrDict, Counter):
     '''
diff --git a/setup.py b/setup.py
index 6a29514..40f30ab 100644
--- a/setup.py
+++ b/setup.py
@@ -7,7 +7,7 @@ with open('README.rst') as fp:
 
 setup(
     name='orderedattrdict',
-    version='1.5.1',
+    version='1.6.0',
     description='OrderedDict with attribute-style access',
     long_description=long_description,
     author='S Anand',

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/orderedattrdict-1.6.0.egg-info/PKG-INFO
-rw-r--r--  root/root   /usr/lib/python3/dist-packages/orderedattrdict-1.6.0.egg-info/dependency_links.txt
-rw-r--r--  root/root   /usr/lib/python3/dist-packages/orderedattrdict-1.6.0.egg-info/pbr.json
-rw-r--r--  root/root   /usr/lib/python3/dist-packages/orderedattrdict-1.6.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/orderedattrdict-1.5.1.egg-info/PKG-INFO
-rw-r--r--  root/root   /usr/lib/python3/dist-packages/orderedattrdict-1.5.1.egg-info/dependency_links.txt
-rw-r--r--  root/root   /usr/lib/python3/dist-packages/orderedattrdict-1.5.1.egg-info/pbr.json
-rw-r--r--  root/root   /usr/lib/python3/dist-packages/orderedattrdict-1.5.1.egg-info/top_level.txt

No differences were encountered in the control files

Lintian Result

Full worker log Full build log