/[packages]/cauldron/python-test/current/SPECS/python-test.spec
ViewVC logotype

Contents of /cauldron/python-test/current/SPECS/python-test.spec

Parent Directory Parent Directory | Revision Log Revision Log


Revision 688379 - (show annotations) (download)
Tue Sep 16 20:19:38 2014 UTC (6 years, 10 months ago) by umeabot
File size: 1984 byte(s)
Mageia 5 Mass Rebuild
1 # Created by pyp2rpm-1.0.0
2 %global pypi_name pytest
3
4 Name: python-test
5 Version: 2.6.2
6 Release: %mkrel 3
7 Group: Development/Python
8 Summary: py.test: simple powerful testing with Python
9
10 License: MIT
11 URL: http://pytest.org
12 Source0: http://pypi.python.org/packages/source/p/pytest/pytest-%{version}.tar.gz
13 BuildArch: noarch
14
15 BuildRequires: python-devel
16 BuildRequires: python-sphinx
17 BuildRequires: python-setuptools
18 Requires: python-py >= 1.4.13
19
20 %description
21 The `py.test`` testing tool makes it easy to write small tests, yet
22 scales to support complex functional testing. It provides
23
24 - auto-discovery of test modules and functions,
25 - detailed info on failing `assert statements
26
27 %package -n python3-test
28 Summary: %{summary} / Python 3 library
29 BuildRequires: python3-devel
30 BuildRequires: python3-setuptools
31 Requires: python3-py >= 1.4.13
32
33 %description -n python3-test
34 The `py.test`` testing tool makes it easy to write small tests, yet
35 scales to support complex functional testing. It provides
36
37 - auto-discovery of test modules and functions,
38 - detailed info on failing `assert statements
39
40 %prep
41 %setup -q -n %{pypi_name}-%{version}
42 # Remove bundled egg-info
43 rm -rf %{pypi_name}.egg-info
44
45 # generate html docs
46 sphinx-build doc/en html
47 # remove the sphinx-build leftovers
48 rm -rf html/.{doctrees,buildinfo}
49
50 cd ..
51 cp -r %{pypi_name}-%{version} %{py3dir}
52 cd -
53
54 %build
55 %{__python} setup.py build
56 pushd %{py3dir}
57 %{__python3} setup.py build
58 popd
59
60 %install
61 pushd %{py3dir}
62 %{__python3} setup.py install --skip-build --root %{buildroot}
63 popd
64
65 # default to python2 flavour of pytest
66 rm -f %{buildroot}%{_bindir}/py.test
67 %{__python} setup.py install --skip-build --root %{buildroot}
68
69 %files
70 %doc html README.rst LICENSE CHANGELOG
71 %{_bindir}/py.test
72 %{_bindir}/py.test-%{pyver}
73 %{python_sitelib}/*
74
75 %files -n python3-test
76 %doc html README.rst LICENSE CHANGELOG
77 %{_bindir}/py.test-%{py3ver}
78 %{python3_sitelib}/*

  ViewVC Help
Powered by ViewVC 1.1.28