From 9c07f84c0154f6a650812a3d40137469f5b2e40a Mon Sep 17 00:00:00 2001 From: Miro Hrončok Date: Jul 30 2018 22:15:30 +0000 Subject: Initial import (#1609863) --- diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..f6a3a77 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +/*.tar.gz diff --git a/README.md b/README.md deleted file mode 100644 index d3c6b63..0000000 --- a/README.md +++ /dev/null @@ -1,3 +0,0 @@ -# python-genty - -The python-genty package \ No newline at end of file diff --git a/python-genty.spec b/python-genty.spec new file mode 100644 index 0000000..5ab9ee6 --- /dev/null +++ b/python-genty.spec @@ -0,0 +1,60 @@ +%global pypi_name genty +Name: python-%{pypi_name} +Version: 1.3.2 +Release: 1%{?dist} +Summary: Allows you to run a test with multiple data sets +License: ASL 2.0 +URL: https://github.com/box/genty +Source0: %pypi_source +BuildArch: noarch + +BuildRequires: python3-devel +BuildRequires: python3dist(setuptools) +BuildRequires: python3dist(six) + +%description +Genty, pronounced "gen-tee", stands for "generate tests". It promotes +generative testing, where a single test can execute over a variety of input +Genty makes this a breeze. + + +%package -n python3-%{pypi_name} +Summary: %{summary} +%{?python_provide:%python_provide python3-%{pypi_name}} +Requires: python3dist(six) + +%description -n python3-%{pypi_name} +Genty, pronounced "gen-tee", stands for "generate tests". It promotes +generative testing, where a single test can execute over a variety of input +Genty makes this a breeze. + + +%prep +%autosetup -n %{pypi_name}-%{version} + +# Use mock from standard library: +sed -i 's/from mock/from unittest.mock/' test/test_genty.py + + +%build +%py3_build + + +%install +%py3_install + + +%check +%{__python3} setup.py test + + +%files -n python3-%{pypi_name} +%license LICENSE +%doc README.rst +%{python3_sitelib}/%{pypi_name} +%{python3_sitelib}/%{pypi_name}-%{version}-py?.?.egg-info + + +%changelog +* Mon Jul 30 2018 Miro Hrončok - 1.3.2-1 +- Initial package diff --git a/sources b/sources new file mode 100644 index 0000000..3199199 --- /dev/null +++ b/sources @@ -0,0 +1 @@ +SHA512 (genty-1.3.2.tar.gz) = cfe984dfe5af48ba9f4f959a1d0ab1d331d3c2fdb64c680572e5652b845e5c290097ec3ed2b4e472a563cd6ab79489124f6eb212902a05a2f1ce5ff254a82e13