summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCoprDistGit <infra@openeuler.org>2023-06-20 05:32:53 +0000
committerCoprDistGit <infra@openeuler.org>2023-06-20 05:32:53 +0000
commit596164f8653a8281b0ed03823ed48a715f5c1491 (patch)
treedf203d8d69944ca42534bdd82ba4aaac39e883f7
parente9ffd5932b9406db5fdbed16127e7d100449f2ad (diff)
automatic import of python-sanic-jwt-extendedopeneuler20.03
-rw-r--r--.gitignore1
-rw-r--r--python-sanic-jwt-extended.spec179
-rw-r--r--sources1
3 files changed, 181 insertions, 0 deletions
diff --git a/.gitignore b/.gitignore
index e69de29..c8e3d7c 100644
--- a/.gitignore
+++ b/.gitignore
@@ -0,0 +1 @@
+/Sanic-JWT-Extended-0.4.4.tar.gz
diff --git a/python-sanic-jwt-extended.spec b/python-sanic-jwt-extended.spec
new file mode 100644
index 0000000..c975e68
--- /dev/null
+++ b/python-sanic-jwt-extended.spec
@@ -0,0 +1,179 @@
+%global _empty_manifest_terminate_build 0
+Name: python-sanic-jwt-extended
+Version: 0.4.4
+Release: 1
+Summary: Extended JWT integration with Sanic
+License: MIT
+URL: https://github.com/NovemberOscar/Sanic-JWT-Extended
+Source0: https://mirrors.aliyun.com/pypi/web/packages/be/c7/9e73625a4804bb0cc90e7c75626922651631f0c4b5db9486ab4b591b84b2/Sanic-JWT-Extended-0.4.4.tar.gz
+BuildArch: noarch
+
+Requires: python3-sanic
+Requires: python3-PyJWT
+
+%description
+# Sanic-JWT-Extended (NOW PREPARING 1.0 RELEASE WITH MAJOR CHANGES)
+[![Downloads](https://pepy.tech/badge/sanic-jwt-extended)](https://pepy.tech/project/sanic-jwt-extended)
+![PyPI](https://img.shields.io/pypi/v/sanic-jwt-extended.svg)
+![PyPI - Python Version](https://img.shields.io/pypi/pyversions/sanic-jwt-extended.svg)
+![code style](https://img.shields.io/badge/code%20style-black-black.svg)
+[![Documentation Status](https://readthedocs.org/projects/sanic-jwt-extended/badge/?version=latest)](https://sanic-jwt-extended.readthedocs.io/en/latest/?badge=latest)
+
+## What is Sanic-JWT-Extended?
+Sanic-JWT-Extended is port of Flask-JWT-Extended for Sanic.
+
+## When to use Sanic-JWT-Extended?
+Sanic-JWT-Extended not only adds support for using JSON Web Tokens (JWT) to Sanic for protecting views,
+but also many helpful (and **optional**) features built in to make working with JSON Web Tokens
+easier. These include:
+
+* Support for adding custom claims to JSON Web Tokens
+* [Refresh tokens](https://auth0.com/blog/refresh-tokens-what-are-they-and-when-to-use-them/)
+* Token freshness and separate view decorators to only allow fresh tokens
+* Role-based access control
+* ~~built-in blacklist support~~ <= WIP
+
+## Installation
+```bash
+pip install sanic-jwt-extended
+```
+
+## Usage
+[View the documentation online](http://sanic-jwt-extended.readthedocs.io/en/latest/)
+
+## Generating Documentation
+You can generate a local copy of the documentation. After installing the requirements,
+go to the `docs` directory and run:
+```
+$ make clean && make html
+```
+
+
+%package -n python3-sanic-jwt-extended
+Summary: Extended JWT integration with Sanic
+Provides: python-sanic-jwt-extended
+BuildRequires: python3-devel
+BuildRequires: python3-setuptools
+BuildRequires: python3-pip
+%description -n python3-sanic-jwt-extended
+# Sanic-JWT-Extended (NOW PREPARING 1.0 RELEASE WITH MAJOR CHANGES)
+[![Downloads](https://pepy.tech/badge/sanic-jwt-extended)](https://pepy.tech/project/sanic-jwt-extended)
+![PyPI](https://img.shields.io/pypi/v/sanic-jwt-extended.svg)
+![PyPI - Python Version](https://img.shields.io/pypi/pyversions/sanic-jwt-extended.svg)
+![code style](https://img.shields.io/badge/code%20style-black-black.svg)
+[![Documentation Status](https://readthedocs.org/projects/sanic-jwt-extended/badge/?version=latest)](https://sanic-jwt-extended.readthedocs.io/en/latest/?badge=latest)
+
+## What is Sanic-JWT-Extended?
+Sanic-JWT-Extended is port of Flask-JWT-Extended for Sanic.
+
+## When to use Sanic-JWT-Extended?
+Sanic-JWT-Extended not only adds support for using JSON Web Tokens (JWT) to Sanic for protecting views,
+but also many helpful (and **optional**) features built in to make working with JSON Web Tokens
+easier. These include:
+
+* Support for adding custom claims to JSON Web Tokens
+* [Refresh tokens](https://auth0.com/blog/refresh-tokens-what-are-they-and-when-to-use-them/)
+* Token freshness and separate view decorators to only allow fresh tokens
+* Role-based access control
+* ~~built-in blacklist support~~ <= WIP
+
+## Installation
+```bash
+pip install sanic-jwt-extended
+```
+
+## Usage
+[View the documentation online](http://sanic-jwt-extended.readthedocs.io/en/latest/)
+
+## Generating Documentation
+You can generate a local copy of the documentation. After installing the requirements,
+go to the `docs` directory and run:
+```
+$ make clean && make html
+```
+
+
+%package help
+Summary: Development documents and examples for sanic-jwt-extended
+Provides: python3-sanic-jwt-extended-doc
+%description help
+# Sanic-JWT-Extended (NOW PREPARING 1.0 RELEASE WITH MAJOR CHANGES)
+[![Downloads](https://pepy.tech/badge/sanic-jwt-extended)](https://pepy.tech/project/sanic-jwt-extended)
+![PyPI](https://img.shields.io/pypi/v/sanic-jwt-extended.svg)
+![PyPI - Python Version](https://img.shields.io/pypi/pyversions/sanic-jwt-extended.svg)
+![code style](https://img.shields.io/badge/code%20style-black-black.svg)
+[![Documentation Status](https://readthedocs.org/projects/sanic-jwt-extended/badge/?version=latest)](https://sanic-jwt-extended.readthedocs.io/en/latest/?badge=latest)
+
+## What is Sanic-JWT-Extended?
+Sanic-JWT-Extended is port of Flask-JWT-Extended for Sanic.
+
+## When to use Sanic-JWT-Extended?
+Sanic-JWT-Extended not only adds support for using JSON Web Tokens (JWT) to Sanic for protecting views,
+but also many helpful (and **optional**) features built in to make working with JSON Web Tokens
+easier. These include:
+
+* Support for adding custom claims to JSON Web Tokens
+* [Refresh tokens](https://auth0.com/blog/refresh-tokens-what-are-they-and-when-to-use-them/)
+* Token freshness and separate view decorators to only allow fresh tokens
+* Role-based access control
+* ~~built-in blacklist support~~ <= WIP
+
+## Installation
+```bash
+pip install sanic-jwt-extended
+```
+
+## Usage
+[View the documentation online](http://sanic-jwt-extended.readthedocs.io/en/latest/)
+
+## Generating Documentation
+You can generate a local copy of the documentation. After installing the requirements,
+go to the `docs` directory and run:
+```
+$ make clean && make html
+```
+
+
+%prep
+%autosetup -n Sanic-JWT-Extended-0.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-sanic-jwt-extended -f filelist.lst
+%dir %{python3_sitelib}/*
+
+%files help -f doclist.lst
+%{_docdir}/*
+
+%changelog
+* Tue Jun 20 2023 Python_Bot <Python_Bot@openeuler.org> - 0.4.4-1
+- Package Spec generated
diff --git a/sources b/sources
new file mode 100644
index 0000000..36439dc
--- /dev/null
+++ b/sources
@@ -0,0 +1 @@
+0c86f5bc99ed252a22b1a55b035f9d6b Sanic-JWT-Extended-0.4.4.tar.gz