From 378e1f49dfaf312730abb4aaa47c3f2f3c77dd97 Mon Sep 17 00:00:00 2001 From: William Moreno Reyes Date: Jan 06 2018 03:25:49 +0000 Subject: Initial import BZ#1529023 Signed-off-by: William Moreno Reyes --- diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..8d16fd4 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +/validators-0.12.0.tar.gz diff --git a/python-validators.spec b/python-validators.spec new file mode 100644 index 0000000..9b6a5aa --- /dev/null +++ b/python-validators.spec @@ -0,0 +1,89 @@ +%global pypiname validators + +Name: python-%{pypiname} +Version: 0.12.0 +Release: 2%{?dist} +Summary: Data Validation in python for Humans + +License: BSD +URL: https://github.com/kvesteri/validators +Source0: https://files.pythonhosted.org/packages/source/v/%{pypiname}/%{pypiname}-%{version}.tar.gz + +BuildArch: noarch +BuildRequires: python2-decorator +BuildRequires: python2-devel +BuildRequires: python2-pytest +BuildRequires: python2-six +BuildRequires: python3-decorator +BuildRequires: python3-devel +BuildRequires: python3-pytest +BuildRequires: python3-six + +%description +Python has all kinds of data validation tools, but every one of them seems to +require defining a schema or form. I wanted to create a simple validation +library where validating a simple value does not require defining a form or +a schema. + +%package -n python2-%{pypiname} + +Summary: Data Validation in python for Humans + +Requires: python2-six +Requires: python2-decorator + +%{?python_provide:%python_provide python2-%{pypiname}} + +%description -n python2-%{pypiname} +Python has all kinds of data validation tools, but every one of them seems to +require defining a schema or form. I wanted to create a simple validation +library where validating a simple value does not require defining a form or +a schema. + +%package -n python3-%{pypiname} + +Summary: Data Validation in python for Humans + +Requires: python3-six +Requires: python3-decorator + +%{?python_provide:%python_provide python3-%{pypiname}} + +%description -n python3-%{pypiname} +Python has all kinds of data validation tools, but every one of them seems to +require defining a schema or form. I wanted to create a simple validation +library where validating a simple value does not require defining a form or +a schema. + +%prep +%setup -q -n %{pypiname}-%{version} + +%build +%py2_build +%py3_build + +%install +%py2_install +%py3_install + +%check +/usr/bin/pytest-2 +/usr/bin/pytest-3 + +%files -n python2-%{pypiname} +%license LICENSE +%doc README.rst CHANGES.rst +%{python2_sitelib}/* + +%files -n python3-%{pypiname} +%license LICENSE +%doc README.rst CHANGES.rst +%{python3_sitelib}/%{pypiname}* + +%changelog +* Sat Jan 06 2018 williamjmorenor@gmail.com - 0.12.0-2 +- Initial import + +* Mon Dec 25 2017 williamjmorenor@gmail.com - 0.12.0-1 +- Initial packaging + Skip docs build with sphinx because a lot of extensions diff --git a/sources b/sources new file mode 100644 index 0000000..ead7b04 --- /dev/null +++ b/sources @@ -0,0 +1 @@ +SHA512 (validators-0.12.0.tar.gz) = 939df5fe645cf372b404b2ff2add7975d200203e23055af6a48ac36ddd28eb38cd1088eaf3f16ea5018a44880d7be851e86f3e6091dec8555549b4c8c3820857