commit 698184e4706574487bc43128925e80d657426ed19e3c304ca40a2bbdd7ce64de Author: Adrian Schröter Date: Fri May 3 22:51:11 2024 +0200 Sync from SUSE:SLFO:Main python-rfc3986-validator revision 2b73770e9b8317a20c0407288828482d diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 0000000..9b03811 --- /dev/null +++ b/.gitattributes @@ -0,0 +1,23 @@ +## Default LFS +*.7z filter=lfs diff=lfs merge=lfs -text +*.bsp filter=lfs diff=lfs merge=lfs -text +*.bz2 filter=lfs diff=lfs merge=lfs -text +*.gem filter=lfs diff=lfs merge=lfs -text +*.gz filter=lfs diff=lfs merge=lfs -text +*.jar filter=lfs diff=lfs merge=lfs -text +*.lz filter=lfs diff=lfs merge=lfs -text +*.lzma filter=lfs diff=lfs merge=lfs -text +*.obscpio filter=lfs diff=lfs merge=lfs -text +*.oxt filter=lfs diff=lfs merge=lfs -text +*.pdf filter=lfs diff=lfs merge=lfs -text +*.png filter=lfs diff=lfs merge=lfs -text +*.rpm filter=lfs diff=lfs merge=lfs -text +*.tbz filter=lfs diff=lfs merge=lfs -text +*.tbz2 filter=lfs diff=lfs merge=lfs -text +*.tgz filter=lfs diff=lfs merge=lfs -text +*.ttf filter=lfs diff=lfs merge=lfs -text +*.txz filter=lfs diff=lfs merge=lfs -text +*.whl filter=lfs diff=lfs merge=lfs -text +*.xz filter=lfs diff=lfs merge=lfs -text +*.zip filter=lfs diff=lfs merge=lfs -text +*.zst filter=lfs diff=lfs merge=lfs -text diff --git a/python-rfc3986-validator.changes b/python-rfc3986-validator.changes new file mode 100644 index 0000000..eae66ab --- /dev/null +++ b/python-rfc3986-validator.changes @@ -0,0 +1,10 @@ +------------------------------------------------------------------- +Fri Apr 21 12:33:16 UTC 2023 - Dirk Müller + +- add sle15_python_module_pythons (jsc#PED-68) + +------------------------------------------------------------------- +Mon Dec 26 11:43:44 UTC 2022 - Ben Greiner + +- Initial specfile for v0.1.1 +- Required for python-jsonschema[format-nongpl] diff --git a/python-rfc3986-validator.spec b/python-rfc3986-validator.spec new file mode 100644 index 0000000..d02e468 --- /dev/null +++ b/python-rfc3986-validator.spec @@ -0,0 +1,72 @@ +# +# spec file for package python-rfc3986-validator +# +# Copyright (c) 2023 SUSE LLC +# +# All modifications and additions to the file contributed by third parties +# remain the property of their copyright owners, unless otherwise agreed +# upon. The license for this file, and modifications and additions to the +# file, is the same license as for the pristine package itself (unless the +# license for the pristine package is not an Open Source License, in which +# case the license is the MIT License). An "Open Source License" is a +# license that conforms to the Open Source Definition (Version 1.9) +# published by the Open Source Initiative. + +# Please submit bugfixes or comments via https://bugs.opensuse.org/ +# + + +%{?sle15_python_module_pythons} +Name: python-rfc3986-validator +Version: 0.1.1 +Release: 0 +Summary: Pure python rfc3986 validator +License: MIT +URL: https://github.com/naimetti/rfc3986-validator +Source: https://files.pythonhosted.org/packages/source/r/rfc3986_validator/rfc3986_validator-%{version}.tar.gz +BuildRequires: %{python_module pip} +BuildRequires: %{python_module setuptools} +BuildRequires: %{python_module wheel} +BuildRequires: fdupes +BuildRequires: python-rpm-macros +BuildArch: noarch +# SECTION test requirements +BuildRequires: %{python_module hypothesis >= 4.41.3} +BuildRequires: %{python_module pytest} +BuildRequires: %{python_module rfc3987} +# /SECTION +Provides: python-rfc3986_validator = %{version}-%{release} +%python_subpackages + +%description +A pure python rfc3986 validator + +Usage: + >>> 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 + +%prep +%setup -q -n rfc3986_validator-%{version} + +%build +%pyproject_wheel + +%install +%pyproject_install +%python_expand %fdupes %{buildroot}%{$python_sitelib} + +%check +%pytest + +%files %{python_files} +%doc README.md +%license LICENSE +%{python_sitelib}/rfc3986_validator.py* +%pycache_only %{python_sitelib}/__pycache__/rfc3986_validator.*.pyc +%{python_sitelib}/rfc3986_validator-%{version}.dist-info + +%changelog diff --git a/rfc3986_validator-0.1.1.tar.gz b/rfc3986_validator-0.1.1.tar.gz new file mode 100644 index 0000000..6675281 --- /dev/null +++ b/rfc3986_validator-0.1.1.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:3d44bde7921b3b9ec3ae4e3adca370438eccebc676456449b145d533b240d055 +size 6760