commit c0a0f312cc61450107c34e262d64ca124f84863d32dfce45dfe8940d2a47af4f Author: Mia Herkt Date: Tue Jul 9 12:53:29 2024 +0000 - Update to 0.31.0 Features: * add validators for base16 and base32 encodings gh#kvesteri/validators#386 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-validators?expand=0&rev=55 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/.gitignore b/.gitignore new file mode 100644 index 0000000..57affb6 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +.osc diff --git a/python-validators.changes b/python-validators.changes new file mode 100644 index 0000000..332c268 --- /dev/null +++ b/python-validators.changes @@ -0,0 +1,251 @@ +------------------------------------------------------------------- +Tue Jul 9 12:49:35 UTC 2024 - Mia Herkt + +- 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 + +- 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 + +- 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 + +- 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 + +- 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 + +- 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 + +- 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 + +- 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 + +- add sle15_python_module_pythons (jsc#PED-68) + +------------------------------------------------------------------- +Thu Apr 13 22:45:48 UTC 2023 - Matej Cepl + +- Make calling of %{sle15modernpython} optional. + +------------------------------------------------------------------- +Fri Mar 17 10:44:31 UTC 2023 - pgajdos@suse.com + +- python-six is not required + +------------------------------------------------------------------- +Wed Jun 15 16:24:35 UTC 2022 - Mia Herkt + +- Update to 0.20.0 + * Add ipv4 digit lenghts validation + (gh#kvesteri/validators#191) + * Fix error with international URLs that have more than 2 hyphens + (gh#kvesteri/validators#184) +Changes in 0.19.0: + * Improve IPv6 validation + (gh#kvesteri/validators#201 gh#kvesteri/validators#107) + * Drop support for Python 3.4 + +------------------------------------------------------------------- +Sun Oct 11 19:05:52 UTC 2020 - Mia Herkt + +- Update to 0.18.1: + * Made uuid validator accept UUID objects + +------------------------------------------------------------------- +Thu Aug 20 04:53:07 UTC 2020 - Mia Herkt + +- Update to 0.18.0: + * Added bitcoin address validator +Changes from 0.17.0 to 0.17.1: + * Fixed python_requires using twine +Changes from 0.16.0 to 0.17.0: + * Fix URL validator ip_last_octet regex + +------------------------------------------------------------------- +Thu Jul 16 21:30:59 UTC 2020 - Mia Herkt + +- Update to 0.16.0: + * Added support for emojis and more IDNA URLs + +------------------------------------------------------------------- +Sat Jul 11 11:00:04 UTC 2020 - Benjamin Greiner + +- remove isort build requirement. It is not called. + +------------------------------------------------------------------- +Fri May 8 08:28:01 UTC 2020 - Mia Herkt + +- Update to 0.15.0: + * Added bank card validators +- Changes for 0.14.3: + * Handle None values gracefully in domain validator + * Local part of the email address should be less or equal than + 64 bytes + * Removed py27 support + * Removed pypy2 support + +------------------------------------------------------------------- +Fri Jan 24 21:49:23 UTC 2020 - Martin Herkt <9+suse@cirno.systems> + +- Update to 0.14.2: + * Made domain validation case-insensitive + +------------------------------------------------------------------- +Thu Dec 5 23:15:30 UTC 2019 - Martin Herkt <9+suse@cirno.systems> + +- Update to 0.14.1: + * Updated domain validator regex to not allow numeric only TLDs + * Allow for idna encoded domains + +------------------------------------------------------------------- +Tue Sep 10 09:25:32 UTC 2019 - Tomáš Chvátal + +- Update to 0.14.0: + * Added new validators ipv4_cidr, ipv6_cidr + +------------------------------------------------------------------- +Fri May 24 19:11:44 UTC 2019 - Tomáš Chvátal + +- Update to 0.13.0: + * Added new validator: es_doi, es_nif, es_cif, es_nie (#121, pull request courtesy kingbuzzman) + +------------------------------------------------------------------- +Wed May 22 15:16:16 UTC 2019 - pgajdos@suse.com + +- version update to 0.12.6 + * Fixed domain validator for single character domains + CVE-2019-19588 - boo#1158542 + +------------------------------------------------------------------- +Tue Apr 16 16:01:41 UTC 2019 - Martin Herkt <9+suse@cirno.systems> + +- Update to 0.12.5 + * Fixed py37 support + +------------------------------------------------------------------- +Fri Mar 29 10:01:10 UTC 2019 - pgajdos@suse.com + +- version update to 0.12.4 + * Use inspect.getfullargspec() in py3 + * Added `allow_temporal_ssn` parameter to fi_ssn validator + * Remove py33 support + * Fixed IPv4 formatted IP address returning True on ipv6 + * Fixed IPv6 address parsing + * Fixed domain validator for international domains and certain + edge cases + +------------------------------------------------------------------- +Tue Dec 4 12:55:45 UTC 2018 - Matej Cepl + +- Remove superfluous devel dependency for noarch package + +------------------------------------------------------------------- +Thu May 24 18:10:49 UTC 2018 - toddrme2178@gmail.com + +- Run tests +- Spec file cleanups + +------------------------------------------------------------------- +Tue Jan 30 13:34:37 UTC 2018 - 9+suse@cirno.systems + +- Update to 0.12.1 + * Fixed IDNA encoded TLDs in domain validator + * Fixed URL validator for URLs with invalid characters in + userinfo part +- Use %license macro +- Remove superfluous service + +------------------------------------------------------------------- +Fri Oct 27 00:58:17 UTC 2017 - 9@cirno.systems + +- Convert package to singlespec +- Add download _service +- Update to 0.12.0 + * 0.8.0 (2015-06-24) + + Added new validator: iban + * 0.9.0 (2015-10-10) + + Added new validator: domain + * 0.10.0 (2016-01-09) + + Added support for internationalized domain names in + domain validator + * 0.10.1 (2016-04-09) + + Fixed domain name validation for numeric domain names + + Fixed IBAN validation for Norwegian and Belgian IBANs + * 0.10.2 (2016-06-11) + + Fixed various URL validation issues + * 0.10.3 (2016-06-13) + + Added public parameter to url validator + * 0.11.0 (2016-08-30) + + Fixed public url validation + + Made URL validator case insensitive + + Drop Python 2.6 support + * 0.11.1 (2016-11-19) + + Fixed pyp2rpm build problem + * 0.11.2 (2017-01-08) + + Fixed URL validator for urls with query parameters but + without path + * 0.11.3 (2017-03-27) + + Fixed URL validator for URLs containing localhost + * 0.12.0 (2017-06-03) + + Added hash validators for md5, sha1, sha224, sha256 + and sha512 + + Made ipv6 validator support IPv4-mapped IPv6 addresses + +------------------------------------------------------------------- +Mon Apr 6 21:05:10 UTC 2015 - prusnak@opensuse.org + +- created package (version 0.7) + diff --git a/python-validators.spec b/python-validators.spec new file mode 100644 index 0000000..7de3ce3 --- /dev/null +++ b/python-validators.spec @@ -0,0 +1,63 @@ +# +# spec file for package python-validators +# +# 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 +# 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-validators +Version: 0.31.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 +BuildArch: noarch +# SECTION test requirements +BuildRequires: %{python_module pytest} +# /SECTION +%python_subpackages + +%description +Python Data Validation for Humans. + +%prep +%setup -q -n validators-%{version} +dos2unix README.md + +%build +%pyproject_wheel + +%install +%pyproject_install +%python_expand %fdupes %{buildroot}%{$python_sitelib} + +%check +# 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 README.md +%license LICENSE.txt +%{python_sitelib}/validators* + +%changelog diff --git a/validators-0.31.0.tar.gz b/validators-0.31.0.tar.gz new file mode 100644 index 0000000..b307e29 --- /dev/null +++ b/validators-0.31.0.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:de7574fc56a231c788162f3e7da15bc2053c5ff9e0281d9ff1afb3a7b69498df +size 69295