1
0

Accepting request 655669 from devel:languages:python

- Run the tests
- Make sure to run fudpes correctly

- Remove superfluous devel dependency for noarch package

OBS-URL: https://build.opensuse.org/request/show/655669
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-et_xmlfile?expand=0&rev=2
This commit is contained in:
Dominique Leuenberger 2018-12-13 18:47:46 +00:00 committed by Git OBS Bridge
commit 987679f0bc
2 changed files with 20 additions and 23 deletions

View File

@ -1,3 +1,14 @@
-------------------------------------------------------------------
Thu Dec 6 13:25:04 UTC 2018 - Tomáš Chvátal <tchvatal@suse.com>
- Run the tests
- Make sure to run fudpes correctly
-------------------------------------------------------------------
Tue Dec 4 12:47:44 UTC 2018 - Matej Cepl <mcepl@suse.com>
- Remove superfluous devel dependency for noarch package
------------------------------------------------------------------- -------------------------------------------------------------------
Wed Jul 26 08:56:00 UTC 2017 - bruno@ioda-net.ch Wed Jul 26 08:56:00 UTC 2017 - bruno@ioda-net.ch

View File

@ -1,7 +1,7 @@
# #
# spec file for package python-et_xmlfile # spec file for package python-et_xmlfile
# #
# Copyright (c) 2017 SUSE LINUX GmbH, Nuernberg, Germany. # Copyright (c) 2018 SUSE LINUX GmbH, Nuernberg, Germany.
# #
# All modifications and additions to the file contributed by third parties # All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed # remain the property of their copyright owners, unless otherwise agreed
@ -12,7 +12,7 @@
# license that conforms to the Open Source Definition (Version 1.9) # license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative. # published by the Open Source Initiative.
# Please submit bugfixes or comments via http://bugs.opensuse.org/ # Please submit bugfixes or comments via https://bugs.opensuse.org/
# #
@ -23,11 +23,9 @@ Release: 0
Summary: An implementation of lxml.xmlfile for the standard library Summary: An implementation of lxml.xmlfile for the standard library
License: MIT License: MIT
Group: Development/Languages/Python Group: Development/Languages/Python
Url: https://pypi.python.org/pypi/et_xmlfile URL: https://bitbucket.org/openpyxl/et_xmlfile
Source0: https://files.pythonhosted.org/packages/source/e/et_xmlfile/et_xmlfile-%{version}.tar.gz Source0: https://files.pythonhosted.org/packages/source/e/et_xmlfile/et_xmlfile-%{version}.tar.gz
Source1: https://bitbucket.org/openpyxl/et_xmlfile/raw/8c7ad6904ebe0ff98c204a3e77d7e78528b10ffe/LICENCE.rst Source1: https://bitbucket.org/openpyxl/et_xmlfile/raw/8c7ad6904ebe0ff98c204a3e77d7e78528b10ffe/LICENCE.rst
BuildRequires: %{python_module base}
BuildRequires: %{python_module devel}
BuildRequires: %{python_module lxml} BuildRequires: %{python_module lxml}
BuildRequires: %{python_module pytest} BuildRequires: %{python_module pytest}
BuildRequires: %{python_module setuptools} BuildRequires: %{python_module setuptools}
@ -36,7 +34,6 @@ BuildRequires: python-rpm-macros
Requires: python-jdcal Requires: python-jdcal
Requires: python-lxml >= 3.4 Requires: python-lxml >= 3.4
BuildArch: noarch BuildArch: noarch
%python_subpackages %python_subpackages
%description %description
@ -46,35 +43,24 @@ It is based upon the xmlfile module from lxml with the aim of allowing code to
be developed that will work with both libraries. It was developed initially for be developed that will work with both libraries. It was developed initially for
the openpyxl project but is now a standalone module. the openpyxl project but is now a standalone module.
%prep %prep
%setup -q -n et_xmlfile-%{version} %setup -q -n et_xmlfile-%{version}
rm -rf *.egg-info rm -rf *.egg-info
cp -a %{S:1} . cp -a %{SOURCE1} .
%build %build
%python_build %python_build
%install %install
%python_install %python_install
%fdupes %{buildroot}%{_prefix} %python_expand %fdupes %{buildroot}%{$python_sitelib}
#@todo find a way to write dynamic patch for testing correctly %check
# due to singlespec %python_expand PYTHONPATH="%{buildroot}%{$python_sitelib}" py.test-%{$python_bin_suffix} et_xmlfile/tests
# python2
# import file mismatch:
# imported module 'et_xmlfile.tests.test_incremental_xmlfile' has this __file__ attribute:
# /home/abuild/rpmbuild/BUILD/et_xmlfile-1.0.1/_build.python3/lib/et_xmlfile/tests/test_incremental_xmlfile.py
# which is not the same as the test file we want to collect:
# /home/abuild/rpmbuild/BUILD/et_xmlfile-1.0.1/et_xmlfile/tests/test_incremental_xmlfile.py
#
#%%check
#%%python_exec setup.py test
#%%python_exec %%{_bindir}/pytest
%files %{python_files} %files %{python_files}
%defattr(-,root,root,-) %license LICENCE.rst
%doc README.rst LICENCE.rst %doc README.rst
%{python_sitelib}/et_xmlfile-%{version}-py%{py_ver}.egg-info %{python_sitelib}/et_xmlfile-%{version}-py%{py_ver}.egg-info
%{python_sitelib}/et_xmlfile/ %{python_sitelib}/et_xmlfile/