Skip to content

Bump pyasn1 from 0.4.4 to 0.4.6#22

Closed
dependabot-preview[bot] wants to merge 1 commit into
masterfrom
dependabot/pip/pyasn1-0.4.6
Closed

Bump pyasn1 from 0.4.4 to 0.4.6#22
dependabot-preview[bot] wants to merge 1 commit into
masterfrom
dependabot/pip/pyasn1-0.4.6

Conversation

@dependabot-preview

Copy link
Copy Markdown

Bumps pyasn1 from 0.4.4 to 0.4.6.

Release notes

Sourced from pyasn1's releases.

Release 0.4.6

This release brings support for one overlooked ASN.1 feature:

  • Added previously missing SET OF ANY construct encoding/decoding support.

As a consequence, SequenceOf/SetOf objects behavior has been made closer to Python list and more consistent with the rest of pyasn1 types (at the expense of potential backward compatibility issues):

  • New elements to SequenceOf/SetOf objects can now be added at any
    position - the requirement for the new elements to reside at the end
    of the existing ones (i.e. s[len(s)] = 123) is removed.
  • List-like slicing support added to SequenceOf/SetOf objects.
  • Removed default initializer from SequenceOf/SetOf types to ensure
    consistent behaviour with the rest of ASN.1 types. Before this change,
    SequenceOf/SetOf instances immediately become value objects behaving
    like an empty list. With this change, SequenceOf/SetOf objects
    remain schema objects unless a component is added or .clear() is
    called.
    This change can potentially cause incompatibilities with existing
    pyasn1 objects which assume SequenceOf/SetOf instances are value
    objects right upon instantiation.
    The behaviour of Sequence/Set types depends on the componentType
    initializer: if no componentType is given, the behavior is the
    same as SequenceOf/SetOf have. If componentType is given, but
    neither optional nor defaulted components are present, created
    instance remains being the schema object. If, however, either optional or
    defaulted component is present, created instance immediately
    becomes a value object.
  • Added .reset() method to all constructed types to turn value object
    into a schema object.

Also, a couple of minor usability improvements:

  • Added omitEmptyOptionals option which is respected by Sequence
    and Set encoders. When omitEmptyOptionals is set to True, empty
    initialized optional components are not encoded. Default is False.
  • Added PyAsn1UnicodeDecodeError/PyAsn1UnicodeDecodeError exceptions
    to help the caller treating unicode errors happening internally
    to pyasn1 at the upper layers.
  • Added support for subseconds CER/DER encoding edge cases in
    GeneralizedTime codec.

And, of course, bug fixes \o/

  • Fixed 3-digit fractional seconds value CER/DER encoding of
    GeneralizedTime.
  • Fixed AnyDecoder to accept possible TagMap as asn1Spec
    to make dumping raw value operational

Complete list of changes can be found in CHANGELOG.

... (truncated)
Changelog

Sourced from pyasn1's changelog.

Revision 0.4.6, released 31-07-2019

  • Added previously missing SET OF ANY construct encoding/decoding support.
  • Added omitEmptyOptionals option which is respected by Sequence and Set encoders. When omitEmptyOptionals is set to True, empty initialized optional components are not encoded. Default is False.
  • New elements to SequenceOf/SetOf objects can now be added at any position - the requirement for the new elements to reside at the end of the existing ones (i.e. s[len(s)] = 123) is removed.
  • List-like slicing support added to SequenceOf/SetOf objects.
  • Removed default initializer from SequenceOf/SetOf types to ensure consistent behaviour with the rest of ASN.1 types. Before this change, SequenceOf/SetOf instances immediately become value objects behaving like an empty list. With this change, SequenceOf/SetOf objects remain schema objects unless a component is added or .clear() is called. This change can potentially cause incompatibilities with existing pyasn1 objects which assume SequenceOf/SetOf instances are value objects right upon instantiation. The behaviour of Sequence/Set types depends on the componentType initializer: if on componentType is given, the behaviour is the same as SequenceOf/SetOf have. IF componentType is given, but neither optional nor defaulted components are present, the created instance remains schema object, If, however, either optional or defaulted component isi present, the created instance immediately becomes a value object.
  • Added .reset() method to all constructed types to turn value object into a schema object.
  • Added PyAsn1UnicodeDecodeError/PyAsn1UnicodeDecodeError exceptions to help the caller treating unicode errors happening internally to pyasn1 at the upper layers.
  • Added support for subseconds CER/DER encoding edge cases in GeneralizedTime codec.
  • Fixed 3-digit fractional seconds value CER/DER encoding of GeneralizedTime.
  • Fixed AnyDecoder to accept possible TagMap as asn1Spec to make dumping raw value operational

Revision 0.4.5, released 29-12-2018

  • Debug logging refactored for more efficiency when disabled and for more functionality when in use. Specifically, the global LOG object can easily be used from any function/method, not just from codec main loop as it used to be.
  • More debug logging added to BER family of codecs to ease encoding problems troubleshooting.
  • Copyright notice extended to the year 2019
  • Fixed defaulted constructed SEQUENCE component initialization.
Commits
  • bb6b6e2 Release 0.4.6
  • fb824be Fix failing unit tests on Py25
  • fc10c68 Remove a couple of except as statements to benefit old Pythons
  • 2f7535c Document base ASN.1 types
  • 1897482 Fix Python builtins ReST references in docstrings
  • bc6cc03 Fix Travis docs build on Python 3.4+
  • 5a5e096 Remove Python id from repr
  • 2d32a37 Enable docs build in Travis
  • e1500c6 Add exception classes documentation
  • 4b24fcb Add docstring for .reset() and .clear() methods
  • Additional commits viewable in compare view

Dependabot compatibility score

Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.


Dependabot commands and options

You can trigger Dependabot actions by commenting on this PR:

  • @dependabot rebase will rebase this PR
  • @dependabot recreate will recreate this PR, overwriting any edits that have been made to it
  • @dependabot merge will merge this PR after your CI passes on it
  • @dependabot squash and merge will squash and merge this PR after your CI passes on it
  • @dependabot cancel merge will cancel a previously requested merge and block automerging
  • @dependabot reopen will reopen this PR if it is closed
  • @dependabot ignore this [patch|minor|major] version will close this PR and stop Dependabot creating any more for this minor/major version (unless you reopen the PR or upgrade to it). To ignore the version in this PR you can just close it
  • @dependabot ignore this dependency will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)
  • @dependabot use these labels will set the current labels as the default for future PRs for this repo and language
  • @dependabot use these reviewers will set the current reviewers as the default for future PRs for this repo and language
  • @dependabot use these assignees will set the current assignees as the default for future PRs for this repo and language
  • @dependabot use this milestone will set the current milestone as the default for future PRs for this repo and language
  • @dependabot badge me will comment on this PR with code to add a "Dependabot enabled" badge to your readme

Additionally, you can set the following in your Dependabot dashboard:

  • Update frequency (including time of day and day of week)
  • Automerge options (never/patch/minor, and dev/runtime dependencies)
  • Pull request limits (per update run and/or open at any time)
  • Out-of-range updates (receive only lockfile updates, if desired)
  • Security updates (receive only security updates, if desired)

Finally, you can contact us by mentioning @dependabot.

Bumps [pyasn1](https://github.com/etingof/pyasn1) from 0.4.4 to 0.4.6.
- [Release notes](https://github.com/etingof/pyasn1/releases)
- [Changelog](https://github.com/etingof/pyasn1/blob/master/CHANGES.rst)
- [Commits](etingof/pyasn1@v0.4.4...v0.4.6)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
@dependabot-preview dependabot-preview Bot added the dependencies Pull requests that update a dependency file label Aug 1, 2019
@dependabot-preview

Copy link
Copy Markdown
Author

Superseded by #24.

@dependabot-preview dependabot-preview Bot deleted the dependabot/pip/pyasn1-0.4.6 branch September 2, 2019 05:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

dependencies Pull requests that update a dependency file

Projects

None yet

Development

Successfully merging this pull request may close these issues.

0 participants