Accepting request 496363 from home:TheBlackCat:branches:devel:languages:python

- Implement single-spec version
- Fix source URL.
- Update to version 0.11.0

OBS-URL: https://build.opensuse.org/request/show/496363
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-xmltodict?expand=0&rev=5
This commit is contained in:
Todd R 2017-05-18 15:26:31 +00:00 committed by Git OBS Bridge
parent 8d396c4ad2
commit 2a3ac57798
4 changed files with 41 additions and 28 deletions

View File

@ -1,3 +1,16 @@
-------------------------------------------------------------------
Thu May 18 15:01:55 UTC 2017 - toddrme2178@gmail.com
- Implement single-spec version
- Fix source URL.
- Update to version 0.11.0
* Determine fileness by checking for read attr
* Add support for Python 3.6.
* Release as a universal wheel.
* Updated docs examples to use print function.
* unparse: pass short_empty_elements to XMLGenerator
* Added namespace support when unparsing.
-------------------------------------------------------------------
Tue Sep 6 07:25:55 UTC 2016 - mardnh@gmx.de

View File

@ -1,7 +1,7 @@
#
# spec file for package python-xmltodict
#
# Copyright (c) 2016 SUSE LINUX GmbH, Nuernberg, Germany.
# Copyright (c) 2017 SUSE LINUX GmbH, Nuernberg, Germany.
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
@ -16,55 +16,55 @@
#
%define use_build_checks 1
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
%bcond_without test
Name: python-xmltodict
Version: 0.10.2
Version: 0.11.0
Release: 0
Summary: Makes working with XML feel like you are working with JSON
License: MIT
Group: Development/Languages/Python
Url: https://github.com/martinblech/xmltodict
Source: https://pypi.io/packages/source/x/xmltodict/xmltodict-%{version}.tar.gz
BuildRequires: python-devel
BuildRequires: python-setuptools
%if 0%{?use_build_checks}
BuildRequires: python-coverage
BuildRequires: python-nose
%endif
%if 0%{?suse_version}
BuildRequires: python-xml
Source: https://files.pythonhosted.org/packages/source/x/xmltodict/xmltodict-%{version}.tar.gz
BuildRequires: %{python_module devel}
BuildRequires: %{python_module setuptools}
BuildRequires: %{python_module xml}
BuildRequires: fdupes
BuildRequires: python-rpm-macros
%if %{with test}
BuildRequires: %{python_module nose >= 1.0}
%endif
Requires: python-xml
BuildRoot: %{_tmppath}/%{name}-%{version}-build
%if 0%{?suse_version} && 0%{?suse_version} <= 1110
%{!?python_sitelib: %global python_sitelib %(python -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")}
%else
BuildArch: noarch
%endif
%python_subpackages
%description
xmltodict is a Python module that makes working with XML feel like you are
working with json, as in this
working with json, as in this:
http://www.xml.com/pub/a/2006/05/31/converting-between-xml-and-json.html
%prep
%setup -q -n xmltodict-%{version}
sed -i '1{\@^#!/usr/bin/env python@d}' xmltodict.py
%build
python setup.py build
%python_build
%install
python setup.py install --prefix=%{_prefix} --root=%{buildroot}
%python_install
%python_expand %fdupes %{buildroot}%{$python_sitelib}
%if %{with test}
%check
%if 0%{?use_build_checks}
nosetests -v
%python_expand nosetests-%{$python_bin_suffix}
%endif
%files
%files %{python_files}
%defattr(-,root,root,-)
%doc README.md LICENSE
%{python_sitelib}/xmltodict*
%{python_sitelib}/xmltodict-%{version}-py%{py_ver}.egg-info
%{python_sitelib}/xmltodict.py*
%pycache_only %{python_sitelib}/__pycache__/xmltodict.*.py*
%{python_sitelib}/xmltodict-%{version}-py*.egg-info
%changelog

View File

@ -1,3 +0,0 @@
version https://git-lfs.github.com/spec/v1
oid sha256:fc518ccf9adbbb917a2ddcb386be852ae6dd36935e1e8b9a3e760201abfdbf77
size 24854

3
xmltodict-0.11.0.tar.gz Normal file
View File

@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:8f8d7d40aa28d83f4109a7e8aa86e67a4df202d9538be40c0cb1d70da527b0df
size 26589