Sync from SUSE:SLFO:Main python-validators revision dd5b3d222ec10848506b683dced9de39

This commit is contained in:
Adrian Schröter 2024-12-13 12:36:04 +01:00
parent a13a36aec6
commit a53b44a523
4 changed files with 115 additions and 16 deletions

View File

@ -1,3 +1,100 @@
-------------------------------------------------------------------
Sun Sep 8 13:19:53 UTC 2024 - Dirk Müller <dmueller@suse.com>
- update to 0.34.0:
* > No breaking changes were introduced in this version.
* feat: cache IANA TLDs for faster lookups
* chore: update dependencies
* docs: adds configuration info
-------------------------------------------------------------------
Mon Jul 15 04:45:05 UTC 2024 - Mia Herkt <mia@0x0.st>
- Update to 0.33.0
Features:
* add validator for bsc addresses
gh#python-validators/validators#389
-------------------------------------------------------------------
Fri Jul 12 00:16:41 UTC 2024 - Mia Herkt <mia@0x0.st>
- Update to 0.32.0
Features:
* add validator for sha384 hash
gh#python-validators/validators#387
-------------------------------------------------------------------
Tue Jul 9 12:49:35 UTC 2024 - Mia Herkt <mia@0x0.st>
- Update to 0.31.0
Features:
* add validators for base16 and base32 encodings
gh#kvesteri/validators#386
-------------------------------------------------------------------
Thu Jul 4 06:00:40 UTC 2024 - Mia Herkt <mia@0x0.st>
- Update to 0.30.0
Features:
* add validator for trx_addresses
gh#kvesteri/validators#384
-------------------------------------------------------------------
Mon Jul 1 16:57:22 UTC 2024 - Mia Herkt <mia@0x0.st>
- Update to 0.29.0
Breaking:
* move btc_address to crypto_addresses
gh#kvesteri/validators#383
Features:
* add validator for eth addresses
(depends on eth-hash, which is not packaged yet)
gh#kvesteri/validators#383
-------------------------------------------------------------------
Sat May 25 11:48:27 UTC 2024 - Mia Herkt <mia@0x0.st>
- Update to 0.28.3
* ensure _tld.txt is in sdist and bdist
gh#kvesteri/validators#379
- Changes in 0.28.2:
* fix: corrects a few typo
gh#kvesteri/validators#371
* fix(ip_address): properly handle private is false
gh#kvesteri/validators#374
* chore(url): allow symbols and pictographs in url
gh#kvesteri/validators#375
-------------------------------------------------------------------
Thu Apr 25 18:07:37 UTC 2024 - Mia Herkt <mia@0x0.st>
- Update to 0.28.1
* fix: reduce memory footprint when loading TLDs
gh#kvesteri/validators#362
* fix: rfc cases in the domain validator
gh#kvesteri/validators#367
* chore: documentation maintenance
gh#kvesteri/validators#368
-------------------------------------------------------------------
Wed Apr 10 23:38:31 UTC 2024 - Mia Herkt <mia@0x0.st>
- Update to 0.28.0
See https://github.com/python-validators/validators/compare/0.24.0...0.28.0
-------------------------------------------------------------------
Thu Mar 28 16:34:33 UTC 2024 - Mia Herkt <mia@0x0.st>
- Update to 0.24.0
See https://github.com/python-validators/validators/compare/0.22.0...0.24.0
-------------------------------------------------------------------
Tue Nov 7 00:51:52 UTC 2023 - Mia Herkt <mia@0x0.st>
- Update to 0.22.0
See https://github.com/python-validators/validators/compare/0.20.0...0.22.0
-------------------------------------------------------------------
Fri Apr 21 12:38:30 UTC 2023 - Dirk Müller <dmueller@suse.com>
@ -51,7 +148,7 @@ Thu Jul 16 21:30:59 UTC 2020 - Mia Herkt <mia@0x0.st>
-------------------------------------------------------------------
Sat Jul 11 11:00:04 UTC 2020 - Benjamin Greiner <code@bnavigator.de>
- remove isort build requirement. It is not called.
- remove isort build requirement. It is not called.
-------------------------------------------------------------------
Fri May 8 08:28:01 UTC 2020 - Mia Herkt <mia@0x0.st>
@ -112,7 +209,7 @@ Fri Mar 29 10:01:10 UTC 2019 - pgajdos@suse.com
* Remove py33 support
* Fixed IPv4 formatted IP address returning True on ipv6
* Fixed IPv6 address parsing
* Fixed domain validator for international domains and certain
* Fixed domain validator for international domains and certain
edge cases
-------------------------------------------------------------------

View File

@ -1,7 +1,7 @@
#
# spec file for package python-validators
#
# Copyright (c) 2023 SUSE LLC
# Copyright (c) 2024 SUSE LLC
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
@ -16,23 +16,23 @@
#
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
%{?sle15_python_module_pythons}
Name: python-validators
Version: 0.20.0
Version: 0.34.0
Release: 0
Summary: Python Data Validation
License: MIT
Group: Development/Languages/Python
URL: https://github.com/kvesteri/validators
Source: https://files.pythonhosted.org/packages/source/v/validators/validators-%{version}.tar.gz
BuildRequires: %{python_module pip}
BuildRequires: %{python_module setuptools}
BuildRequires: %{python_module wheel}
BuildRequires: dos2unix
BuildRequires: fdupes
BuildRequires: python-rpm-macros
Requires: python-decorator >= 3.4.0
BuildArch: noarch
# SECTION test requirements
BuildRequires: %{python_module decorator >= 3.4.0}
BuildRequires: %{python_module pytest}
# /SECTION
%python_subpackages
@ -42,20 +42,22 @@ Python Data Validation for Humans.
%prep
%setup -q -n validators-%{version}
dos2unix README.md
%build
%python_build
%pyproject_wheel
%install
%python_install
%pyproject_install
%python_expand %fdupes %{buildroot}%{$python_sitelib}
%check
%pytest
# missing eth-hash dependency so those tests must be skipped
%pytest -k 'not test_returns_true_on_valid_eth_address and not test_returns_failed_validation_on_invalid_eth_address'
%files %{python_files}
%doc CHANGES.rst README.rst
%license LICENSE
%{python_sitelib}/*
%doc README.md
%license LICENSE.txt
%{python_sitelib}/validators*
%changelog

BIN
validators-0.20.0.tar.gz (Stored with Git LFS)

Binary file not shown.

BIN
validators-0.34.0.tar.gz (Stored with Git LFS) Normal file

Binary file not shown.