commit c8cab3e01d35c17cfd09c442baa5a34fd6b243f115aa6bdfd5110ce5758162d6 Author: Todd R Date: Fri Jun 1 12:35:27 2018 +0000 Accepting request 613459 from devel:languages:python:misc Python Data Validation OBS-URL: https://build.opensuse.org/request/show/613459 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-validators?expand=0&rev=1 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..af9faab --- /dev/null +++ b/python-validators.changes @@ -0,0 +1,57 @@ +------------------------------------------------------------------- +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..cf78dd7 --- /dev/null +++ b/python-validators.spec @@ -0,0 +1,65 @@ +# +# spec file for package python-validators +# +# Copyright (c) 2018 SUSE LINUX GmbH, Nuernberg, Germany. +# +# 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 http://bugs.opensuse.org/ +# + + +%{?!python_module:%define python_module() python-%{**} python3-%{**}} +Name: python-validators +Version: 0.12.1 +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 devel} +BuildRequires: %{python_module setuptools} +BuildRequires: fdupes +BuildRequires: python-rpm-macros +# SECTION test requirements +BuildRequires: %{python_module decorator >= 3.4.0} +BuildRequires: %{python_module nose} +BuildRequires: %{python_module pytest} +BuildRequires: %{python_module six >= 1.4.0} +# /SECTION +Requires: python-decorator >= 3.4.0 +Requires: python-six >= 1.4.0 +BuildArch: noarch + +%python_subpackages + +%description +Python Data Validation for Humans. + +%prep +%setup -q -n validators-%{version} + +%build +%python_build + +%install +%python_install +%python_expand %fdupes %{buildroot}%{$python_sitelib} + +%check +%python_expand py.test-%{$python_bin_suffix} + +%files %{python_files} +%doc CHANGES.rst README.rst +%license LICENSE +%{python_sitelib}/* + +%changelog diff --git a/validators-0.12.1.tar.gz b/validators-0.12.1.tar.gz new file mode 100644 index 0000000..55f0817 --- /dev/null +++ b/validators-0.12.1.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:79855e18710be5d8ba5e0c16086d76f230af11df2b8341b64995b42153c7f204 +size 21734