summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
* try ubuntu bionic on travisbionicAsif Saif Uddin2020-05-151-0/+1
|
* Require tweak (#280)Pau Ruiz Safont2020-05-143-12/+47
| | | | | | | | | | | * 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 <psafont@ebi.ac.uk>
* Document top-level .encode and .decode to close #459 (#482)Dima Tisnek2020-04-262-4/+64
| | | Co-authored-by: José Padilla <jpadilla@webapplicate.com>
* Improve documentation for audience usage (#484)Correy Lim2020-04-261-8/+35
| | | | | | | | | | | | | | | | | | | | | | | * Add code example for `aud` being an array The previous code example only showed the `aud` claim as a single case-sensitive string, despite the documentation mentioning that the `aud` claim can be an array of case-sensitive strings Add a code block demonstrating the `aud` claim being an array of case-sensitive strings to make it more clear to the user that it is a permitted use of the `aud` claim * Add example of the `audience` param as an iterable Demonstrate to users reading the documentation that the `audience` parameter is not restricted to the `string` type, but can also accept an iterable, as implemented in PR#306 https://github.com/jpadilla/pyjwt/pull/306 * Fix short title underlines Short title underlines throw warnings in reStructuredText linters
* Create main.ymlJosé Padilla2020-04-061-0/+40
|
* Simplify `python_requires` (#478)Michael2020-03-241-1/+1
|
* Add support of python 3.8 (#452)Bastien Vallet2019-12-273-3/+6
|
* Update CHANGELOG.mdJosé Padilla2019-11-231-0/+17
|
* Fix 406 (#454)justinbaur2019-11-162-7/+56
| | | | | | | | | | * Added header option for encode * added tests and None check * updated quotes for consistency * format fixes after tox
* Fix simple typo: encododed -> encoded (#462)Tim Gates2019-11-141-1/+1
|
* Remove Python 2.7 compatibility (#457)Bastien Vallet2019-11-128-87/+31
| | | | | | * Remove py27 support * [py27] Remove useless compatibility files
* Create FUNDING.ymlJosé Padilla2019-11-041-0/+3
|
* DX Tweaks (#450)José Padilla2019-10-2136-1395/+1737
| | | | | | | | | | * Setup pre-commit hooks * Run initial `tox -e lint` * Fix package name * Fix .travis.yml
* Update .gitignoreJosé Padilla2019-10-201-0/+1
|
* Catch BadSignatureError raised by ecdsa 0.13.3 on verification errors (#448)StefanBruens2019-10-201-1/+3
| | | | | | The new ecdsa no longer uses AssertionError when the signature is too long. This happens in the test suite, where "123" is appended to the signature. Fixes #447
* Fix mypy errors (#449)José Padilla2019-10-201-4/+4
|
* Remove setup.py test command in favor of pytest and tox (#442)Jon Dufresne2019-10-062-16/+4
| | | | | | | | | Using pytest and tox directly is simpler and more conventional then going through setup.py. Using setup.py installs packages as eggs where as tox uses the more typical pip. Overall simplifies setup.py. Fixes #415
* Rename [wheel] section to [bdist_wheel] as the former is legacy (#441)Jon Dufresne2019-09-281-1/+1
| | | | | | | | | | | Fixes warning when running the `python3 setup.py bdist_wheel` command: The [wheel] section is deprecated. Use [bdist_wheel] instead. For additional details, see: https://github.com/pypa/wheel/blob/d2f5b43c866295de7b3963da9fd049f1ca4b1194/wheel/bdist_wheel.py#L124-L131 https://pythonwheels.com/
* Pass python_requires argument to setuptools (#440)Jon Dufresne2019-09-281-0/+1
| | | | | | | | | | | | | | | | | | | Helps pip decide what version of the library to install. This is especially useful when removing support for EOL Python versions. https://packaging.python.org/guides/distributing-packages-using-setuptools/#python-requires > If your project only runs on certain Python versions, setting the > python_requires argument to the appropriate PEP 440 version specifier > string will prevent pip from installing the project on other Python > versions. https://setuptools.readthedocs.io/en/latest/setuptools.html#new-and-changed-setup-keywords > python_requires > > A string corresponding to a version specifier (as defined in PEP 440) > for the Python version, used to specify the Requires-Python defined in > PEP 345.
* Prefer https:// links where available (#439)Jon Dufresne2019-09-284-6/+6
|
* Correct type for json_encoder argument (#438)Jon Dufresne2019-09-282-4/+4
| | | | | | | | | | | Per recent upstream fix to typeshed, json.dumps() cls argument should be optional type JSONEncoder. https://github.com/python/typeshed/commit/8e0d288ea49a34f9bd21b1598ec487414a339a1f Fixes mypy error: jwt/api_jws.py:102: error: Argument "cls" to "dumps" has incompatible type "Optional[Callable[..., Any]]"; expected "Optional[Type[JSONEncoder]]" jwt/api_jwt.py:61: error: Argument "cls" to "dumps" has incompatible type "Optional[Callable[..., Any]]"; expected "Optional[Type[JSONEncoder]]"
* Document (and prefer) `pyjwt[crypto]` req format (#426)Gunnlaugur Thor Briem2019-06-121-2/+7
|
* Run mypy with tox (#421)José Padilla2019-05-043-8/+12
|
* Invoke pytest directly. Avoids use of easy_install and interaction between ↵Jason R. Coombs2019-05-041-5/+3
| | | | flake8 and tests. Fixes #416. (#417)
* Fix linter error in test_cli (#414)Jason R. Coombs2019-05-041-1/+1
|
* Decode return type is dict[str, Any] (#393)Jacopo Farina2019-01-311-2/+3
| | | | | | * Use Dict instead of Mapping for return type of decode * Use str as a dictionary key
* Fix pytest and pinned test dependencies1.7.1José Padilla2018-12-066-7/+16
|
* Bump up version to v1.7.01.7.0José Padilla2018-12-012-2/+21
|
* Import collection ABC's from correct module (#384)Tsuyoshi Hombashi2018-11-253-8/+7
| | | | | | * Move ABCs imports to compat.py to reuse the imports from other modules * Import collection ABC's from correct module
* Support Python 3.7 (#375)kreutz-hs2018-11-023-2/+8
| | | | | * Import collection ABC's from correct module They were moved into collections.abc in 3.3 and will be deprecated from collections in 3.8.
* Fix broken badge imageJosé Padilla2018-11-021-1/+1
|
* Pin test requirementsJosé Padilla2018-11-021-3/+3
|
* Update Travis badgeJosé Padilla2018-11-021-2/+2
|
* Run tests for python 3.7 (#379)purificant2018-11-013-1/+5
|
* Fixes example invocations in README.rst and docs/index.rst. (#368)Debayan De2018-08-142-4/+4
| | | Signed-off-by: Debayan De <debayande@users.noreply.github.com>
* Merge pull request #357 from purificant/travis_cleanupMark Adams2018-08-011-24/+13
|\ | | | | travis cleanup
| * remove workaround for running tests with python 3.5, switch to using travis ↵purificant2018-06-271-24/+13
| | | | | | | | build matrix for testing different python versions
* | remove CRLF line endings (#353)Carl George2018-07-191-168/+168
| |
* | Update usage.rst (#360)PatrikBillgren2018-07-191-1/+1
|/ | | Small typo fix
* Fix #351 by reverting argument name changes for .decode() (#352)1.6.4Mark Adams2018-05-234-6/+14
| | | | | | * Fix #351 by reverting argument name changes for .decode() * Update CHANGELOG and bump version to 1.6.4
* Update CHANGELOG.mdJosé Padilla2018-05-191-0/+2
|
* Bump up to v1.6.31.6.3José Padilla2018-05-194-5/+5
|
* Update CHANGELOG.mdJosé Padilla2018-05-191-0/+20
|
* Add issue templatesJosé Padilla2018-05-194-0/+71
|
* Add help moduleJosé Padilla2018-05-191-0/+61
|
* Add .pytest_cache to .gitignoreJosé Padilla2018-05-191-0/+2
|
* Bump up versionJosé Padilla2018-05-191-2/+2
|
* Added section to usage docs for jwt.get_unverified_header() (#350)Alejandro J. C De Baca2018-05-191-0/+14
|
* RFC: Add type hints (#344)Jacopo Farina2018-04-084-11/+44
| | | | | | | | | | * Add mypy to Travis and a simple type hint to _get_default_options * Make flake8 accept unused import required by mypy * Add typing to encode and decode, create encode_bytes in JWS to differentiate from encode in JWT * Use Union type to describe both types of payload
* all exceptions inherit from PyJwtError (#340)dmr2018-03-292-2/+10
| | | | | | | | * all exceptions inherit from PyJwtError * s/Jwt/JWT/ * add to init