Sync from SUSE:ALP:Source:Standard:1.0 python-rfc3986-validator revision 2b73770e9b8317a20c0407288828482d

This commit is contained in:
Adrian Schröter 2023-06-06 15:17:52 +02:00
commit d8cee3759c
4 changed files with 108 additions and 0 deletions

23
.gitattributes vendored Normal file
View File

@ -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

View File

@ -0,0 +1,10 @@
-------------------------------------------------------------------
Fri Apr 21 12:33:16 UTC 2023 - Dirk Müller <dmueller@suse.com>
- add sle15_python_module_pythons (jsc#PED-68)
-------------------------------------------------------------------
Mon Dec 26 11:43:44 UTC 2022 - Ben Greiner <code@bnavigator.de>
- Initial specfile for v0.1.1
- Required for python-jsonschema[format-nongpl]

View File

@ -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

BIN
rfc3986_validator-0.1.1.tar.gz (Stored with Git LFS) Normal file

Binary file not shown.