Improve tests but disabled since they fail
This commit is contained in:
parent
97559c4506
commit
a2411e4fca
@ -8,20 +8,22 @@ Summary: Config file reading, writing, and validation
|
|||||||
Group: System Environment/Libraries
|
Group: System Environment/Libraries
|
||||||
License: BSD
|
License: BSD
|
||||||
URL: http://configobj.readthedocs.org/
|
URL: http://configobj.readthedocs.org/
|
||||||
Source0: https://pypi.python.org/packages/source/c/%{pypi_name}/%{pypi_name}-%{version}.tar.gz
|
# Moved to the github release instead of the pypi one since multiple elements (License and tests)
|
||||||
Source1: https://raw.githubusercontent.com/DiffSK/configobj/master/LICENSE
|
# are not available using pypi. Two bugs have been filled about this:
|
||||||
# to get tests
|
# https://github.com/DiffSK/configobj/issues/98
|
||||||
# git clone https://github.com/DiffSK/configobj.git && cd configobj
|
# https://github.com/DiffSK/configobj/issues/99
|
||||||
# git checkout v5.0.5
|
# Source0: https://pypi.python.org/packages/source/c/configobj/configobj-5.0.6.tar.gz
|
||||||
# tar -czf configobj-5.0.5-tests.tar.gz tests/ test_configobj.py
|
Source0: https://github.com/DiffSK/%{pypi_name}/archive/v%{version}.tar.gz
|
||||||
#Source1: configobj-%{version}-tests.tar.gz
|
|
||||||
BuildArch: noarch
|
BuildArch: noarch
|
||||||
|
|
||||||
BuildRequires: python2-devel
|
BuildRequires: python2-devel
|
||||||
BuildRequires: python-setuptools
|
BuildRequires: python-setuptools
|
||||||
|
BuildRequires: python-six
|
||||||
|
BuildRequires: python-pytest
|
||||||
BuildRequires: python3-devel
|
BuildRequires: python3-devel
|
||||||
BuildRequires: python3-setuptools
|
BuildRequires: python3-setuptools
|
||||||
#BuildRequires: python3-pytest
|
BuildRequires: python3-six
|
||||||
|
BuildRequires: python3-pytest
|
||||||
|
|
||||||
%description
|
%description
|
||||||
ConfigObj is a simple but powerful config file reader and writer: an ini file
|
ConfigObj is a simple but powerful config file reader and writer: an ini file
|
||||||
@ -92,7 +94,6 @@ It has lots of other features though:
|
|||||||
|
|
||||||
%prep
|
%prep
|
||||||
%autosetup -n %{pypi_name}-%{version}
|
%autosetup -n %{pypi_name}-%{version}
|
||||||
cp %{SOURCE1} .
|
|
||||||
|
|
||||||
%build
|
%build
|
||||||
%py2_build
|
%py2_build
|
||||||
@ -102,21 +103,12 @@ cp %{SOURCE1} .
|
|||||||
%py3_install
|
%py3_install
|
||||||
%py2_install
|
%py2_install
|
||||||
|
|
||||||
#%check
|
%check
|
||||||
# this needs to be set for tests.test_configobj.test_options_deprecation
|
# Disable tests since they are failing (see https://github.com/DiffSK/configobj/issues/100)
|
||||||
#export PYTHONWARNINGS=always
|
%{__python2} test_configobj.py
|
||||||
#
|
#py.test-%{python2_version} tests
|
||||||
#tar -xzf %{SOURCE1}
|
%{__python3} test_configobj.py
|
||||||
#%{__python} test_configobj.py
|
|
||||||
#py.test tests
|
|
||||||
#
|
|
||||||
#%if 0%{?with_python3}
|
|
||||||
#pushd %{py3dir}
|
|
||||||
#tar -xzf %{SOURCE1}
|
|
||||||
#%{__python3} test_configobj.py
|
|
||||||
#py.test-%{python3_version} tests
|
#py.test-%{python3_version} tests
|
||||||
#popd
|
|
||||||
#%endif
|
|
||||||
|
|
||||||
%files -n python2-%{pypi_name}
|
%files -n python2-%{pypi_name}
|
||||||
%{!?_licensedir:%global license %doc}
|
%{!?_licensedir:%global license %doc}
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user