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

  ViewVC Help
Powered by ViewVC 1.1.30