summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCoprDistGit <infra@openeuler.org>2023-04-10 22:54:12 +0000
committerCoprDistGit <infra@openeuler.org>2023-04-10 22:54:12 +0000
commitc0bfed9909d9539c1e196bf3ce7180a9d70f1d24 (patch)
treebb193d1e0608031aee5e36beaf4d157000250711
parente6edbbc061e6ec5e845496b4b6de3d7127dd6894 (diff)
automatic import of python-rfc3986-validator
-rw-r--r--.gitignore1
-rw-r--r--python-rfc3986-validator.spec180
-rw-r--r--sources1
3 files changed, 182 insertions, 0 deletions
diff --git a/.gitignore b/.gitignore
index e69de29..d80614d 100644
--- a/.gitignore
+++ b/.gitignore
@@ -0,0 +1 @@
+/rfc3986_validator-0.1.1.tar.gz
diff --git a/python-rfc3986-validator.spec b/python-rfc3986-validator.spec
new file mode 100644
index 0000000..b72c616
--- /dev/null
+++ b/python-rfc3986-validator.spec
@@ -0,0 +1,180 @@
+%global _empty_manifest_terminate_build 0
+Name: python-rfc3986-validator
+Version: 0.1.1
+Release: 1
+Summary: Pure python rfc3986 validator
+License: MIT license
+URL: https://github.com/naimetti/rfc3986-validator
+Source0: https://mirrors.nju.edu.cn/pypi/web/packages/da/88/f270de456dd7d11dcc808abfa291ecdd3f45ff44e3b549ffa01b126464d0/rfc3986_validator-0.1.1.tar.gz
+BuildArch: noarch
+
+
+%description
+# rfc3986-validator
+
+A pure python RFC3986 validator
+
+
+[![image](https://img.shields.io/pypi/v/rfc3986_validator.svg)](https://pypi.python.org/pypi/rfc3986_validator)
+[![Build Status](https://travis-ci.org/naimetti/rfc3986-validator.svg?branch=master)](https://travis-ci.org/naimetti/rfc3986-validator)
+
+# Install
+
+```shell script
+pip install rfc3986-validator
+```
+
+# Usage
+
+```pycon
+>>> from rfc3986_validator import validate_rfc3986
+>>> validate_rfc3986('http://foo.bar?q=Spaces should be encoded')
+False
+
+>>> validate_rfc3986('http://foo.com/blah_blah_(wikipedia)')
+True
+```
+
+It also support validate [URI-reference](https://tools.ietf.org/html/rfc3986#page-49) rule
+
+```pycon
+>>> validate_rfc3986('//foo.com/blah_blah', rule='URI_reference')
+True
+```
+
+ - Free software: MIT license
+
+
+
+
+
+%package -n python3-rfc3986-validator
+Summary: Pure python rfc3986 validator
+Provides: python-rfc3986-validator
+BuildRequires: python3-devel
+BuildRequires: python3-setuptools
+BuildRequires: python3-pip
+%description -n python3-rfc3986-validator
+# rfc3986-validator
+
+A pure python RFC3986 validator
+
+
+[![image](https://img.shields.io/pypi/v/rfc3986_validator.svg)](https://pypi.python.org/pypi/rfc3986_validator)
+[![Build Status](https://travis-ci.org/naimetti/rfc3986-validator.svg?branch=master)](https://travis-ci.org/naimetti/rfc3986-validator)
+
+# Install
+
+```shell script
+pip install rfc3986-validator
+```
+
+# Usage
+
+```pycon
+>>> from rfc3986_validator import validate_rfc3986
+>>> validate_rfc3986('http://foo.bar?q=Spaces should be encoded')
+False
+
+>>> validate_rfc3986('http://foo.com/blah_blah_(wikipedia)')
+True
+```
+
+It also support validate [URI-reference](https://tools.ietf.org/html/rfc3986#page-49) rule
+
+```pycon
+>>> validate_rfc3986('//foo.com/blah_blah', rule='URI_reference')
+True
+```
+
+ - Free software: MIT license
+
+
+
+
+
+%package help
+Summary: Development documents and examples for rfc3986-validator
+Provides: python3-rfc3986-validator-doc
+%description help
+# rfc3986-validator
+
+A pure python RFC3986 validator
+
+
+[![image](https://img.shields.io/pypi/v/rfc3986_validator.svg)](https://pypi.python.org/pypi/rfc3986_validator)
+[![Build Status](https://travis-ci.org/naimetti/rfc3986-validator.svg?branch=master)](https://travis-ci.org/naimetti/rfc3986-validator)
+
+# Install
+
+```shell script
+pip install rfc3986-validator
+```
+
+# Usage
+
+```pycon
+>>> from rfc3986_validator import validate_rfc3986
+>>> validate_rfc3986('http://foo.bar?q=Spaces should be encoded')
+False
+
+>>> validate_rfc3986('http://foo.com/blah_blah_(wikipedia)')
+True
+```
+
+It also support validate [URI-reference](https://tools.ietf.org/html/rfc3986#page-49) rule
+
+```pycon
+>>> validate_rfc3986('//foo.com/blah_blah', rule='URI_reference')
+True
+```
+
+ - Free software: MIT license
+
+
+
+
+
+%prep
+%autosetup -n rfc3986-validator-0.1.1
+
+%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-rfc3986-validator -f filelist.lst
+%dir %{python3_sitelib}/*
+
+%files help -f doclist.lst
+%{_docdir}/*
+
+%changelog
+* Mon Apr 10 2023 Python_Bot <Python_Bot@openeuler.org> - 0.1.1-1
+- Package Spec generated
diff --git a/sources b/sources
new file mode 100644
index 0000000..8df5fcb
--- /dev/null
+++ b/sources
@@ -0,0 +1 @@
+47f7657b790aaf6011a1ab3d86c6be95 rfc3986_validator-0.1.1.tar.gz