2018-06-01 12:35:27 +00:00
|
|
|
#
|
|
|
|
# spec file for package python-validators
|
|
|
|
#
|
2024-03-28 16:37:14 +00:00
|
|
|
# Copyright (c) 2024 SUSE LLC
|
2018-06-01 12:35:27 +00:00
|
|
|
#
|
|
|
|
# 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.
|
|
|
|
|
2018-12-04 14:12:31 +00:00
|
|
|
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
2018-06-01 12:35:27 +00:00
|
|
|
#
|
|
|
|
|
|
|
|
|
2023-04-21 13:28:53 +00:00
|
|
|
%{?sle15_python_module_pythons}
|
2018-06-01 12:35:27 +00:00
|
|
|
Name: python-validators
|
2024-04-10 23:39:54 +00:00
|
|
|
Version: 0.28.0
|
2018-06-01 12:35:27 +00:00
|
|
|
Release: 0
|
|
|
|
Summary: Python Data Validation
|
|
|
|
License: MIT
|
|
|
|
Group: Development/Languages/Python
|
- Update to 0.13.0:
* Fixed IPv4 formatted IP address returning True on ipv6 (#85, pull request courtesy johndlong)
* Fixed IPv6 address parsing (#83, pull request courtesy JulianKahnert)
* Fixed domain validator for international domains and certain edge cases (#76, pull request courtesy Ni-Knight)
* Added allow_temporal_ssn parameter to fi_ssn validator (#97, pull request courtesy quantus)
* Remove py33 support
* Use inspect.getfullargspec() in py3 (#110, pull request courtesy riconnon)
* Fixed py37 support (#113, pull request courtesy agiletechnologist)
* Fixed domain validator for single character domains (#118, pull request courtesy kingbuzzman)
* Added new validator: es_doi, es_nif, es_cif, es_nie (#121, pull request courtesy kingbuzzman)
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-validators?expand=0&rev=13
2019-05-24 19:15:36 +00:00
|
|
|
URL: https://github.com/kvesteri/validators
|
2018-06-01 12:35:27 +00:00
|
|
|
Source: https://files.pythonhosted.org/packages/source/v/validators/validators-%{version}.tar.gz
|
2023-11-07 01:01:42 +00:00
|
|
|
BuildRequires: %{python_module pip}
|
2018-06-01 12:35:27 +00:00
|
|
|
BuildRequires: %{python_module setuptools}
|
2023-11-07 01:01:42 +00:00
|
|
|
BuildRequires: %{python_module wheel}
|
|
|
|
BuildRequires: dos2unix
|
2018-06-01 12:35:27 +00:00
|
|
|
BuildRequires: fdupes
|
|
|
|
BuildRequires: python-rpm-macros
|
- Update to 0.13.0:
* Fixed IPv4 formatted IP address returning True on ipv6 (#85, pull request courtesy johndlong)
* Fixed IPv6 address parsing (#83, pull request courtesy JulianKahnert)
* Fixed domain validator for international domains and certain edge cases (#76, pull request courtesy Ni-Knight)
* Added allow_temporal_ssn parameter to fi_ssn validator (#97, pull request courtesy quantus)
* Remove py33 support
* Use inspect.getfullargspec() in py3 (#110, pull request courtesy riconnon)
* Fixed py37 support (#113, pull request courtesy agiletechnologist)
* Fixed domain validator for single character domains (#118, pull request courtesy kingbuzzman)
* Added new validator: es_doi, es_nif, es_cif, es_nie (#121, pull request courtesy kingbuzzman)
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-validators?expand=0&rev=13
2019-05-24 19:15:36 +00:00
|
|
|
BuildArch: noarch
|
2018-06-01 12:35:27 +00:00
|
|
|
# SECTION test requirements
|
|
|
|
BuildRequires: %{python_module pytest}
|
|
|
|
# /SECTION
|
|
|
|
%python_subpackages
|
|
|
|
|
|
|
|
%description
|
|
|
|
Python Data Validation for Humans.
|
|
|
|
|
|
|
|
%prep
|
|
|
|
%setup -q -n validators-%{version}
|
2023-11-07 01:01:42 +00:00
|
|
|
dos2unix README.md
|
2018-06-01 12:35:27 +00:00
|
|
|
|
|
|
|
%build
|
2023-11-07 01:01:42 +00:00
|
|
|
%pyproject_wheel
|
2018-06-01 12:35:27 +00:00
|
|
|
|
|
|
|
%install
|
2023-11-07 01:01:42 +00:00
|
|
|
%pyproject_install
|
2018-06-01 12:35:27 +00:00
|
|
|
%python_expand %fdupes %{buildroot}%{$python_sitelib}
|
|
|
|
|
|
|
|
%check
|
2019-05-22 18:58:39 +00:00
|
|
|
%pytest
|
2018-06-01 12:35:27 +00:00
|
|
|
|
|
|
|
%files %{python_files}
|
2023-11-07 01:01:42 +00:00
|
|
|
%doc README.md
|
2024-03-28 16:37:14 +00:00
|
|
|
%license LICENSE.txt
|
2023-11-07 01:01:42 +00:00
|
|
|
%{python_sitelib}/validators*
|
2018-06-01 12:35:27 +00:00
|
|
|
|
|
|
|
%changelog
|