From 9f25a90b2fbf22340694350e911b5e804d14bca6 Mon Sep 17 00:00:00 2001 From: Vadim Rutkovsky Date: Mon, 15 Aug 2016 18:03:20 +0200 Subject: [PATCH] Initial import --- .gitignore | 1 + python-pytest-runner.spec | 77 +++++++++++++++++++++++++++++++++++++++ sources | 1 + 3 files changed, 79 insertions(+) create mode 100644 python-pytest-runner.spec diff --git a/.gitignore b/.gitignore index e69de29..1adbbea 100644 --- a/.gitignore +++ b/.gitignore @@ -0,0 +1 @@ +/pytest-runner-2.9.tar.gz diff --git a/python-pytest-runner.spec b/python-pytest-runner.spec new file mode 100644 index 0000000..34ff330 --- /dev/null +++ b/python-pytest-runner.spec @@ -0,0 +1,77 @@ +%global modulename pytest-runner +%global _modulename pytest_runner + +Name: python-%{modulename} +Version: 2.9 +Release: 1%{?dist} +Summary: Invoke py.test as distutils command with dependency resolution + +License: MIT +URL: https://pypi.python.org/pypi/%{modulename} +# setuptools-scm requires a pypi tarball and doesn't like github tarball +Source0: https://files.pythonhosted.org/packages/source/p/%{modulename}/%{modulename}-%{version}.tar.gz + +BuildArch: noarch + +%global _description \ +Setup scripts can use pytest-runner to add setup.py test support for pytest runner. + +%description %{_description} + +%package -n python2-%{modulename} +Summary: %{summary} +%{?python_provide:%python_provide python2-%{modulename}} +Requires: python2-pytest +BuildRequires: python2-devel +BuildRequires: python2-setuptools +BuildRequires: python2-setuptools_scm +BuildRequires: python2-pytest + +%description -n python2-%{modulename} %{_description} + +Python 2 version. + +%package -n python3-%{modulename} +Summary: %{summary} +%{?python_provide:%python_provide python3-%{modulename}} +Requires: python3-pytest +BuildRequires: python3-devel +BuildRequires: python3-setuptools +BuildRequires: python3-setuptools_scm +BuildRequires: python3-pytest + +%description -n python3-%{modulename} %{_description} + +Python 3 version. + +%prep +%autosetup -n %{modulename}-%{version} + +%build +%py2_build +%py3_build + +%install +%py2_install +%py3_install + +%check +%{__python2} setup.py test +%{__python3} setup.py test + +%files -n python2-%{modulename} +%doc README.rst +%license LICENSE +%{python2_sitelib}/ptr.py* +%{python2_sitelib}/%{_modulename}-%{version}-py%{python2_version}.egg-info/ + +%files -n python3-%{modulename} +%doc README.rst +%license LICENSE +%{python3_sitelib}/ptr.py +%{python3_sitelib}/%{_modulename}-%{version}-py%{python3_version}.egg-info/ +%{python3_sitelib}/__pycache__/ptr.* + +%changelog +* Sat Aug 06 2016 Vadim Rutkovsky - 2.9-1 +- Initial package diff --git a/sources b/sources index e69de29..8897cfa 100644 --- a/sources +++ b/sources @@ -0,0 +1 @@ +2212a2e34404b0960b2fdc2c469247b2 pytest-runner-2.9.tar.gz