commit 7d480dad055a0f3002ab07a0fe2b942cac16cc52 Author: ultra_planet Date: Sat Nov 30 14:40:42 2019 +0800 package init diff --git a/python-sure.spec b/python-sure.spec new file mode 100644 index 0000000..f1de8d5 --- /dev/null +++ b/python-sure.spec @@ -0,0 +1,61 @@ +Name: python-sure +Version: 1.4.11 +Release: 4 +Summary: Utility belt for automated testing in Python +License: GPLv3+ +URL: https://github.com/gabrielfalcao/sure +Source0: https://files.pythonhosted.org/packages/source/s/sure/sure-%{version}.tar.gz + +BuildRequires: python2-devel python-mock python-nose python-setuptools python-six +BuildRequires: python3-devel python3-mock python3-nose python3-setuptools python3-six +Requires: python-six +BuildArch: noarch + +%description +An idiomatic testing library for python with powerful and flexible assertions. Sure is heavily +inspired in RSpec Expectations and should.js. + +%package -n python2-sure +Summary: Utility belt for automated testing in Python 2 +%{?python_provide:%python_provide python2-sure} + +%description -n python2-sure +An idiomatic testing library for python with powerful and flexible assertions. Sure is heavily +inspired in RSpec Expectations and should.js. + +%package -n python3-sure +Summary: Utility belt for automated testing in Python 3 +Requires: python3-six +%{?python_provide:%python_provide python3-sure} + +%description -n python3-sure +An idiomatic testing library for python with powerful and flexible assertions. Sure is heavily +inspired in RSpec Expectations and should.js. + +%prep +%autosetup -n sure-%{version} -p1 +rm -rf sure.egg-info + +%build +%py2_build +%py3_build + +%install +%py2_install +%py3_install + +%check +%{__python2} -m nose --verbosity 2 +%{__python3} -m nose --verbosity 2 + +%files -n python2-sure +%doc COPYING +%{python2_sitelib}/* + +%files -n python3-sure +%doc COPYING +%{python3_sitelib}/* + +%changelog +* Wed Nov 27 2019 lingsheng 1.4.11-4 +* Package init diff --git a/sure-1.4.11.tar.gz b/sure-1.4.11.tar.gz new file mode 100644 index 0000000..ddff5b5 Binary files /dev/null and b/sure-1.4.11.tar.gz differ