14
0

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
This commit is contained in:
Todd R
2018-06-01 12:35:27 +00:00
committed by Git OBS Bridge
commit c8cab3e01d
5 changed files with 149 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

1
.gitignore vendored Normal file
View File

@@ -0,0 +1 @@
.osc

57
python-validators.changes Normal file
View File

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

65
python-validators.spec Normal file
View File

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

3
validators-0.12.1.tar.gz Normal file
View File

@@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:79855e18710be5d8ba5e0c16086d76f230af11df2b8341b64995b42153c7f204
size 21734