14
0
forked from pool/python-pyasn1

Accepting request 545767 from home:apersaud:branches:devel:languages:python

update to latest version

OBS-URL: https://build.opensuse.org/request/show/545767
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-pyasn1?expand=0&rev=69
This commit is contained in:
Michael Ströder
2017-11-26 22:36:01 +00:00
committed by Git OBS Bridge
parent f85ecb5c79
commit 1e08ecb59d
4 changed files with 52 additions and 8 deletions

View File

@@ -1,3 +0,0 @@
version https://git-lfs.github.com/spec/v1
oid sha256:187f2a66d617683f8e82d5c00033b7c8a0287e1da88a9d577aebec321cad4965
size 115350

3
pyasn1-0.4.2.tar.gz Normal file
View File

@@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:d258b0a71994f7770599835249cece1caef3c70def868c4915e6e5ca49b67d15
size 118404

View File

@@ -1,3 +1,48 @@
-------------------------------------------------------------------
Sun Nov 26 21:22:26 UTC 2017 - arun@gmx.de
- update to version 0.4.2:
* Fixed explicit tag splitting in chunked encoding mode at
OctetString and BitString encoders
- changes from version 0.4.1:
* ANY DEFINED BY clause support implemented
* Encoders refactored to take either a value (as ASN.1 object) or a
Python value plus ASN.1 schema
* BitString decoder optimised for better performance when running on
constructed encoding
* Constructed types' .getComponentBy*() methods accept the `default`
parameter to return instead if schema object is to be returned
* Constructed types' .getComponentBy*() methods accept the
`instantiate` parameter to disable automatic inner component
instantiation
* The ASN.1 types' `__repr__` implementation reworked for better
readability at the cost of not being `eval`-compliant
* Most ASN.1 types' `__str__` magic methods (except for OctetString
and character types) reworked to call `.prettyPrint()` rather than
`.prettyPrint` calling `__str__` as it was before. The intention
is to eventually deprecate `.prettyPrint()` in favor of `str()`.
The other related change is that `str()` of enumerations and
boolean types will return string label instead of number.
* Fixed Choice.clear() to fully reset internal state of the object
* Sphinx documentation rearranged, simplified and reworded
* The `isValue` singleton is now the only way to indicate ASN.1
schema as opposed to ASN.1 schema instance. The legacy `None`
initializer support has been removed.
* Changed `Null` object initialization behaviour: previous default
value (`''`) is not set anymore. Thus `Null()` call produces a
ASN.1 schema object, while `Null('')` - value object.
* Migrated all docs and references from SourceForge
* Imports PEP8'ed
* Fixed ASN.1 encoder not to omit empty substrate produced for inner
component if the inner component belongs to the simple class (as
opposed to constructed class)
* Fixed CER/DER encoders to respect tagged CHOICE when ordering SET
components
* Fixed ASN.1 types not to interfere with the Pickle protocol
* Fixed Sequence/SequenceOf types decoding heuristics in schema-less
decoding mode
-------------------------------------------------------------------
Thu Oct 12 07:46:21 UTC 2017 - michael@stroeder.com

View File

@@ -19,14 +19,13 @@
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
%define oldpython python
Name: python-pyasn1
%global modname pyasn1
Version: 0.3.7
Version: 0.4.2
Release: 0
Summary: ASN.1 types and codecs
License: BSD-2-Clause
Group: Development/Languages/Python
Url: https://github.com/etingof/%{modname}
Source: https://pypi.io/packages/source/p/%{modname}/%{modname}-%{version}.tar.gz
Url: https://github.com/etingof/pyasn1
Source: https://pypi.io/packages/source/p/pyasn1/pyasn1-%{version}.tar.gz
BuildRequires: %{python_module pytest}
BuildRequires: %{python_module setuptools}
BuildRequires: fdupes
@@ -47,7 +46,7 @@ then generalized to be suitable for a wide range of protocols based on ASN.1
specification.
%prep
%setup -q -n %{modname}-%{version}
%setup -q -n pyasn1-%{version}
%build
%python_build