summaryrefslogtreecommitdiff
path: root/setup.cfg
Commit message (Collapse)AuthorAgeFilesLines
* Add `as_dict` option to `Algorithm.to_jwk` (#881)Thitat Auareesuksakul2023-05-091-0/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Add `as_dict` option to `Algorithm.to_jwt` * Update unit tests * [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci * fixup! Add `as_dict` option to `Algorithm.to_jwt` * fixup! Add `as_dict` option to `Algorithm.to_jwt` * fixup! Update unit tests * [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci * Fix type errors * Fix tox test errors * Fix typing for Python 3.7 * Add OKP jwk tests * Add `pragma: no cover` to method overloads * Add pragma: no cover to exclude lines --------- Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
* Add classifier for Python 3.11 (#818)Erich Seifert2022-10-291-0/+1
| | | | | * Add classifier for Python 3.11 * Add classifier for Python 3.11
* bump up cryptography >= 3.4.0 (#807)José Padilla2022-09-201-3/+2
| | | Co-authored-by: José Padilla <jpadilla@users.noreply.github.com>
* Remove `types-cryptography` from `crypto` extra (#805)Atte Lautanala2022-09-191-1/+0
| | | | | | | This is not needed for using the project with `cryptography`. Also, the typing information is incorrect or incomplete for the latest version of `cryptography`. Fixes #804
* Mypy as pre-commit check + api_jws typing (#787)Julian Maurin2022-08-031-7/+0
| | | | | | | | | * feat(mypy): from tox to pre-commit * fix(mypy): apply mypy fixes * feat(api_jws): typing Co-authored-by: JulianMaurin <julian.maurin@backmarket.com>
* Add type hints to jwt/help.py and add missing types dependency (#784)Kevin Kirsche2022-08-011-0/+2
| | | | | | | * refactor: add type hints to jwt/help.py * refactor: include cryptography types when installing development environment * fix: unused type: ignore on Python 3.8
* Remove support for python3.6 (#777)Stephen Rosen2022-07-041-3/+2
|
* chore: pin sphinx in docs requiresJosé Padilla2022-05-311-1/+1
|
* chore: pin sphinxJosé Padilla2022-05-311-1/+1
|
* Don't use implicit optionals (#705)Kyungmin Lee2021-10-221-0/+1
| | | | | | | | | | | | | * Turn off implicit-optional * Change type annotations to use explicit optional According to PEP 484, implicit Optional is no longer recommended. * [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
* Add support for Python 3.10 (#699)Hugo van Kemenade2021-10-181-0/+1
|
* Remove upper bound on cryptography version (#693)Richard Connon2021-10-031-2/+2
| | | | | | Cryptography has adopted a firefox-style versioning system where new feature releases always have new major versions even if they don't have backwards incompatible changes. This means that an upper bound on the dependency does not make sense.
* Update requirement on `cryptography` (#575)2.0.0José Padilla2020-12-221-2/+2
|
* Simplify black configuration to be closer to upstream defaults (#568)Jon Dufresne2020-12-211-1/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * 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 <jpadilla@webapplicate.com> * [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 <jpadilla@webapplicate.com> Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
* Fix tox "manifest" environment to pass (#566)Jon Dufresne2020-12-211-0/+4
| | | | | | | | | | | | | | | | | | | | | * Fix tox "manifest" environment to pass The command `tox -e manifest` now passes. Added missing files to the sdist: - .pre-commit-config.yaml - CODE_OF_CONDUCT.md - jwt/py.typed - docs/ Alphabetized MANIFEST.in Moved .flake8 to setup.cfg to avoid the need to include yet another file to MANIFEST.in. Exclude codecov.yml. This is for CI only. * Move check-manifest to a pre-commit hook
* Refactor jwt/jwks_client.py without requests dependency (#546)Jon Dufresne2020-12-161-4/+0
| | | | | | | | | Allows dropping a dependency that isn't very necessary. The requests library was used for a single line of code. This same code is just as easily expressible using the stdlib, thus alllows removing a dependency. Tests were adjusted to mock this new approach.
* Update typing syntax and usage for Python 3.6+ (#535)Jon Dufresne2020-12-161-0/+10
| | | | | | | | | | | | | | | | | | Now that Python 2 is not supported, can move away from type comments to type annotation 🎉. The typing module is always available, so remove the guards. Specify the supported Python in the mypy configuration. Move other mypy configurations to one place. This way, whether tox is used or not, the same mypy errors appear. Distribute and install PEP-561 compliant py.typed file. When PyJWT is a imported as a library, this tells mypy to use the provided type annotations rather than going through typeshed. This way, the types are always up to date when running mypy. Remove outdated ignores since dropping Python 2.
* Remove support for EOL Python 3.5 (#532)Jon Dufresne2020-12-071-2/+1
| | | | Python 3.5 went end-of-life 2020-09-30. See: https://devguide.python.org/devcycle/#end-of-life-branches
* Add long_description_content_typeJosé Padilla2020-11-021-0/+1
|
* Run tests against Python 3.9 and add trove classifier (#522)Michael K2020-10-091-2/+3
| | | | | * Run tests against Python 3.9 and add trove classifier * Loosen pin on cryptography to allow 3.x
* Drop support for legacy contrib algorithms (#514)José Padilla2020-08-241-2/+2
| | | | | * Drop support for legacy contrib algorithms * Update cryptography dep
* Introduce better experience for JWKs (#511)José Padilla2020-08-241-0/+4
| | | | | | | | | | | * Introduce better experience for JWKs * Remove explicit inheritance * Add tests for PyJWK * Fix failing test * Get rid of lambda
* Remove cli entrypoint (#501)José Padilla2020-08-211-4/+0
|
* Setup GH Actions (#499)José Padilla2020-08-191-3/+16
| | | | | | | | | | | | | | | * Setup GH Actions * Remove src path changes * Add dev extras * Update USING_COVERAGE * last update * Upgrade pytest * Remove 2.7 things
* Move setup information to declarative setup.cfg (#495)Jon Dufresne2020-06-111-0/+49
| | | | | | | | Use a declarative syntax to avoid mixing code and configuration. Simplifies handling of long description and version by reducing some boilerplate. For details on this setuptools feature, see: https://setuptools.readthedocs.io/en/latest/setuptools.html#configuring-setup-using-setup-cfg-files
* DX Tweaks (#450)José Padilla2019-10-211-11/+0
| | | | | | | | | | * Setup pre-commit hooks * Run initial `tox -e lint` * Fix package name * Fix .travis.yml
* Remove setup.py test command in favor of pytest and tox (#442)Jon Dufresne2019-10-061-3/+0
| | | | | | | | | 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/
* Bump pytest version to latestpytest-version-bumpMark Adams2017-04-171-2/+2
| | | | | | | | Previously, pytest was pinned to an old version because of a bug in pytest that has since been fixed. This change now puts us back to using the latest version of pytest. Fixes #253
* Flake8 now ignores .toxfix-flake8Mark Adams2016-08-051-1/+3
|
* Added docs/ with awesome new documentation 🎉Mark Adams2015-10-231-0/+1
|
* restored setup.py test functionality.Gabi Davar2015-05-171-0/+3
|
* refactor scripts, testing, travis and toxGabi Davar2015-05-171-1/+1
|
* Changed to use Pytest as the test runner #111Mark Adams2015-04-141-0/+3
|
* Moved flake8 max-line-length option from tox.ini to setup.cfg so that it ↵Mark Adams2015-03-151-0/+3
| | | | works when running flake8 from normal CLI as well.
* Include wheel setupJosé Padilla2014-09-221-0/+2