Hello community, here is the log from the commit of package python-pyasn1 for openSUSE:Factory checked in at 2018-08-10 09:46:47 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/python-pyasn1 (Old) and /work/SRC/openSUSE:Factory/.python-pyasn1.new (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "python-pyasn1" Fri Aug 10 09:46:47 2018 rev:36 rq:627900 version:0.4.4 Changes: -------- --- /work/SRC/openSUSE:Factory/python-pyasn1/python-pyasn1.changes 2018-05-29 10:26:22.313587434 +0200 +++ /work/SRC/openSUSE:Factory/.python-pyasn1.new/python-pyasn1.changes 2018-08-10 09:46:49.341984572 +0200 @@ -1,0 +2,9 @@ +Tue Aug 7 14:42:43 UTC 2018 - [email protected] + +- update to 0.4.4 + * Fixed native encoder type map to include all ASN.1 types + rather than just ambiguous ones + * Fixed crash in `.prettyPrint` of `Sequence` and `Set` occurring + at OPTIONAL components + +------------------------------------------------------------------- Old: ---- pyasn1-0.4.3.tar.gz New: ---- pyasn1-0.4.4.tar.gz ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ python-pyasn1.spec ++++++ --- /var/tmp/diff_new_pack.ySwpdp/_old 2018-08-10 09:46:51.121987432 +0200 +++ /var/tmp/diff_new_pack.ySwpdp/_new 2018-08-10 09:46:51.121987432 +0200 @@ -1,7 +1,7 @@ # # spec file for package python-pyasn1 # -# Copyright (c) 2017 SUSE LINUX GmbH, Nuernberg, Germany. +# Copyright (c) 2018 SUSE LINUX GmbH, Nuernberg, Germany. # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -19,7 +19,7 @@ %{?!python_module:%define python_module() python-%{**} python3-%{**}} %define oldpython python Name: python-pyasn1 -Version: 0.4.3 +Version: 0.4.4 Release: 0 Summary: ASN.1 types and codecs License: BSD-2-Clause @@ -34,7 +34,6 @@ Obsoletes: %{oldpython}-asn1 < 0.2.3 Provides: %{oldpython}-asn1 = %{version} %endif -BuildRoot: %{_tmppath}/%{name}-%{version}-build BuildArch: noarch %python_subpackages @@ -60,7 +59,8 @@ %files %python_files %defattr(-,root,root,-) -%doc CHANGES.rst LICENSE.rst README.md TODO.rst +%doc CHANGES.rst README.md TODO.rst +%license LICENSE.rst %{python_sitelib}/* %changelog ++++++ pyasn1-0.4.3.tar.gz -> pyasn1-0.4.4.tar.gz ++++++ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/pyasn1-0.4.3/CHANGES.rst new/pyasn1-0.4.4/CHANGES.rst --- old/pyasn1-0.4.3/CHANGES.rst 2018-05-23 22:37:34.000000000 +0200 +++ new/pyasn1-0.4.4/CHANGES.rst 2018-07-26 09:20:34.000000000 +0200 @@ -1,4 +1,12 @@ +Revision 0.4.4, released 26-07-2018 +----------------------------------- + +- Fixed native encoder type map to include all ASN.1 types + rather than just ambiguous ones +- Fixed crash in `.prettyPrint` of `Sequence` and `Set` occurring + at OPTIONAL components + Revision 0.4.3, released 23-05-2018 ----------------------------------- diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/pyasn1-0.4.3/PKG-INFO new/pyasn1-0.4.4/PKG-INFO --- old/pyasn1-0.4.3/PKG-INFO 2018-05-23 22:38:22.000000000 +0200 +++ new/pyasn1-0.4.4/PKG-INFO 2018-07-26 09:31:34.000000000 +0200 @@ -1,6 +1,6 @@ Metadata-Version: 1.1 Name: pyasn1 -Version: 0.4.3 +Version: 0.4.4 Summary: ASN.1 types and codecs Home-page: https://github.com/etingof/pyasn1 Author: Ilya Etingof <[email protected]> @@ -29,5 +29,6 @@ Classifier: Programming Language :: Python :: 3.4 Classifier: Programming Language :: Python :: 3.5 Classifier: Programming Language :: Python :: 3.6 +Classifier: Programming Language :: Python :: 3.7 Classifier: Topic :: Communications Classifier: Topic :: Software Development :: Libraries :: Python Modules diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/pyasn1-0.4.3/README.md new/pyasn1-0.4.4/README.md --- old/pyasn1-0.4.3/README.md 2018-05-23 22:37:34.000000000 +0200 +++ new/pyasn1-0.4.4/README.md 2018-06-30 20:12:09.000000000 +0200 @@ -19,7 +19,7 @@ * Generic implementation of ASN.1 types (X.208) * Standards compliant BER/CER/DER codecs * Dumps/loads ASN.1 structures from Python types -* 100% Python, works with Python 2.4 up to Python 3.6 +* 100% Python, works with Python 2.4 up to Python 3.7 * MT-safe * Contributed ASN.1 compiler [Asn1ate](https://github.com/kimgr/asn1ate) diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/pyasn1-0.4.3/docs/source/pyasn1/contents.rst new/pyasn1-0.4.4/docs/source/pyasn1/contents.rst --- old/pyasn1-0.4.3/docs/source/pyasn1/contents.rst 2018-01-04 16:19:55.000000000 +0100 +++ new/pyasn1-0.4.4/docs/source/pyasn1/contents.rst 2018-06-30 20:12:09.000000000 +0200 @@ -20,7 +20,7 @@ Both `pyasn1 <https://github.com/etingof/pyasn1>`_ and `pyasn1-modules <https://github.com/etingof/pyasn1-modules>`_ libraries -can be used out-of-the-box with Python versions 2.4 through 3.6. +can be used out-of-the-box with Python versions 2.4 through 3.7. No external dependencies required. .. _pyasn1-types: diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/pyasn1-0.4.3/pyasn1/__init__.py new/pyasn1-0.4.4/pyasn1/__init__.py --- old/pyasn1-0.4.3/pyasn1/__init__.py 2018-03-29 16:31:57.000000000 +0200 +++ new/pyasn1-0.4.4/pyasn1/__init__.py 2018-07-26 09:26:18.000000000 +0200 @@ -1,7 +1,7 @@ import sys # https://www.python.org/dev/peps/pep-0396/ -__version__ = '0.4.3' +__version__ = '0.4.4' 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.4.3/pyasn1/codec/native/encoder.py new/pyasn1-0.4.4/pyasn1/codec/native/encoder.py --- old/pyasn1-0.4.3/pyasn1/codec/native/encoder.py 2018-03-29 16:31:57.000000000 +0200 +++ new/pyasn1-0.4.4/pyasn1/codec/native/encoder.py 2018-07-26 08:45:52.000000000 +0200 @@ -132,14 +132,40 @@ useful.UTCTime.tagSet: OctetStringEncoder() } -# Type-to-codec map for ambiguous ASN.1 types + +# Put in ambiguous & non-ambiguous types for faster codec lookup typeMap = { + univ.Boolean.typeId: BooleanEncoder(), + univ.Integer.typeId: IntegerEncoder(), + univ.BitString.typeId: BitStringEncoder(), + univ.OctetString.typeId: OctetStringEncoder(), + univ.Null.typeId: NullEncoder(), + univ.ObjectIdentifier.typeId: ObjectIdentifierEncoder(), + univ.Enumerated.typeId: IntegerEncoder(), + univ.Real.typeId: RealEncoder(), + # Sequence & Set have same tags as SequenceOf & SetOf univ.Set.typeId: SetEncoder(), univ.SetOf.typeId: SequenceOfEncoder(), univ.Sequence.typeId: SequenceEncoder(), univ.SequenceOf.typeId: SequenceOfEncoder(), univ.Choice.typeId: ChoiceEncoder(), - univ.Any.typeId: AnyEncoder() + univ.Any.typeId: AnyEncoder(), + # character string types + char.UTF8String.typeId: OctetStringEncoder(), + char.NumericString.typeId: OctetStringEncoder(), + char.PrintableString.typeId: OctetStringEncoder(), + char.TeletexString.typeId: OctetStringEncoder(), + char.VideotexString.typeId: OctetStringEncoder(), + char.IA5String.typeId: OctetStringEncoder(), + char.GraphicString.typeId: OctetStringEncoder(), + char.VisibleString.typeId: OctetStringEncoder(), + char.GeneralString.typeId: OctetStringEncoder(), + char.UniversalString.typeId: OctetStringEncoder(), + char.BMPString.typeId: OctetStringEncoder(), + # useful types + useful.ObjectDescriptor.typeId: OctetStringEncoder(), + useful.GeneralizedTime.typeId: OctetStringEncoder(), + useful.UTCTime.typeId: OctetStringEncoder() } diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/pyasn1-0.4.3/pyasn1/type/univ.py new/pyasn1-0.4.4/pyasn1/type/univ.py --- old/pyasn1-0.4.3/pyasn1/type/univ.py 2018-03-29 16:31:57.000000000 +0200 +++ new/pyasn1-0.4.4/pyasn1/type/univ.py 2018-07-26 08:45:52.000000000 +0200 @@ -2457,7 +2457,7 @@ scope += 1 representation = self.__class__.__name__ + ':\n' for idx, componentValue in enumerate(self._componentValues): - if componentValue is not noValue: + if componentValue is not noValue and componentValue.isValue: representation += ' ' * scope if self.componentType: representation += self.componentType.getNameByPosition(idx) diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/pyasn1-0.4.3/pyasn1.egg-info/PKG-INFO new/pyasn1-0.4.4/pyasn1.egg-info/PKG-INFO --- old/pyasn1-0.4.3/pyasn1.egg-info/PKG-INFO 2018-05-23 22:38:21.000000000 +0200 +++ new/pyasn1-0.4.4/pyasn1.egg-info/PKG-INFO 2018-07-26 09:31:33.000000000 +0200 @@ -1,6 +1,6 @@ Metadata-Version: 1.1 Name: pyasn1 -Version: 0.4.3 +Version: 0.4.4 Summary: ASN.1 types and codecs Home-page: https://github.com/etingof/pyasn1 Author: Ilya Etingof <[email protected]> @@ -29,5 +29,6 @@ Classifier: Programming Language :: Python :: 3.4 Classifier: Programming Language :: Python :: 3.5 Classifier: Programming Language :: Python :: 3.6 +Classifier: Programming Language :: Python :: 3.7 Classifier: Topic :: Communications Classifier: Topic :: Software Development :: Libraries :: Python Modules diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/pyasn1-0.4.3/setup.py new/pyasn1-0.4.4/setup.py --- old/pyasn1-0.4.3/setup.py 2018-03-29 16:31:57.000000000 +0200 +++ new/pyasn1-0.4.4/setup.py 2018-06-30 20:12:09.000000000 +0200 @@ -30,6 +30,7 @@ Programming Language :: Python :: 3.4 Programming Language :: Python :: 3.5 Programming Language :: Python :: 3.6 +Programming Language :: Python :: 3.7 Topic :: Communications Topic :: Software Development :: Libraries :: Python Modules """
