<feed xmlns='http://www.w3.org/2005/Atom'>
<title>delta/python-packages/pyjwt.git/tests/test_api_jwt.py, branch version-2.0.1</title>
<subtitle>github.com: progrium/pyjwt.git
</subtitle>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/python-packages/pyjwt.git/'/>
<entry>
<title>Simplify black configuration to be closer to upstream defaults (#568)</title>
<updated>2020-12-21T16:30:48+00:00</updated>
<author>
<name>Jon Dufresne</name>
<email>jon.dufresne@gmail.com</email>
</author>
<published>2020-12-21T16:30:48+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/python-packages/pyjwt.git/commit/?id=811ae79ceaae8ad9bbad24c30e2d3dd4d920e4df'/>
<id>811ae79ceaae8ad9bbad24c30e2d3dd4d920e4df</id>
<content type='text'>
* Simplify black configuration to be closer to upstream defaults

Avoid extra configuration by simply going with Black defaults. This
allows removing some configuration options, thus simplifying the overall
configuration.

It also makes the code style closer to community conventions. As more
projects adopt black formatting, more code will look like the black
defaults.

Further, the default 88 tends to create more readable lines, IMO. The
black rationale is located at:
https://black.readthedocs.io/en/stable/the_black_code_style.html#line-length

* Update tests/test_api_jws.py

Co-authored-by: José Padilla &lt;jpadilla@webapplicate.com&gt;

* [pre-commit.ci] auto fixes from pre-commit.com hooks

for more information, see https://pre-commit.ci

* Update tests/test_api_jws.py

* [pre-commit.ci] auto fixes from pre-commit.com hooks

for more information, see https://pre-commit.ci

Co-authored-by: José Padilla &lt;jpadilla@webapplicate.com&gt;
Co-authored-by: pre-commit-ci[bot] &lt;66853113+pre-commit-ci[bot]@users.noreply.github.com&gt;</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
* Simplify black configuration to be closer to upstream defaults

Avoid extra configuration by simply going with Black defaults. This
allows removing some configuration options, thus simplifying the overall
configuration.

It also makes the code style closer to community conventions. As more
projects adopt black formatting, more code will look like the black
defaults.

Further, the default 88 tends to create more readable lines, IMO. The
black rationale is located at:
https://black.readthedocs.io/en/stable/the_black_code_style.html#line-length

* Update tests/test_api_jws.py

Co-authored-by: José Padilla &lt;jpadilla@webapplicate.com&gt;

* [pre-commit.ci] auto fixes from pre-commit.com hooks

for more information, see https://pre-commit.ci

* Update tests/test_api_jws.py

* [pre-commit.ci] auto fixes from pre-commit.com hooks

for more information, see https://pre-commit.ci

Co-authored-by: José Padilla &lt;jpadilla@webapplicate.com&gt;
Co-authored-by: pre-commit-ci[bot] &lt;66853113+pre-commit-ci[bot]@users.noreply.github.com&gt;</pre>
</div>
</content>
</entry>
<entry>
<title>Add utility functions to assist test skipping (#563)</title>
<updated>2020-12-19T23:40:27+00:00</updated>
<author>
<name>Jon Dufresne</name>
<email>jon.dufresne@gmail.com</email>
</author>
<published>2020-12-19T23:40:27+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/python-packages/pyjwt.git/commit/?id=9acab9cad0ee536f41aca39f5d4cf09680bf1ffb'/>
<id>9acab9cad0ee536f41aca39f5d4cf09680bf1ffb</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>Split PyJWT/PyJWS classes to tighten type interfaces (#559)</title>
<updated>2020-12-19T23:32:12+00:00</updated>
<author>
<name>Jon Dufresne</name>
<email>jon.dufresne@gmail.com</email>
</author>
<published>2020-12-19T23:32:12+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/python-packages/pyjwt.git/commit/?id=94d102b2e38d09f3c5ec459a8365de8a86c51fe5'/>
<id>94d102b2e38d09f3c5ec459a8365de8a86c51fe5</id>
<content type='text'>
The class PyJWT was previously a subclass of PyJWS. However, this
combination does not follow the Liskov substitution principle. That is,
using PyJWT in place of a PyJWS would not produce correct results or
follow type contracts.

While these classes look to share a common interface it doesn't go
beyond the method names "encode" and "decode" and so is merely
superficial.

The classes have been split into two. PyJWT now uses composition instead
of inheritance to achieve the desired behavior. Splitting the classes in
this way allowed for precising the type interfaces.

The complete parameter to .decode() has been removed. This argument was
used to alter the return type of .decode(). Now, there are two different
methods with more explicit return types and values. The new method name
is .decode_complete(). This fills the previous role filled by
.decode(..., complete=True).

Closes #554, #396, #394

Co-authored-by: Sam Bull &lt;git@sambull.org&gt;

Co-authored-by: Sam Bull &lt;git@sambull.org&gt;</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
The class PyJWT was previously a subclass of PyJWS. However, this
combination does not follow the Liskov substitution principle. That is,
using PyJWT in place of a PyJWS would not produce correct results or
follow type contracts.

While these classes look to share a common interface it doesn't go
beyond the method names "encode" and "decode" and so is merely
superficial.

The classes have been split into two. PyJWT now uses composition instead
of inheritance to achieve the desired behavior. Splitting the classes in
this way allowed for precising the type interfaces.

The complete parameter to .decode() has been removed. This argument was
used to alter the return type of .decode(). Now, there are two different
methods with more explicit return types and values. The new method name
is .decode_complete(). This fills the previous role filled by
.decode(..., complete=True).

Closes #554, #396, #394

Co-authored-by: Sam Bull &lt;git@sambull.org&gt;

Co-authored-by: Sam Bull &lt;git@sambull.org&gt;</pre>
</div>
</content>
</entry>
<entry>
<title>Do not mutate the input payload in PyJWT.encode() (#557)</title>
<updated>2020-12-19T14:09:13+00:00</updated>
<author>
<name>Jon Dufresne</name>
<email>jon.dufresne@gmail.com</email>
</author>
<published>2020-12-19T14:09:13+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/python-packages/pyjwt.git/commit/?id=2e1e69d4ddfddaba35b6ee99ead1b430654ed661'/>
<id>2e1e69d4ddfddaba35b6ee99ead1b430654ed661</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>Use existing key_path() utility function throughout tests (#540)</title>
<updated>2020-12-17T01:26:47+00:00</updated>
<author>
<name>Jon Dufresne</name>
<email>jon.dufresne@gmail.com</email>
</author>
<published>2020-12-17T01:26:47+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/python-packages/pyjwt.git/commit/?id=6ce4e35a9d373bb969235d99bdb42965e7bba38a'/>
<id>6ce4e35a9d373bb969235d99bdb42965e7bba38a</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>Run pyupgrade to simplify code and use Python 3.6 syntax (#536)</title>
<updated>2020-12-16T22:20:03+00:00</updated>
<author>
<name>Jon Dufresne</name>
<email>jon.dufresne@gmail.com</email>
</author>
<published>2020-12-16T22:20:03+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/python-packages/pyjwt.git/commit/?id=9324d6f007bbd0a48edafe1889d0af7eb0064103'/>
<id>9324d6f007bbd0a48edafe1889d0af7eb0064103</id>
<content type='text'>
pyugrade is a command line tool to automatically update Python syntax to
modern usage and patterns. For additional details, see:

https://github.com/asottile/pyupgrade

Changes made by the tool:

- Use short Python3 super() syntax.
- Use f-strings when they are simple and more readable.
- Drop Python 2 u prefix from strings.
- Drop "r" argument from open(). It is the default and so specifying it is
  unnecessary.</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
pyugrade is a command line tool to automatically update Python syntax to
modern usage and patterns. For additional details, see:

https://github.com/asottile/pyupgrade

Changes made by the tool:

- Use short Python3 super() syntax.
- Use f-strings when they are simple and more readable.
- Drop Python 2 u prefix from strings.
- Drop "r" argument from open(). It is the default and so specifying it is
  unnecessary.</pre>
</div>
</content>
</entry>
<entry>
<title>Drop deprecation warnings (#515)</title>
<updated>2020-08-24T16:00:06+00:00</updated>
<author>
<name>José Padilla</name>
<email>jpadilla@webapplicate.com</email>
</author>
<published>2020-08-24T16:00:06+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/python-packages/pyjwt.git/commit/?id=f690976596bb74221f5a81fc9afffd5609bc4e70'/>
<id>f690976596bb74221f5a81fc9afffd5609bc4e70</id>
<content type='text'>
* Drop deprecation warnings

* Add missing keys

* Remove commented exceptions

* Undo lambda change

* Remove unused keys</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
* Drop deprecation warnings

* Add missing keys

* Remove commented exceptions

* Undo lambda change

* Remove unused keys</pre>
</div>
</content>
</entry>
<entry>
<title>Remove unnecessary compatibility shims for Python 2 (#498)</title>
<updated>2020-06-19T05:53:17+00:00</updated>
<author>
<name>Jon Dufresne</name>
<email>jon.dufresne@gmail.com</email>
</author>
<published>2020-06-19T05:53:17+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/python-packages/pyjwt.git/commit/?id=dc8dc7d05d54bd5502295601c01b557caab92a76'/>
<id>dc8dc7d05d54bd5502295601c01b557caab92a76</id>
<content type='text'>
As the project is Python 3 only, can remove the compatibility shims in
compat.py.

Type checking has been simplified where it can:
  - str is iterable
  - bytes is iterable
  - use isinstance instead of issubclass

The remaining function bytes_from_int() has been moved to utils.py.</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
As the project is Python 3 only, can remove the compatibility shims in
compat.py.

Type checking has been simplified where it can:
  - str is iterable
  - bytes is iterable
  - use isinstance instead of issubclass

The remaining function bytes_from_int() has been moved to utils.py.</pre>
</div>
</content>
</entry>
<entry>
<title>Run pyupgrade across project to use modern Python 3 conventions (#491)</title>
<updated>2020-06-08T05:40:09+00:00</updated>
<author>
<name>Jon Dufresne</name>
<email>jon.dufresne@gmail.com</email>
</author>
<published>2020-06-08T05:40:09+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/python-packages/pyjwt.git/commit/?id=65bca5c4db1b62dc0eb05f40aaa86dabf898fdae'/>
<id>65bca5c4db1b62dc0eb05f40aaa86dabf898fdae</id>
<content type='text'>
pyupgrade is a tool to automatically upgrade Python syntax for newer
versions of the language. Running pyupgrade removes several
Python-2-isms that are no longer necessary now that the project is
Python 3 only.

https://github.com/asottile/pyupgrade</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
pyupgrade is a tool to automatically upgrade Python syntax for newer
versions of the language. Running pyupgrade removes several
Python-2-isms that are no longer necessary now that the project is
Python 3 only.

https://github.com/asottile/pyupgrade</pre>
</div>
</content>
</entry>
<entry>
<title>Require tweak (#280)</title>
<updated>2020-05-14T14:50:39+00:00</updated>
<author>
<name>Pau Ruiz Safont</name>
<email>psafont@users.noreply.github.com</email>
</author>
<published>2020-05-14T14:50:39+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/python-packages/pyjwt.git/commit/?id=008490a85932415ec14ab7d61c64216ddaef75fc'/>
<id>008490a85932415ec14ab7d61c64216ddaef75fc</id>
<content type='text'>
* Use require options as a list, instead of booleans

Deprecate the use of the boolean options

* Add test for the new require option

* Add documentation on how to use the require option

Co-authored-by: Pau Ruiz i Safont &lt;psafont@ebi.ac.uk&gt;</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
* Use require options as a list, instead of booleans

Deprecate the use of the boolean options

* Add test for the new require option

* Add documentation on how to use the require option

Co-authored-by: Pau Ruiz i Safont &lt;psafont@ebi.ac.uk&gt;</pre>
</div>
</content>
</entry>
</feed>
