Hello community,

here is the log from the commit of package python-preggy for openSUSE:Factory 
checked in at 2020-03-19 19:49:48
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/python-preggy (Old)
 and      /work/SRC/openSUSE:Factory/.python-preggy.new.3160 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "python-preggy"

Thu Mar 19 19:49:48 2020 rev:2 rq:786234 version:1.4.4

Changes:
--------
--- /work/SRC/openSUSE:Factory/python-preggy/python-preggy.changes      
2019-02-25 17:53:15.246532804 +0100
+++ /work/SRC/openSUSE:Factory/.python-preggy.new.3160/python-preggy.changes    
2020-03-19 19:53:45.584276539 +0100
@@ -1,0 +2,8 @@
+Wed Mar 18 12:56:46 UTC 2020 - Marketa Calabkova <mcalabk...@suse.com>
+
+- Update to 1.4.4
+  * TypeError: __init__() got an unexpected keyword argument 'encoding'
+  * Added LICENSE file (not distributed in the PyPI tarball, though)
+  * SyntaxWarning: is with a literal. Did you mean ==?
+
+-------------------------------------------------------------------

Old:
----
  preggy-1.4.2.tar.gz

New:
----
  preggy-1.4.4.tar.gz

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Other differences:
------------------
++++++ python-preggy.spec ++++++
--- /var/tmp/diff_new_pack.KMoQH9/_old  2020-03-19 19:53:46.740276580 +0100
+++ /var/tmp/diff_new_pack.KMoQH9/_new  2020-03-19 19:53:46.740276580 +0100
@@ -1,7 +1,7 @@
 #
 # spec file for package python-preggy
 #
-# Copyright (c) 2019 SUSE LINUX GmbH, Nuernberg, Germany.
+# Copyright (c) 2020 SUSE LLC
 #
 # All modifications and additions to the file contributed by third parties
 # remain the property of their copyright owners, unless otherwise agreed
@@ -18,7 +18,7 @@
 
 %{?!python_module:%define python_module() python-%{**} python3-%{**}}
 Name:           python-preggy
-Version:        1.4.2
+Version:        1.4.4
 Release:        0
 Summary:        Assertion library for Python
 License:        MIT

++++++ preggy-1.4.2.tar.gz -> preggy-1.4.4.tar.gz ++++++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/preggy-1.4.2/PKG-INFO new/preggy-1.4.4/PKG-INFO
--- old/preggy-1.4.2/PKG-INFO   2018-01-09 22:34:01.000000000 +0100
+++ new/preggy-1.4.4/PKG-INFO   2019-11-26 03:37:58.176195600 +0100
@@ -1,33 +1,305 @@
-Metadata-Version: 1.1
+Metadata-Version: 2.1
 Name: preggy
-Version: 1.4.2
-Summary: preggy is an assertion library for Python. (What were you 
``expect()``ing?)
+Version: 1.4.4
+Summary: preggy is an assertion library for Python.** What were you 
`expect`ing?
 Home-page: http://heynemann.github.io/preggy
-Author: Zearin
-Author-email: zea...@gonk.net
+Author: Bernardo Heynemann
+Author-email: heynem...@gmail.com
+Maintainer: Zearin
+Maintainer-email: zea...@gonk.net
 License: MIT
-Download-URL: https://github.com/heynemann/preggy/releases/tag/1.4.2
-Description-Content-Type: UNKNOWN
-Description: preggy is an assertion library for Python. (What were you 
``expect()``ing?)
+Download-URL: https://github.com/heynemann/preggy/releases/tag/1.4.4
+Description: preggy
+        ======
         
+        [![Build 
Status](https://travis-ci.org/heynemann/preggy.png?branch=master)](https://travis-ci.org/heynemann/preggy)
+        [![PyPi 
version](https://pypip.in/v/preggy/badge.png)](https://crate.io/packages/preggy/)
+        [![PyPi 
downloads](https://pypip.in/d/preggy/badge.png)](https://crate.io/packages/preggy/)
+        [![Coverage 
Status](https://coveralls.io/repos/heynemann/preggy/badge.png?branch=master)](https://coveralls.io/r/heynemann/preggy?branch=master)
         
-        EXAMPLE
-        =======
+        **preggy is an assertion library for Python.** What were you 
`expect`ing?
+        
+        Extracted from the [PyVows](http://pyvows.org) project.
+        
+        
+        Installing
+        ==========
+        
+        We recommend using `pip`:
+        
+            pip install preggy
+        
+        
+        Usage
+        =====
+        
+        Simply tell your test what to `expect()`:
+        
+        ```python
+        from preggy import expect
+        
+        def test_roses_are_red():
+            rose = Rose()
+            expect(rose.color).to_equal('red')
+        
+        def test_violets_are_not_red():
+            violet = Violet()
+            expect(violet.color).not_to_equal('red')
+        ```
+        
+        
+        Built-in Expectations
+        =====================
+        
+        
+        Equality
+        --------
+        
+        ```python
+        expect(4).to_equal(4)
+        expect(5).Not.to_equal(4)
+        expect(5).not_to_equal(4)  # same as previous
+        ```
+        
+        
+        Comparison
+        --------
+        
+        ```python
+        expect(4).to_be_lesser_than(5)
+        expect(5).to_be_greater_than(4)
+        expect(5).Not.to_be_lesser_than(4)
+        expect(4).not_to_be_greater(5)  # same as previous
+        
+        expect(4).to_be_lesser_or_equal_to(5)
+        expect(4).to_be_lesser_or_equal_to(4)
+        expect(5).not_to_be_lesser_or_equal_to(4)
+        
+        expect(5).to_be_greater_or_equal_to(4)
+        expect(5).to_be_greater_or_equal_to(5)
+        expect(4).not_to_be_greater_or_equal_to(5)
+        
+        expect("b").to_be_greater_than("a")
+        expect("a").to_be_lesser_than("b")
+        
+        expect([1, 2, 3]).to_be_greater_than([1, 2])  # comparing using length
+        expect((1, 2, 3)).to_be_greater_than((1, 2))  # comparing using length
+        expect({ "a": "b", "c": "d" }).to_be_greater_than({ "a": "b" })  # 
comparing using length of keys
+        ```
+        
+        
+        Similarity
+        ----------
+        
+        ```python
+        expect('sOmE RandOm     CAse StRiNG').to_be_like('some random case 
string')
+        
+        expect(1).to_be_like(1)
+        expect(1).to_be_like(1.0)
+        expect(1).to_be_like(long(1))
+        
+        expect([1, 2, 3]).to_be_like([3, 2, 1])
+        expect([1, 2, 3]).to_be_like((3, 2, 1))
+        expect([[1, 2], [3,4]]).to_be_like([4, 3], [2, 1]])
+        
+        expect({ 'some': 1, 'key': 2 }).to_be_like({ 'key': 2, 'some': 1 })
+        
+        expect('sOmE RandOm     CAse StRiNG').Not.to_be_like('other string')
+        expect('sOmE RandOm     CAse StRiNG').not_to_be_like('other string')  
# same as previous
+        
+        expect(1).not_to_be_like(2)
+        expect([[1, 2], [3,4]]).not_to_be_like([4, 4], [2, 1]])
+        expect({ 'some': 1, 'key': 2 }).not_to_be_like({ 'key': 3, 'some': 4 })
+        ```
+        
+        
+        Type
+        ----
+        
+        ```python
+        expect(os.path).to_be_a_function()
+        expect(1).to_be_numeric()
+        expect({ 'some': 1, 'key': 2 }).to_be_instance_of(dict)
+        expect(open(__file__)).to_be_a_file()
+        
+        expect('some').Not.to_be_a_function()
+        expect('some').Not.to_be_numeric()
+        expect('some').Not.to_be_instance_of(dict)
+        expect('some').Not.to_be_a_file()
+        ```
+        
+        
+        True / False
+        ------------
+        
+        ```python
+        expect(True).to_be_true()
+        expect('some').to_be_true()
+        expect([1, 2, 3]).to_be_true()
+        expect({ 'a': 'b' }).to_be_true()
+        expect(1).to_be_true()
+        
+        expect(False).to_be_false()  # not_to_be_true() would work, too. but, 
it's so...eww
+        expect(None).to_be_false()
+        expect('').to_be_false()
+        expect(0).to_be_false()
+        expect([]).to_be_false()
+        expect({}).to_be_false()
+        ```
         
-            from preggy import expect
         
-            def test_roses_are_red():
-                rose = Rose()
-                expect(rose.color).to_equal('red')
+        None
+        ----
+        
+        ```python
+        expect(None).to_be_null()
+        expect('some').Not.to_be_null()
+        expect('some').not_to_be_null()  # same as previous
+        ```
+        
+        
+        Inclusion
+        ---------
+        
+        ```python
+        expect([1, 2, 3]).to_include(2)
+        expect((1, 2, 3)).to_include(2)
+        expect('123').to_include('2')
+        expect({ 'a': 1, 'b': 2, 'c': 3}).to_include('b')
+        
+        expect([1, 3]).Not.to_include(2)  # or, exclusion...
+        ```
+        
+        
+        Regular Expressions
+        -------------------
+        
+        ```python
+        expect('some').to_match(r'^[a-z]+')
+        expect('Some').Not.to_match(r'^[a-z]+')
+        ```
+        
+        
+        Length
+        ------
+        
+        ```python
+        expect([1, 2, 3]).to_length(3)
+        expect((1, 2, 3)).to_length(3)
+        expect('abc').to_length(3)
+        expect({ 'a': 1, 'b': 2, 'c': 3}).to_length(3)
+        expect(lifo_queue).to_length(2)
+        expect(queue).to_length(3)
+        
+        expect([1]).Not.to_length(3)
+        expect([1]).not_to_length(3)  # same as previous
+        ```
+        
+        
+        Emptiness
+        ---------
+        
+        ```python
+        expect([]).to_be_empty()
+        expect(tuple()).to_be_empty()
+        expect({}).to_be_empty()
+        expect('').to_be_empty()
+        
+        expect([1]).not_to_be_empty()
+        expect((1,2)).not_to_be_empty()
+        expect({'a': 1}).not_to_be_empty()
+        expect('roses are red').not_to_be_empty()
+        ```
+        
+        
+        Exceptions
+        ----------
+        
+        ```python
+        expect(RuntimeError()).to_be_an_error() 
+        expect(RuntimeError()).to_be_an_error_like(RuntimeError)
+        expect(ValueError('error')).to_have_an_error_message_of('error')
+        
+        expect("I'm not an error").Not.to_be_an_error()
+        expect(ValueError()).Not.to_be_an_error_like(RuntimeError)
+        expect(ValueError('some')).Not.to_have_an_error_message_of('error')
+        
+        # when expecting a method to error
+        err = expect.error_to_happen(RuntimeError)  # attribute to a variable 
so you can use the exception later
+        
+        with err:
+            raise RuntimeError("something is wrong")
+        
+        expect(err).to_have_an_error_message_of('something is wrong')
+        
+        # or the shorter version
+        with expect.error_to_happen(RuntimeError, message="something is 
wrong"):
+            raise RuntimeError("something is wrong")
+        
+        # or if you don't care about the message:
+        with expect.error_to_happen(RuntimeError):
+            raise RuntimeError("something is wrong")
+        
+        # or if you need to make sure error does not happen
+        with expect.error_not_to_happen(RuntimeError, message="something is 
wrong"):
+            raise RuntimeError("something is wrong")  # Fails with 
AssertionError
+        
+        # or if you don't care about the message, only that the error does not 
happen:
+        with expect.error_not_to_happen(RuntimeError):
+            raise RuntimeError("something is wrong")  # Fails with 
AssertionError
+        ```
+        
+        Failure
+        -------
+        
+        ```python
+        expect.not_to_be_here()  # raises AssertionError
+        
+        # raises AssertionError with error message
+        expect.not_to_be_here("some error message")
+        ```
+        
+        Chained Assertions
+        ------------------
+        
+        ```python
+        # assertions may be chained, for brevity:
+        expect(6).not_to_be_null().to_equal(6)
+        
+        # a more *sensible* example:
+        expect(foo).not_to_be_null().to_equal(expected.get('foo'))
+        ```
+        
+        
+        Contributing
+        ============
+        See [CONTRIBUTING](CONTRIBUTING.md).
+        
+        
+        License
+        =======
+        
+        The MIT License (MIT)
         
-            def test_violets_are_not_red():
-                violet = Violet()
-                expect(violet.color).not_to_equal('red')
+        Copyright (c) 2013 Bernardo Heynemann <heynem...@gmail.com>
         
+        Permission is hereby granted, free of charge, to any person obtaining 
a copy
+        of this software and associated documentation files (the "Software"), 
to deal
+        in the Software without restriction, including without limitation the 
rights
+        to use, copy, modify, merge, publish, distribute, sublicense, and/or 
sell
+        copies of the Software, and to permit persons to whom the Software is
+        furnished to do so, subject to the following conditions:
         
-        For more info:
-        http://heynemann.github.io/preggy
+        The above copyright notice and this permission notice shall be 
included in
+        all copies or substantial portions of the Software.
         
+        THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, 
EXPRESS OR
+        IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF 
MERCHANTABILITY,
+        FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT 
SHALL THE
+        AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+        LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, 
ARISING FROM,
+        OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS 
IN
+        THE SOFTWARE.
         
 Keywords: test testing assert assertion library development
 Platform: UNKNOWN
@@ -48,3 +320,5 @@
 Classifier: Programming Language :: Python :: Implementation :: PyPy
 Classifier: Topic :: Software Development :: Libraries
 Classifier: Topic :: Software Development :: Testing
+Description-Content-Type: text/markdown
+Provides-Extra: tests
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/preggy-1.4.2/README.md new/preggy-1.4.4/README.md
--- old/preggy-1.4.2/README.md  2018-01-09 22:25:30.000000000 +0100
+++ new/preggy-1.4.4/README.md  2019-11-25 02:28:32.000000000 +0100
@@ -262,7 +262,7 @@
 
 Contributing
 ============
-See [CONTRIBUTING.md].
+See [CONTRIBUTING](CONTRIBUTING.md).
 
 
 License
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/preggy-1.4.2/preggy/__init__.py 
new/preggy-1.4.4/preggy/__init__.py
--- old/preggy-1.4.2/preggy/__init__.py 2018-01-09 22:33:41.000000000 +0100
+++ new/preggy-1.4.4/preggy/__init__.py 2019-11-26 03:17:29.000000000 +0100
@@ -1,26 +1,4 @@
 # -*- coding: utf-8 -*-
-'''preggy is an assertion library for Python. (What were you ``expect()``ing?)
-
-
-EXAMPLE
-=======
-
-    from preggy import expect
-
-    def test_roses_are_red():
-        rose = Rose()
-        expect(rose.color).to_equal('red')
-
-    def test_violets_are_not_red():
-        violet = Violet()
-        expect(violet.color).not_to_equal('red')
-
-
-For more info:
-http://heynemann.github.io/preggy
-
-'''
-
 # preggy assertions
 # https://github.com/heynemann/preggy
 
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/preggy-1.4.2/preggy/__meta__.py 
new/preggy-1.4.4/preggy/__meta__.py
--- old/preggy-1.4.2/preggy/__meta__.py 2018-01-09 22:33:38.000000000 +0100
+++ new/preggy-1.4.4/preggy/__meta__.py 2019-11-26 03:36:33.000000000 +0100
@@ -18,8 +18,8 @@
 #   GENERAL
 
#--------------------------------------------------------------------------------
 __name__        = 'preggy'  # normally preggy.__meta__
-__version__     = '1.4.2'
-__date__        = date(2018, 1, 9)  # TODO: auto-populate each release using a 
git hook
+__version__     = '1.4.4'
+__date__        = date(2019, 11, 25)  # TODO: auto-populate each release using 
a git hook
 __keywords__    = 'test testing assert assertion library development'
 __status__      = 'Production'
 
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/preggy-1.4.2/preggy/utils.py 
new/preggy-1.4.4/preggy/utils.py
--- old/preggy-1.4.2/preggy/utils.py    2018-01-09 22:33:10.000000000 +0100
+++ new/preggy-1.4.4/preggy/utils.py    2019-11-25 02:28:46.000000000 +0100
@@ -40,7 +40,7 @@
 def format_assertion_msg(assertion_clause, *args):
     raw_msg = 'Expected topic({{0!r}}) {assertion_clause}'
     raw_msg = raw_msg.format(assertion_clause=assertion_clause)
-    if len(args) is 2:
+    if len(args) == 2:
         raw_msg += ' {1!r}'
     return raw_msg
 
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/preggy-1.4.2/preggy.egg-info/PKG-INFO 
new/preggy-1.4.4/preggy.egg-info/PKG-INFO
--- old/preggy-1.4.2/preggy.egg-info/PKG-INFO   2018-01-09 22:34:01.000000000 
+0100
+++ new/preggy-1.4.4/preggy.egg-info/PKG-INFO   2019-11-26 03:37:57.000000000 
+0100
@@ -1,33 +1,305 @@
-Metadata-Version: 1.1
+Metadata-Version: 2.1
 Name: preggy
-Version: 1.4.2
-Summary: preggy is an assertion library for Python. (What were you 
``expect()``ing?)
+Version: 1.4.4
+Summary: preggy is an assertion library for Python.** What were you 
`expect`ing?
 Home-page: http://heynemann.github.io/preggy
-Author: Zearin
-Author-email: zea...@gonk.net
+Author: Bernardo Heynemann
+Author-email: heynem...@gmail.com
+Maintainer: Zearin
+Maintainer-email: zea...@gonk.net
 License: MIT
-Download-URL: https://github.com/heynemann/preggy/releases/tag/1.4.2
-Description-Content-Type: UNKNOWN
-Description: preggy is an assertion library for Python. (What were you 
``expect()``ing?)
+Download-URL: https://github.com/heynemann/preggy/releases/tag/1.4.4
+Description: preggy
+        ======
         
+        [![Build 
Status](https://travis-ci.org/heynemann/preggy.png?branch=master)](https://travis-ci.org/heynemann/preggy)
+        [![PyPi 
version](https://pypip.in/v/preggy/badge.png)](https://crate.io/packages/preggy/)
+        [![PyPi 
downloads](https://pypip.in/d/preggy/badge.png)](https://crate.io/packages/preggy/)
+        [![Coverage 
Status](https://coveralls.io/repos/heynemann/preggy/badge.png?branch=master)](https://coveralls.io/r/heynemann/preggy?branch=master)
         
-        EXAMPLE
-        =======
+        **preggy is an assertion library for Python.** What were you 
`expect`ing?
+        
+        Extracted from the [PyVows](http://pyvows.org) project.
+        
+        
+        Installing
+        ==========
+        
+        We recommend using `pip`:
+        
+            pip install preggy
+        
+        
+        Usage
+        =====
+        
+        Simply tell your test what to `expect()`:
+        
+        ```python
+        from preggy import expect
+        
+        def test_roses_are_red():
+            rose = Rose()
+            expect(rose.color).to_equal('red')
+        
+        def test_violets_are_not_red():
+            violet = Violet()
+            expect(violet.color).not_to_equal('red')
+        ```
+        
+        
+        Built-in Expectations
+        =====================
+        
+        
+        Equality
+        --------
+        
+        ```python
+        expect(4).to_equal(4)
+        expect(5).Not.to_equal(4)
+        expect(5).not_to_equal(4)  # same as previous
+        ```
+        
+        
+        Comparison
+        --------
+        
+        ```python
+        expect(4).to_be_lesser_than(5)
+        expect(5).to_be_greater_than(4)
+        expect(5).Not.to_be_lesser_than(4)
+        expect(4).not_to_be_greater(5)  # same as previous
+        
+        expect(4).to_be_lesser_or_equal_to(5)
+        expect(4).to_be_lesser_or_equal_to(4)
+        expect(5).not_to_be_lesser_or_equal_to(4)
+        
+        expect(5).to_be_greater_or_equal_to(4)
+        expect(5).to_be_greater_or_equal_to(5)
+        expect(4).not_to_be_greater_or_equal_to(5)
+        
+        expect("b").to_be_greater_than("a")
+        expect("a").to_be_lesser_than("b")
+        
+        expect([1, 2, 3]).to_be_greater_than([1, 2])  # comparing using length
+        expect((1, 2, 3)).to_be_greater_than((1, 2))  # comparing using length
+        expect({ "a": "b", "c": "d" }).to_be_greater_than({ "a": "b" })  # 
comparing using length of keys
+        ```
+        
+        
+        Similarity
+        ----------
+        
+        ```python
+        expect('sOmE RandOm     CAse StRiNG').to_be_like('some random case 
string')
+        
+        expect(1).to_be_like(1)
+        expect(1).to_be_like(1.0)
+        expect(1).to_be_like(long(1))
+        
+        expect([1, 2, 3]).to_be_like([3, 2, 1])
+        expect([1, 2, 3]).to_be_like((3, 2, 1))
+        expect([[1, 2], [3,4]]).to_be_like([4, 3], [2, 1]])
+        
+        expect({ 'some': 1, 'key': 2 }).to_be_like({ 'key': 2, 'some': 1 })
+        
+        expect('sOmE RandOm     CAse StRiNG').Not.to_be_like('other string')
+        expect('sOmE RandOm     CAse StRiNG').not_to_be_like('other string')  
# same as previous
+        
+        expect(1).not_to_be_like(2)
+        expect([[1, 2], [3,4]]).not_to_be_like([4, 4], [2, 1]])
+        expect({ 'some': 1, 'key': 2 }).not_to_be_like({ 'key': 3, 'some': 4 })
+        ```
+        
+        
+        Type
+        ----
+        
+        ```python
+        expect(os.path).to_be_a_function()
+        expect(1).to_be_numeric()
+        expect({ 'some': 1, 'key': 2 }).to_be_instance_of(dict)
+        expect(open(__file__)).to_be_a_file()
+        
+        expect('some').Not.to_be_a_function()
+        expect('some').Not.to_be_numeric()
+        expect('some').Not.to_be_instance_of(dict)
+        expect('some').Not.to_be_a_file()
+        ```
+        
+        
+        True / False
+        ------------
+        
+        ```python
+        expect(True).to_be_true()
+        expect('some').to_be_true()
+        expect([1, 2, 3]).to_be_true()
+        expect({ 'a': 'b' }).to_be_true()
+        expect(1).to_be_true()
+        
+        expect(False).to_be_false()  # not_to_be_true() would work, too. but, 
it's so...eww
+        expect(None).to_be_false()
+        expect('').to_be_false()
+        expect(0).to_be_false()
+        expect([]).to_be_false()
+        expect({}).to_be_false()
+        ```
         
-            from preggy import expect
         
-            def test_roses_are_red():
-                rose = Rose()
-                expect(rose.color).to_equal('red')
+        None
+        ----
+        
+        ```python
+        expect(None).to_be_null()
+        expect('some').Not.to_be_null()
+        expect('some').not_to_be_null()  # same as previous
+        ```
+        
+        
+        Inclusion
+        ---------
+        
+        ```python
+        expect([1, 2, 3]).to_include(2)
+        expect((1, 2, 3)).to_include(2)
+        expect('123').to_include('2')
+        expect({ 'a': 1, 'b': 2, 'c': 3}).to_include('b')
+        
+        expect([1, 3]).Not.to_include(2)  # or, exclusion...
+        ```
+        
+        
+        Regular Expressions
+        -------------------
+        
+        ```python
+        expect('some').to_match(r'^[a-z]+')
+        expect('Some').Not.to_match(r'^[a-z]+')
+        ```
+        
+        
+        Length
+        ------
+        
+        ```python
+        expect([1, 2, 3]).to_length(3)
+        expect((1, 2, 3)).to_length(3)
+        expect('abc').to_length(3)
+        expect({ 'a': 1, 'b': 2, 'c': 3}).to_length(3)
+        expect(lifo_queue).to_length(2)
+        expect(queue).to_length(3)
+        
+        expect([1]).Not.to_length(3)
+        expect([1]).not_to_length(3)  # same as previous
+        ```
+        
+        
+        Emptiness
+        ---------
+        
+        ```python
+        expect([]).to_be_empty()
+        expect(tuple()).to_be_empty()
+        expect({}).to_be_empty()
+        expect('').to_be_empty()
+        
+        expect([1]).not_to_be_empty()
+        expect((1,2)).not_to_be_empty()
+        expect({'a': 1}).not_to_be_empty()
+        expect('roses are red').not_to_be_empty()
+        ```
+        
+        
+        Exceptions
+        ----------
+        
+        ```python
+        expect(RuntimeError()).to_be_an_error() 
+        expect(RuntimeError()).to_be_an_error_like(RuntimeError)
+        expect(ValueError('error')).to_have_an_error_message_of('error')
+        
+        expect("I'm not an error").Not.to_be_an_error()
+        expect(ValueError()).Not.to_be_an_error_like(RuntimeError)
+        expect(ValueError('some')).Not.to_have_an_error_message_of('error')
+        
+        # when expecting a method to error
+        err = expect.error_to_happen(RuntimeError)  # attribute to a variable 
so you can use the exception later
+        
+        with err:
+            raise RuntimeError("something is wrong")
+        
+        expect(err).to_have_an_error_message_of('something is wrong')
+        
+        # or the shorter version
+        with expect.error_to_happen(RuntimeError, message="something is 
wrong"):
+            raise RuntimeError("something is wrong")
+        
+        # or if you don't care about the message:
+        with expect.error_to_happen(RuntimeError):
+            raise RuntimeError("something is wrong")
+        
+        # or if you need to make sure error does not happen
+        with expect.error_not_to_happen(RuntimeError, message="something is 
wrong"):
+            raise RuntimeError("something is wrong")  # Fails with 
AssertionError
+        
+        # or if you don't care about the message, only that the error does not 
happen:
+        with expect.error_not_to_happen(RuntimeError):
+            raise RuntimeError("something is wrong")  # Fails with 
AssertionError
+        ```
+        
+        Failure
+        -------
+        
+        ```python
+        expect.not_to_be_here()  # raises AssertionError
+        
+        # raises AssertionError with error message
+        expect.not_to_be_here("some error message")
+        ```
+        
+        Chained Assertions
+        ------------------
+        
+        ```python
+        # assertions may be chained, for brevity:
+        expect(6).not_to_be_null().to_equal(6)
+        
+        # a more *sensible* example:
+        expect(foo).not_to_be_null().to_equal(expected.get('foo'))
+        ```
+        
+        
+        Contributing
+        ============
+        See [CONTRIBUTING](CONTRIBUTING.md).
+        
+        
+        License
+        =======
+        
+        The MIT License (MIT)
         
-            def test_violets_are_not_red():
-                violet = Violet()
-                expect(violet.color).not_to_equal('red')
+        Copyright (c) 2013 Bernardo Heynemann <heynem...@gmail.com>
         
+        Permission is hereby granted, free of charge, to any person obtaining 
a copy
+        of this software and associated documentation files (the "Software"), 
to deal
+        in the Software without restriction, including without limitation the 
rights
+        to use, copy, modify, merge, publish, distribute, sublicense, and/or 
sell
+        copies of the Software, and to permit persons to whom the Software is
+        furnished to do so, subject to the following conditions:
         
-        For more info:
-        http://heynemann.github.io/preggy
+        The above copyright notice and this permission notice shall be 
included in
+        all copies or substantial portions of the Software.
         
+        THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, 
EXPRESS OR
+        IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF 
MERCHANTABILITY,
+        FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT 
SHALL THE
+        AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+        LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, 
ARISING FROM,
+        OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS 
IN
+        THE SOFTWARE.
         
 Keywords: test testing assert assertion library development
 Platform: UNKNOWN
@@ -48,3 +320,5 @@
 Classifier: Programming Language :: Python :: Implementation :: PyPy
 Classifier: Topic :: Software Development :: Libraries
 Classifier: Topic :: Software Development :: Testing
+Description-Content-Type: text/markdown
+Provides-Extra: tests
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/preggy-1.4.2/setup.py new/preggy-1.4.4/setup.py
--- old/preggy-1.4.2/setup.py   2018-01-09 22:21:01.000000000 +0100
+++ new/preggy-1.4.4/setup.py   2019-11-26 03:34:15.000000000 +0100
@@ -8,9 +8,11 @@
 # http://www.opensource.org/licenses/mit-license
 # Copyright (c) 2011 Bernardo Heynemann heynem...@gmail.com
 
+from io import open
+from os import path
 from setuptools import setup, find_packages
 
-from preggy import __doc__, __meta__, __version__
+from preggy import __meta__, __version__
 
 REQUIREMENTS = {
     'install': ['six', 'unidecode'],
@@ -19,20 +21,25 @@
     }
 }
 
+# read the contents of your README file
+this_directory = path.abspath(path.dirname(__file__))
+with open(path.join(this_directory, 'README.md'), encoding='utf-8') as f:
+    long_description = f.read()
 
 setup(
     name        ='preggy',
     version     =__version__,
-    description =__doc__.splitlines()[0],
-    long_description=__doc__,
+    description ='preggy is an assertion library for Python.** What were you 
`expect`ing?',
+    long_description=long_description,
+    long_description_content_type='text/markdown',
     keywords    =__meta__.__keywords__,
-    
+
     author      =__meta__.__author__,
     author_email=__meta__.__author_email__,
-    
+
     maintainer  =__meta__.__maintainer__,
     maintainer_email=__meta__.__maintainer_email__,
-    
+
     url         =__meta__.__url__,
     download_url=__meta__.__download_url__,
 
@@ -41,7 +48,7 @@
     #bugtrack_url='http://github.com/heynemann/preggy/issues',
 
     license     =__meta__.__license__,
-    
+
     classifiers=[
         'Development Status :: 4 - Beta',
         'Intended Audience :: Developers',
@@ -63,7 +70,7 @@
     ],
 
     packages=find_packages(exclude=['tests', 'tests.*']),
-    
+
     install_requires= REQUIREMENTS['install'],
     extras_require  = REQUIREMENTS['extras'],
 

++++++ split-readme.patch ++++++
--- /var/tmp/diff_new_pack.KMoQH9/_old  2020-03-19 19:53:46.936276587 +0100
+++ /var/tmp/diff_new_pack.KMoQH9/_new  2020-03-19 19:53:46.940276586 +0100
@@ -1,7 +1,8 @@
-diff -Nru preggy-1.4.2-orig/LICENSE preggy-1.4.2/LICENSE
---- preggy-1.4.2-orig/LICENSE  1970-01-01 07:00:00.000000000 +0700
-+++ preggy-1.4.2/LICENSE       2019-02-21 18:41:15.876505357 +0700
-@@ -0,0 +1,21 @@
+Index: preggy-1.4.4/LICENSE
+===================================================================
+--- /dev/null
++++ preggy-1.4.4/LICENSE
+@@ -0,0 +1,22 @@
 +The MIT License (MIT)
 +
 +Copyright (c) 2013 Bernardo Heynemann <heynem...@gmail.com>
@@ -23,10 +24,12 @@
 +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
 +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
 +THE SOFTWARE.
-diff -Nru preggy-1.4.2-orig/README.md preggy-1.4.2/README.md
---- preggy-1.4.2-orig/README.md        2018-01-10 04:25:30.000000000 +0700
-+++ preggy-1.4.2/README.md     2019-02-21 18:41:41.844674859 +0700
-@@ -258,34 +258,3 @@
++
+Index: preggy-1.4.4/README.md
+===================================================================
+--- preggy-1.4.4.orig/README.md
++++ preggy-1.4.4/README.md
+@@ -258,34 +258,3 @@ expect(6).not_to_be_null().to_equal(6)
  # a more *sensible* example:
  expect(foo).not_to_be_null().to_equal(expected.get('foo'))
  ```
@@ -34,7 +37,7 @@
 -
 -Contributing
 -============
--See [CONTRIBUTING.md].
+-See [CONTRIBUTING](CONTRIBUTING.md).
 -
 -
 -License


Reply via email to