Hello community,

here is the log from the commit of package python-base58 for openSUSE:Factory 
checked in at 2020-07-26 16:18:24
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/python-base58 (Old)
 and      /work/SRC/openSUSE:Factory/.python-base58.new.3592 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "python-base58"

Sun Jul 26 16:18:24 2020 rev:3 rq:822408 version:2.0.1

Changes:
--------
--- /work/SRC/openSUSE:Factory/python-base58/python-base58.changes      
2020-06-10 00:42:47.086087210 +0200
+++ /work/SRC/openSUSE:Factory/.python-base58.new.3592/python-base58.changes    
2020-07-26 16:19:28.924816035 +0200
@@ -1,0 +2,9 @@
+Thu Jul 23 02:06:04 UTC 2020 - John Vandenberg <[email protected]>
+
+- Switched back to PyPI source now it has needed files
+- Update to v2.0.1
+  * Include license file in source distribution
+  * Typecheck tests now that hamcrest has typing
+  * Replace custom exception assert with hamcrest utils
+
+-------------------------------------------------------------------

Old:
----
  base58-2.0.0.tar.gz

New:
----
  base58-2.0.1.tar.gz

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

Other differences:
------------------
++++++ python-base58.spec ++++++
--- /var/tmp/diff_new_pack.n8XMHp/_old  2020-07-26 16:19:29.648816712 +0200
+++ /var/tmp/diff_new_pack.n8XMHp/_new  2020-07-26 16:19:29.648816712 +0200
@@ -19,13 +19,13 @@
 %define skip_python2 1
 %{?!python_module:%define python_module() python-%{**} python3-%{**}}
 Name:           python-base58
-Version:        2.0.0
+Version:        2.0.1
 Release:        0
 Summary:        Base58 and Base58Check implementation
 License:        MIT
 Group:          Development/Languages/Python
 URL:            https://github.com/keis/base58
-Source:         
https://github.com/keis/base58/archive/v%{version}.tar.gz#/base58-%{version}.tar.gz
+Source:         
https://files.pythonhosted.org/packages/source/b/base58/base58-%{version}.tar.gz
 BuildRequires:  %{python_module PyHamcrest}
 BuildRequires:  %{python_module pytest}
 BuildRequires:  %{python_module setuptools}

++++++ base58-2.0.0.tar.gz -> base58-2.0.1.tar.gz ++++++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/base58-2.0.0/.travis.yml new/base58-2.0.1/.travis.yml
--- old/base58-2.0.0/.travis.yml        2020-01-14 18:05:26.000000000 +0100
+++ new/base58-2.0.1/.travis.yml        1970-01-01 01:00:00.000000000 +0100
@@ -1,21 +0,0 @@
-dist: xenial
-language: python
-python:
-    - "3.5"
-    - "3.6"
-    - "3.7"
-    - "3.8"
-    - "pypy3.5-7.0.0"
-    - "pypy3.6-7.1.1"
-install:
-    - pip install -r test-requirements.txt
-script:
-    # Only run mypy in "3.5" job, because installing it fails in PyPy jobs
-    - |
-      if [[ $TRAVIS_PYTHON_VERSION == '3.5' ]]; then
-        pip install mypy &&
-        mypy .
-      fi
-    - pytest --flake8 --cov=base58 .
-after_success:
-    coveralls
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/base58-2.0.0/CHANGELOG.md 
new/base58-2.0.1/CHANGELOG.md
--- old/base58-2.0.0/CHANGELOG.md       2020-01-14 18:05:26.000000000 +0100
+++ new/base58-2.0.1/CHANGELOG.md       1970-01-01 01:00:00.000000000 +0100
@@ -1,44 +0,0 @@
-## Changelog
-
-### v2.0.0 / 2020-01-14
-- [#47](https://github.com/keis/base58/pull/47) Distribute type data (PEP 561) 
(@hukkinj1)
-- [#48](https://github.com/keis/base58/pull/48) Use setup.cfg for mypy conf 
(@hukkinj1)
-- [#46](https://github.com/keis/base58/pull/46) Allow str input to 
b58encode_check (@keis)
-- [#44](https://github.com/keis/base58/pull/44) Type annotate public API 
(@hukkinj1)
-- [#43](https://github.com/keis/base58/pull/43) Drop python 2.7 and 3.4 
support (#43) (@hukkinj1)
-- [#42](https://github.com/keis/base58/pull/42) Test py3.7 and py3.8. Set 
python_requires in setup.py (@hukkinj1)
-- [#41](https://github.com/keis/base58/pull/41) Fix encode functions' return 
types in README (@hukkinj1)
-- [#40](https://github.com/keis/base58/pull/40) Enhance/add alphabet param 
(#40) (@dannywillems)
-- [#39](https://github.com/keis/base58/pull/39) accept other bytes-like types 
(@fametrano)
-
-### v1.0.3 / 2018-12-28
-- [#37](https://github.com/keis/base58/pull/37) Update base58.py (@pdelteil)
-
-### v1.0.2 / 2018-09-27
-- [#34](https://github.com/keis/base58/pull/34) Add bumpversion config (@keis)
-
-### v1.0.1 / 2018-09-25
-- [#31](https://github.com/keis/base58/pull/31) Include tests in PyPI tarball 
(@dotlambda)
-
-### v1.0.0 / 2018-04-20
-- [#27](https://github.com/keis/base58/pull/27) Use bytes for both input and 
output (@keis)
-- [#25](https://github.com/keis/base58/pull/25) Do not strip newline from 
input to cli (@keis)
-- [#26](https://github.com/keis/base58/pull/26) Use tox and pytest to run 
tests (@keis)
-- [#22](https://github.com/keis/base58/pull/22) Add the packaging metadata to 
build the base58 snap (@elopio)
-- [#17](https://github.com/keis/base58/pull/17) improved error message 
(@fametrano)
-- [#21](https://github.com/keis/base58/pull/21) clearer padding (@fametrano)
-
-### v0.2.5 / 2017-04-04
-- [#14](https://github.com/keis/base58/pull/14) Slight optimization, version 
increment (@gappleto97)
-- [#12](https://github.com/keis/base58/pull/12) Add integer support (#12) 
(@gappleto97)
-- [#10](https://github.com/keis/base58/pull/10) Add more test systems 
(@gappleto97)
-
-### v0.2.4 / 2016-10-28
-- [#8](https://github.com/keis/base58/pull/8) Package metadata (@keis)
-
-### v0.2.3 / 2016-06-14
-- [#6](https://github.com/keis/base58/pull/6) Improve error message when the 
type is not bytes (@keis, @zkanda)
-
-### v0.2.2 / 2015-04-09
-- [#3](https://github.com/keis/base58/pull/3) test round trips (@oconnor663)
-- [#2](https://github.com/keis/base58/pull/2) fix encoding of empty string 
(@keis)
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/base58-2.0.0/MANIFEST.in new/base58-2.0.1/MANIFEST.in
--- old/base58-2.0.0/MANIFEST.in        2020-01-14 18:05:26.000000000 +0100
+++ new/base58-2.0.1/MANIFEST.in        2020-06-06 15:16:43.000000000 +0200
@@ -1 +1,2 @@
 include *.py
+include COPYING
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/base58-2.0.0/PKG-INFO new/base58-2.0.1/PKG-INFO
--- old/base58-2.0.0/PKG-INFO   1970-01-01 01:00:00.000000000 +0100
+++ new/base58-2.0.1/PKG-INFO   2020-06-06 15:23:58.000000000 +0200
@@ -0,0 +1,17 @@
+Metadata-Version: 1.2
+Name: base58
+Version: 2.0.1
+Summary: Base58 and Base58Check implementation
+Home-page: https://github.com/keis/base58
+Author: David Keijser
+Author-email: [email protected]
+License: MIT
+Description: UNKNOWN
+Platform: UNKNOWN
+Classifier: Development Status :: 5 - Production/Stable
+Classifier: Intended Audience :: Developers
+Classifier: Natural Language :: English
+Classifier: License :: OSI Approved :: MIT License
+Classifier: Programming Language :: Python
+Classifier: Programming Language :: Python :: 3
+Requires-Python: >=3.5
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/base58-2.0.0/base58/__init__.py 
new/base58-2.0.1/base58/__init__.py
--- old/base58-2.0.0/base58/__init__.py 2020-01-14 18:05:26.000000000 +0100
+++ new/base58-2.0.1/base58/__init__.py 2020-06-06 15:21:37.000000000 +0200
@@ -12,7 +12,7 @@
 from hashlib import sha256
 from typing import Union
 
-__version__ = '2.0.0'
+__version__ = '2.0.1'
 
 # 58 character alphabet used
 BITCOIN_ALPHABET = \
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/base58-2.0.0/base58.egg-info/PKG-INFO 
new/base58-2.0.1/base58.egg-info/PKG-INFO
--- old/base58-2.0.0/base58.egg-info/PKG-INFO   1970-01-01 01:00:00.000000000 
+0100
+++ new/base58-2.0.1/base58.egg-info/PKG-INFO   2020-06-06 15:23:58.000000000 
+0200
@@ -0,0 +1,17 @@
+Metadata-Version: 1.2
+Name: base58
+Version: 2.0.1
+Summary: Base58 and Base58Check implementation
+Home-page: https://github.com/keis/base58
+Author: David Keijser
+Author-email: [email protected]
+License: MIT
+Description: UNKNOWN
+Platform: UNKNOWN
+Classifier: Development Status :: 5 - Production/Stable
+Classifier: Intended Audience :: Developers
+Classifier: Natural Language :: English
+Classifier: License :: OSI Approved :: MIT License
+Classifier: Programming Language :: Python
+Classifier: Programming Language :: Python :: 3
+Requires-Python: >=3.5
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/base58-2.0.0/base58.egg-info/SOURCES.txt 
new/base58-2.0.1/base58.egg-info/SOURCES.txt
--- old/base58-2.0.0/base58.egg-info/SOURCES.txt        1970-01-01 
01:00:00.000000000 +0100
+++ new/base58-2.0.1/base58.egg-info/SOURCES.txt        2020-06-06 
15:23:58.000000000 +0200
@@ -0,0 +1,15 @@
+COPYING
+MANIFEST.in
+README.md
+setup.cfg
+setup.py
+test_base58.py
+base58/__init__.py
+base58/__main__.py
+base58/py.typed
+base58.egg-info/PKG-INFO
+base58.egg-info/SOURCES.txt
+base58.egg-info/dependency_links.txt
+base58.egg-info/entry_points.txt
+base58.egg-info/not-zip-safe
+base58.egg-info/top_level.txt
\ No newline at end of file
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/base58-2.0.0/base58.egg-info/dependency_links.txt 
new/base58-2.0.1/base58.egg-info/dependency_links.txt
--- old/base58-2.0.0/base58.egg-info/dependency_links.txt       1970-01-01 
01:00:00.000000000 +0100
+++ new/base58-2.0.1/base58.egg-info/dependency_links.txt       2020-06-06 
15:23:58.000000000 +0200
@@ -0,0 +1 @@
+
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/base58-2.0.0/base58.egg-info/entry_points.txt 
new/base58-2.0.1/base58.egg-info/entry_points.txt
--- old/base58-2.0.0/base58.egg-info/entry_points.txt   1970-01-01 
01:00:00.000000000 +0100
+++ new/base58-2.0.1/base58.egg-info/entry_points.txt   2020-06-06 
15:23:58.000000000 +0200
@@ -0,0 +1,3 @@
+[console_scripts]
+base58 = base58.__main__:main
+
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/base58-2.0.0/base58.egg-info/not-zip-safe 
new/base58-2.0.1/base58.egg-info/not-zip-safe
--- old/base58-2.0.0/base58.egg-info/not-zip-safe       1970-01-01 
01:00:00.000000000 +0100
+++ new/base58-2.0.1/base58.egg-info/not-zip-safe       2020-06-06 
15:23:58.000000000 +0200
@@ -0,0 +1 @@
+
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/base58-2.0.0/base58.egg-info/top_level.txt 
new/base58-2.0.1/base58.egg-info/top_level.txt
--- old/base58-2.0.0/base58.egg-info/top_level.txt      1970-01-01 
01:00:00.000000000 +0100
+++ new/base58-2.0.1/base58.egg-info/top_level.txt      2020-06-06 
15:23:58.000000000 +0200
@@ -0,0 +1 @@
+base58
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/base58-2.0.0/setup.cfg new/base58-2.0.1/setup.cfg
--- old/base58-2.0.0/setup.cfg  2020-01-14 18:05:26.000000000 +0100
+++ new/base58-2.0.1/setup.cfg  2020-06-06 15:23:58.000000000 +0200
@@ -1,5 +1,5 @@
 [bumpversion]
-current_version = 2.0.0
+current_version = 2.0.1
 
 [bumpversion:file:setup.py]
 
@@ -10,11 +10,13 @@
 warn_unused_ignores = True
 warn_redundant_casts = True
 warn_unused_configs = True
+check_untyped_defs = True
 incremental = False
 
-[mypy-hamcrest.*]
-ignore_missing_imports = True
-
 [mypy-setuptools.*]
 ignore_missing_imports = True
 
+[egg_info]
+tag_build = 
+tag_date = 0
+
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/base58-2.0.0/setup.py new/base58-2.0.1/setup.py
--- old/base58-2.0.0/setup.py   2020-01-14 18:05:26.000000000 +0100
+++ new/base58-2.0.1/setup.py   2020-06-06 15:21:37.000000000 +0200
@@ -4,7 +4,7 @@
     name='base58',
     packages=['base58'],
     package_data={'base58': ['py.typed']},
-    version='2.0.0',
+    version='2.0.1',
     description='Base58 and Base58Check implementation',
     author='David Keijser',
     author_email='[email protected]',
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/base58-2.0.0/snap/snapcraft.yaml 
new/base58-2.0.1/snap/snapcraft.yaml
--- old/base58-2.0.0/snap/snapcraft.yaml        2020-01-14 18:05:26.000000000 
+0100
+++ new/base58-2.0.1/snap/snapcraft.yaml        1970-01-01 01:00:00.000000000 
+0100
@@ -1,18 +0,0 @@
-name: base58
-version: git
-summary: Base58 and Base58Check implementation
-description: |
-  Base58 and Base58Check implementation compatible with what is used by the
-  bitcoin network.
-
-grade: stable
-confinement: strict
-
-apps:
-  base58:
-    command: base58
-
-parts:
-  base58:
-    source: .
-    plugin: python
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/base58-2.0.0/test-requirements.txt 
new/base58-2.0.1/test-requirements.txt
--- old/base58-2.0.0/test-requirements.txt      2020-01-14 18:05:26.000000000 
+0100
+++ new/base58-2.0.1/test-requirements.txt      1970-01-01 01:00:00.000000000 
+0100
@@ -1,5 +0,0 @@
-pytest
-pytest-flake8
-pytest-cov
-PyHamcrest
-coveralls
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/base58-2.0.0/test_base58.py 
new/base58-2.0.1/test_base58.py
--- old/base58-2.0.0/test_base58.py     2020-01-14 18:05:26.000000000 +0100
+++ new/base58-2.0.1/test_base58.py     2020-03-10 18:52:24.000000000 +0100
@@ -1,30 +1,10 @@
-from contextlib import contextmanager
 from itertools import product
-from hamcrest import assert_that, equal_to, instance_of
+from hamcrest import assert_that, equal_to, calling, raises
 from base58 import (
     b58encode, b58decode, b58encode_check, b58decode_check, b58encode_int,
     b58decode_int, BITCOIN_ALPHABET, alphabet)
 
 
-class RaisesContext(object):
-    pass
-
-
-@contextmanager
-def assert_raises(matcher=None, message=''):
-    # Short hand for instance_of matcher
-    if isinstance(matcher, (type,)):
-        matcher = instance_of(matcher)
-
-    context = RaisesContext()
-    try:
-        yield context
-    except Exception as e:
-        context.exception = e
-
-    assert_that(context.exception, matcher, message)
-
-
 def test_simple_encode():
     data = b58encode(b'hello world')
     assert_that(data, equal_to(b'StV1DL6CwTryKyV'))
@@ -81,13 +61,12 @@
     out = b58encode_check(data)
     assert_that(out, equal_to(b'3vQB7B6MrGQZaxCuFg4oh'))
     back = b58decode_check(out)
-    assert_that(back, b'hello world')
+    assert_that(back, equal_to(b'hello world'))
 
 
 def test_check_failure():
     data = '3vQB7B6MrGQZaxCuFg4oH'
-    with assert_raises(ValueError):
-        b58decode_check(data)
+    assert_that(calling(b58decode_check).with_args(data), raises(ValueError))
 
 
 def test_round_trips():
@@ -101,9 +80,9 @@
 
 def test_simple_integers():
     for idx, char in enumerate(BITCOIN_ALPHABET):
-        char = bytes([char])
-        assert_that(b58decode_int(char), equal_to(idx))
-        assert_that(b58encode_int(idx), equal_to(char))
+        charbytes = bytes([char])
+        assert_that(b58decode_int(charbytes), equal_to(idx))
+        assert_that(b58encode_int(idx), equal_to(charbytes))
 
 
 def test_large_integer():
@@ -113,4 +92,4 @@
 
 
 def test_alphabet_alias_exists_and_equals_bitcoin_alphabet():
-    assert_that(alphabet, BITCOIN_ALPHABET)
+    assert_that(alphabet, equal_to(BITCOIN_ALPHABET))
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/base58-2.0.0/tox.ini new/base58-2.0.1/tox.ini
--- old/base58-2.0.0/tox.ini    2020-01-14 18:05:26.000000000 +0100
+++ new/base58-2.0.1/tox.ini    1970-01-01 01:00:00.000000000 +0100
@@ -1,6 +0,0 @@
-[tox]
-envlist = py35
-
-[testenv]
-deps = -rtest-requirements.txt
-commands = pytest --pep8 --flakes --cov=base58 . []


Reply via email to