Hello community, here is the log from the commit of package python-pyasn1 for openSUSE:Factory checked in at 2017-10-18 12:50:29 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/python-pyasn1 (Old) and /work/SRC/openSUSE:Factory/.python-pyasn1.new (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "python-pyasn1" Wed Oct 18 12:50:29 2017 rev:33 rq:533652 version:0.3.7 Changes: -------- --- /work/SRC/openSUSE:Factory/python-pyasn1/python-pyasn1.changes 2017-09-25 13:54:50.881400312 +0200 +++ /work/SRC/openSUSE:Factory/.python-pyasn1.new/python-pyasn1.changes 2017-10-18 12:50:30.327153608 +0200 @@ -1,0 +2,6 @@ +Thu Oct 12 07:46:21 UTC 2017 - [email protected] + +- updated to upstream release 0.3.7 + * Fixed ASN.1 time types pickling/deepcopy'ing + +------------------------------------------------------------------- Old: ---- pyasn1-0.3.6.tar.gz New: ---- pyasn1-0.3.7.tar.gz ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ python-pyasn1.spec ++++++ --- /var/tmp/diff_new_pack.frR1bj/_old 2017-10-18 12:50:31.211112206 +0200 +++ /var/tmp/diff_new_pack.frR1bj/_new 2017-10-18 12:50:31.215112019 +0200 @@ -20,7 +20,7 @@ %define oldpython python Name: python-pyasn1 %global modname pyasn1 -Version: 0.3.6 +Version: 0.3.7 Release: 0 Summary: ASN.1 types and codecs License: BSD-2-Clause ++++++ pyasn1-0.3.6.tar.gz -> pyasn1-0.3.7.tar.gz ++++++ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/pyasn1-0.3.6/CHANGES.rst new/pyasn1-0.3.7/CHANGES.rst --- old/pyasn1-0.3.6/CHANGES.rst 2017-09-20 22:26:33.000000000 +0200 +++ new/pyasn1-0.3.7/CHANGES.rst 2017-10-04 22:07:17.000000000 +0200 @@ -1,4 +1,9 @@ +Revision 0.3.7, released 04-10-2017 +----------------------------------- + +- Fixed ASN.1 time types pickling/deepcopy'ing + Revision 0.3.6, released 21-09-2017 ----------------------------------- diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/pyasn1-0.3.6/PKG-INFO new/pyasn1-0.3.7/PKG-INFO --- old/pyasn1-0.3.6/PKG-INFO 2017-09-20 22:36:17.000000000 +0200 +++ new/pyasn1-0.3.7/PKG-INFO 2017-10-04 22:10:15.000000000 +0200 @@ -1,6 +1,6 @@ Metadata-Version: 1.1 Name: pyasn1 -Version: 0.3.6 +Version: 0.3.7 Summary: ASN.1 types and codecs Home-page: https://github.com/etingof/pyasn1 Author: Ilya Etingof <[email protected]> diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/pyasn1-0.3.6/pyasn1/__init__.py new/pyasn1-0.3.7/pyasn1/__init__.py --- old/pyasn1-0.3.6/pyasn1/__init__.py 2017-09-20 22:21:52.000000000 +0200 +++ new/pyasn1-0.3.7/pyasn1/__init__.py 2017-10-04 22:07:17.000000000 +0200 @@ -1,7 +1,7 @@ import sys # http://www.python.org/dev/peps/pep-0396/ -__version__ = '0.3.6' +__version__ = '0.3.7' if sys.version_info[:2] < (2, 4): raise RuntimeError('PyASN1 requires Python 2.4 or later') diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/pyasn1-0.3.6/pyasn1/type/useful.py new/pyasn1-0.3.7/pyasn1/type/useful.py --- old/pyasn1-0.3.6/pyasn1/type/useful.py 2017-09-15 14:21:01.000000000 +0200 +++ new/pyasn1-0.3.7/pyasn1/type/useful.py 2017-09-30 23:27:52.000000000 +0200 @@ -37,7 +37,9 @@ class FixedOffset(datetime.tzinfo): """Fixed offset in minutes east from UTC.""" - def __init__(self, offset, name): + # defaulted arguments required + # https: // docs.python.org / 2.3 / lib / datetime - tzinfo.html + def __init__(self, offset=0, name='UTC'): self.__offset = datetime.timedelta(minutes=offset) self.__name = name @@ -50,7 +52,7 @@ def dst(self, dt): return datetime.timedelta(0) - UTC = FixedOffset(0, 'UTC') + UTC = FixedOffset() @property def asDateTime(self): diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/pyasn1-0.3.6/pyasn1.egg-info/PKG-INFO new/pyasn1-0.3.7/pyasn1.egg-info/PKG-INFO --- old/pyasn1-0.3.6/pyasn1.egg-info/PKG-INFO 2017-09-20 22:36:17.000000000 +0200 +++ new/pyasn1-0.3.7/pyasn1.egg-info/PKG-INFO 2017-10-04 22:10:14.000000000 +0200 @@ -1,6 +1,6 @@ Metadata-Version: 1.1 Name: pyasn1 -Version: 0.3.6 +Version: 0.3.7 Summary: ASN.1 types and codecs Home-page: https://github.com/etingof/pyasn1 Author: Ilya Etingof <[email protected]> diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/pyasn1-0.3.6/tests/type/test_useful.py new/pyasn1-0.3.7/tests/type/test_useful.py --- old/pyasn1-0.3.6/tests/type/test_useful.py 2017-09-18 09:43:19.000000000 +0200 +++ new/pyasn1-0.3.7/tests/type/test_useful.py 2017-09-30 23:27:52.000000000 +0200 @@ -6,6 +6,7 @@ # import sys import datetime +from copy import deepcopy try: import unittest2 as unittest @@ -72,6 +73,10 @@ def testToDateTime8(self): assert datetime.datetime(2017, 7, 11, 0) == useful.GeneralizedTime('2017071100').asDateTime + def testCopy(self): + dt = useful.GeneralizedTime("20170916234254+0130").asDateTime + assert dt == deepcopy(dt) + class UTCTimeTestCase(BaseTestCase):
