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

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

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 440583 by rtp, Sat Mar 30 17:11:11 2013 UTC revision 440584 by fwang, Sat Jun 8 12:15:41 2013 UTC
# Line 1  Line 1 
1  # Created by pyp2rpm-1.0.0  # Created by pyp2rpm-1.0.0
2  %global pypi_name pytest  %global pypi_name pytest
3  %define version 2.3.4  %define version 2.3.5
4    
5  Name:           python-test  Name:           python-test
6  Version:        %{version}  Version:        %{version}
7  Release:        %mkrel 3  Release:        %mkrel 1
8  Group:          Development/Python  Group:          Development/Python
9  Summary:        py.test: simple powerful testing with Python  Summary:        py.test: simple powerful testing with Python
10    
11  License:        MIT  License:        MIT
12  URL:            TODO:  URL:            http://pytest.org
13  Source0:        http://pypi.python.org/packages/source/p/pytest/pytest-%{version}.zip  Source0:        http://pypi.python.org/packages/source/p/pytest/pytest-%{version}.tar.gz
14  BuildArch:      noarch  BuildArch:      noarch
15    
16  BuildRequires:  python-devel  BuildRequires:  python-devel
17  BuildRequires:  python-sphinx  BuildRequires:  python-sphinx
18  BuildRequires:  python-distribute >= 0.6.27  BuildRequires:  python-distribute >= 0.6.27
19  Requires:       python-py >= 1.4.12  Requires:       python-py >= 1.4.13
20    
21  %description  %description
22  The `py.test`` testing tool makes it easy to write small tests, yet  The `py.test`` testing tool makes it easy to write small tests, yet
# Line 25  scales to support complex functional tes Line 25  scales to support complex functional tes
25  - auto-discovery  of test modules and functions,  - auto-discovery  of test modules and functions,
26  - detailed info on failing `assert statements  - 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  %prep
42  %setup -q -n %{pypi_name}-%{version}  %setup -q -n %{pypi_name}-%{version}
43  # Remove bundled egg-info  # Remove bundled egg-info
# Line 35  sphinx-build doc/en html Line 48  sphinx-build doc/en html
48  # remove the sphinx-build leftovers  # remove the sphinx-build leftovers
49  rm -rf html/.{doctrees,buildinfo}  rm -rf html/.{doctrees,buildinfo}
50    
51    cd ..
52    cp -r %{pypi_name}-%{version} python3
53    cd -
54    
55  %build  %build
56  %{__python} setup.py build  %{__python} setup.py build
57    cd ../python3
58    %{__python3} setup.py build
59    cd -
60    
61  %install  %install
62  %{__python} setup.py install --skip-build --root %{buildroot}  %{__python} setup.py install --skip-build --root %{buildroot}
63    cd ../python3
64    %{__python3} setup.py install --skip-build --root %{buildroot}
65    cd -
66    
67  %files  %files
68  %doc html README.txt LICENSE  %doc html README.txt LICENSE
69  %{_bindir}/py.test*  %{python_sitelib}/*
70  %{python_sitelib}/_%{pypi_name}  
71  %{python_sitelib}/%{pypi_name}.py*  %files -n python3-test
72  %{python_sitelib}/%{pypi_name}-%{version}-py?.?.egg-info  %doc html README.txt LICENSE
73    %{python3_sitelib}/*

Legend:
Removed from v.440583  
changed lines
  Added in v.440584

  ViewVC Help
Powered by ViewVC 1.1.30