From 3137e7ccb66ef5134cdeeb42a4146ca7d69e4066 Mon Sep 17 00:00:00 2001 From: Matthias Runge Date: Thu, 18 Oct 2012 14:33:39 +0200 Subject: [PATCH] initial import --- .gitignore | 1 + python-tox.spec | 92 +++++++++++++++++++++++++++++++++++++++++++++++++ sources | 1 + 3 files changed, 94 insertions(+) create mode 100644 python-tox.spec diff --git a/.gitignore b/.gitignore index e69de29..02c0850 100644 --- a/.gitignore +++ b/.gitignore @@ -0,0 +1 @@ +/tox-1.4.2.zip diff --git a/python-tox.spec b/python-tox.spec new file mode 100644 index 0000000..1dda942 --- /dev/null +++ b/python-tox.spec @@ -0,0 +1,92 @@ +# Tests requiring Internet connections are disabled by default +# pass --with internet to run them (e.g. when doing a local rebuild +# for sanity checks before committing) +%bcond_with internet + + +%global pypiname tox +Name: python-tox +Version: 1.4.2 +Release: 6%{?dist} +Summary: Virtualenv-based automation of test activities + +# file toxbootstrap.py is licensed under MIT License +License: GPLv2+ and MIT +URL: http://codespeak.net/tox +Source0: http://pypi.python.org/packages/source/t/%{pypiname}/%{pypiname}-%{version}.zip +#md5=dc52acf22eb57eaa33e704f8a54e7b34 + +BuildArch: noarch +BuildRequires: python2-devel +BuildRequires: python-setuptools +# required for check +%if 0%{?fedora} +BuildRequires: python-py +BuildRequires: pytest +BuildRequires: python-virtualenv +%endif + +%description +Tox as is a generic virtualenv management and test command line tool you +can use for: + + - checking your package installs correctly with different Python versions + and interpreters + - running your tests in each of the environments, configuring your test tool + of choice + - acting as a frontend to Continuous Integration servers, greatly reducing + boilerplate and merging CI and shell-based testing. + +%prep +%setup -q -n %{pypiname}-%{version} + +%build +%{__python} setup.py build + +%install +%{__python} setup.py install -O1 --skip-build --root %{buildroot} + +# if internet connection available, run tests +%if %{with internet} +%check +# python 2.7: fedora 17, fedora 18 +# python 3.2: fedora 17 +# python 3.3: fedora 18 + +# el6: buildrequirements missing +#%if 0%{?rhel}==6 +#TOXENV=py26 %{__python} setup.py test +#%endif + +%if 0%{?fedora}==17 || 0%{?fedora}==18 +TOXENV=py27 %{__python} setup.py test +%endif + +%endif + +%files +%doc LICENSE README.txt ISSUES.txt doc +%{_bindir}/%{pypiname} +%{python_sitelib}/%{pypiname} +%{python_sitelib}/%{pypiname}-%{version}-py2.?.egg-info + + +%changelog +* Thu Oct 18 2012 Matthias Runge - 1.4.2-6 +- change license to GPLv2+ and MIT + +* Tue Oct 16 2012 Matthias Runge - 1.4.2-5 +- totally disable python3 support for now + +* Fri Oct 12 2012 Matthias Runge - 1.4.2-4 +- conditionalize checks, as internet connection required, not available on koji + +* Thu Oct 11 2012 Matthias Runge - 1.4.2-3 +- buildrequirement: virtualenv +- disable python3-tests because of missing build-requirement python3-virtualenv + +* Wed Oct 10 2012 Matthias Runge - 1.4.2-2 +- include tests + +* Tue Oct 09 2012 Matthias Runge - 1.4.2-1 +- initial packaging diff --git a/sources b/sources index e69de29..bb111d0 100644 --- a/sources +++ b/sources @@ -0,0 +1 @@ +dc52acf22eb57eaa33e704f8a54e7b34 tox-1.4.2.zip