diff options
author | CoprDistGit <infra@openeuler.org> | 2023-04-10 09:05:49 +0000 |
---|---|---|
committer | CoprDistGit <infra@openeuler.org> | 2023-04-10 09:05:49 +0000 |
commit | 34edd60f8d142ee446738f419ef154a72b49e183 (patch) | |
tree | 4320dc9ab7bb5a82be607d6a543b1c5840d53d6f | |
parent | 5e50efd4bb1f941e5dc89a7e7b89b2defec125e0 (diff) |
automatic import of python-flask-jwt-extended
-rw-r--r-- | .gitignore | 1 | ||||
-rw-r--r-- | python-flask-jwt-extended.spec | 302 | ||||
-rw-r--r-- | sources | 1 |
3 files changed, 304 insertions, 0 deletions
@@ -0,0 +1 @@ +/Flask-JWT-Extended-4.4.4.tar.gz diff --git a/python-flask-jwt-extended.spec b/python-flask-jwt-extended.spec new file mode 100644 index 0000000..92bbd2d --- /dev/null +++ b/python-flask-jwt-extended.spec @@ -0,0 +1,302 @@ +%global _empty_manifest_terminate_build 0 +Name: python-Flask-JWT-Extended +Version: 4.4.4 +Release: 1 +Summary: Extended JWT integration with Flask +License: MIT +URL: https://github.com/vimalloc/flask-jwt-extended +Source0: https://mirrors.nju.edu.cn/pypi/web/packages/69/ce/6cd609743a4a71452ec5e95a58a44b54374f1673b7c2f88520117f7f4626/Flask-JWT-Extended-4.4.4.tar.gz +BuildArch: noarch + +Requires: python3-Werkzeug +Requires: python3-Flask +Requires: python3-PyJWT +Requires: python3-typing-extensions +Requires: python3-cryptography + +%description +# Flask-JWT-Extended + +### Features + +Flask-JWT-Extended not only adds support for using JSON Web Tokens (JWT) to Flask for protecting routes, +but also many helpful (and **optional**) features built in to make working with JSON Web Tokens +easier. These include: + +- Adding custom claims to JSON Web Tokens +- Automatic user loading (`current_user`). +- Custom claims validation on received tokens +- [Refresh tokens](https://auth0.com/blog/refresh-tokens-what-are-they-and-when-to-use-them/) +- First class support for fresh tokens for making sensitive changes. +- Token revoking/blocklisting +- Storing tokens in cookies and CSRF protection + +### Usage + +[View the documentation online](https://flask-jwt-extended.readthedocs.io/en/stable/) + +### Upgrading from 3.x.x to 4.0.0 + +[View the changes](https://flask-jwt-extended.readthedocs.io/en/stable/v4_upgrade_guide/) + +### Changelog + +You can view the changelog [here](https://github.com/vimalloc/flask-jwt-extended/releases). +This project follows [semantic versioning](https://semver.org/). + +### Chatting + +Come chat with the community or ask questions at https://discord.gg/EJBsbFd + +### Contributing + +Before making any changes, make sure to install the development requirements +and setup the git hooks which will automatically lint and format your changes. + +```bash +pip install -r requirements.txt +pre-commit install +``` + +We require 100% code coverage in our unit tests. You can run the tests locally +with `tox` which ensures that all tests pass, tests provide complete code coverage, +documentation builds, and style guide are adhered to + +```bash +tox +``` + +A subset of checks can also be ran by adding an argument to tox. The available +arguments are: + +- py37, py38, py39, py310, pypy3 + - Run unit tests on the given python version +- mypy + - Run mypy type checking +- coverage + - Run a code coverage check +- docs + - Ensure documentation builds and there are no broken links +- style + - Ensure style guide is adhered to + +```bash +tox -e py38 +``` + +We also require features to be well documented. You can generate a local copy +of the documentation by going to the `docs` directory and running: + +```bash +make clean && make html && open _build/html/index.html +``` + + +%package -n python3-Flask-JWT-Extended +Summary: Extended JWT integration with Flask +Provides: python-Flask-JWT-Extended +BuildRequires: python3-devel +BuildRequires: python3-setuptools +BuildRequires: python3-pip +%description -n python3-Flask-JWT-Extended +# Flask-JWT-Extended + +### Features + +Flask-JWT-Extended not only adds support for using JSON Web Tokens (JWT) to Flask for protecting routes, +but also many helpful (and **optional**) features built in to make working with JSON Web Tokens +easier. These include: + +- Adding custom claims to JSON Web Tokens +- Automatic user loading (`current_user`). +- Custom claims validation on received tokens +- [Refresh tokens](https://auth0.com/blog/refresh-tokens-what-are-they-and-when-to-use-them/) +- First class support for fresh tokens for making sensitive changes. +- Token revoking/blocklisting +- Storing tokens in cookies and CSRF protection + +### Usage + +[View the documentation online](https://flask-jwt-extended.readthedocs.io/en/stable/) + +### Upgrading from 3.x.x to 4.0.0 + +[View the changes](https://flask-jwt-extended.readthedocs.io/en/stable/v4_upgrade_guide/) + +### Changelog + +You can view the changelog [here](https://github.com/vimalloc/flask-jwt-extended/releases). +This project follows [semantic versioning](https://semver.org/). + +### Chatting + +Come chat with the community or ask questions at https://discord.gg/EJBsbFd + +### Contributing + +Before making any changes, make sure to install the development requirements +and setup the git hooks which will automatically lint and format your changes. + +```bash +pip install -r requirements.txt +pre-commit install +``` + +We require 100% code coverage in our unit tests. You can run the tests locally +with `tox` which ensures that all tests pass, tests provide complete code coverage, +documentation builds, and style guide are adhered to + +```bash +tox +``` + +A subset of checks can also be ran by adding an argument to tox. The available +arguments are: + +- py37, py38, py39, py310, pypy3 + - Run unit tests on the given python version +- mypy + - Run mypy type checking +- coverage + - Run a code coverage check +- docs + - Ensure documentation builds and there are no broken links +- style + - Ensure style guide is adhered to + +```bash +tox -e py38 +``` + +We also require features to be well documented. You can generate a local copy +of the documentation by going to the `docs` directory and running: + +```bash +make clean && make html && open _build/html/index.html +``` + + +%package help +Summary: Development documents and examples for Flask-JWT-Extended +Provides: python3-Flask-JWT-Extended-doc +%description help +# Flask-JWT-Extended + +### Features + +Flask-JWT-Extended not only adds support for using JSON Web Tokens (JWT) to Flask for protecting routes, +but also many helpful (and **optional**) features built in to make working with JSON Web Tokens +easier. These include: + +- Adding custom claims to JSON Web Tokens +- Automatic user loading (`current_user`). +- Custom claims validation on received tokens +- [Refresh tokens](https://auth0.com/blog/refresh-tokens-what-are-they-and-when-to-use-them/) +- First class support for fresh tokens for making sensitive changes. +- Token revoking/blocklisting +- Storing tokens in cookies and CSRF protection + +### Usage + +[View the documentation online](https://flask-jwt-extended.readthedocs.io/en/stable/) + +### Upgrading from 3.x.x to 4.0.0 + +[View the changes](https://flask-jwt-extended.readthedocs.io/en/stable/v4_upgrade_guide/) + +### Changelog + +You can view the changelog [here](https://github.com/vimalloc/flask-jwt-extended/releases). +This project follows [semantic versioning](https://semver.org/). + +### Chatting + +Come chat with the community or ask questions at https://discord.gg/EJBsbFd + +### Contributing + +Before making any changes, make sure to install the development requirements +and setup the git hooks which will automatically lint and format your changes. + +```bash +pip install -r requirements.txt +pre-commit install +``` + +We require 100% code coverage in our unit tests. You can run the tests locally +with `tox` which ensures that all tests pass, tests provide complete code coverage, +documentation builds, and style guide are adhered to + +```bash +tox +``` + +A subset of checks can also be ran by adding an argument to tox. The available +arguments are: + +- py37, py38, py39, py310, pypy3 + - Run unit tests on the given python version +- mypy + - Run mypy type checking +- coverage + - Run a code coverage check +- docs + - Ensure documentation builds and there are no broken links +- style + - Ensure style guide is adhered to + +```bash +tox -e py38 +``` + +We also require features to be well documented. You can generate a local copy +of the documentation by going to the `docs` directory and running: + +```bash +make clean && make html && open _build/html/index.html +``` + + +%prep +%autosetup -n Flask-JWT-Extended-4.4.4 + +%build +%py3_build + +%install +%py3_install +install -d -m755 %{buildroot}/%{_pkgdocdir} +if [ -d doc ]; then cp -arf doc %{buildroot}/%{_pkgdocdir}; fi +if [ -d docs ]; then cp -arf docs %{buildroot}/%{_pkgdocdir}; fi +if [ -d example ]; then cp -arf example %{buildroot}/%{_pkgdocdir}; fi +if [ -d examples ]; then cp -arf examples %{buildroot}/%{_pkgdocdir}; fi +pushd %{buildroot} +if [ -d usr/lib ]; then + find usr/lib -type f -printf "/%h/%f\n" >> filelist.lst +fi +if [ -d usr/lib64 ]; then + find usr/lib64 -type f -printf "/%h/%f\n" >> filelist.lst +fi +if [ -d usr/bin ]; then + find usr/bin -type f -printf "/%h/%f\n" >> filelist.lst +fi +if [ -d usr/sbin ]; then + find usr/sbin -type f -printf "/%h/%f\n" >> filelist.lst +fi +touch doclist.lst +if [ -d usr/share/man ]; then + find usr/share/man -type f -printf "/%h/%f.gz\n" >> doclist.lst +fi +popd +mv %{buildroot}/filelist.lst . +mv %{buildroot}/doclist.lst . + +%files -n python3-Flask-JWT-Extended -f filelist.lst +%dir %{python3_sitelib}/* + +%files help -f doclist.lst +%{_docdir}/* + +%changelog +* Mon Apr 10 2023 Python_Bot <Python_Bot@openeuler.org> - 4.4.4-1 +- Package Spec generated @@ -0,0 +1 @@ +ce98d5f6a2dc038911cf0752f89680a2 Flask-JWT-Extended-4.4.4.tar.gz |