Accepting request 1226003 from devel:languages:python

- update to 2.0.0:
  * Add new writer method and namespace Element / parsing
  * Readd the Element with namespaces
  * Add el_has_namespaces to ElementTree classes
  * Deprecate python 3.6 and 3.7 as nsetree requires a more recent XMLParser
  * Fix docstrings of _IncrementalFileWriter

- Move to singlespec
- Initial Release : build python3

OBS-URL: https://build.opensuse.org/request/show/1226003
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-et_xmlfile?expand=0&rev=6
This commit is contained in:
Ana Guerrero 2024-11-24 10:04:56 +00:00 committed by Git OBS Bridge
commit 2f5590f2d7
5 changed files with 19 additions and 45 deletions

View File

@ -1,34 +0,0 @@
This software is under the MIT Licence
======================================
Copyright (c) 2010 openpyxl
Permission is hereby granted, free of charge, to any person obtaining a
copy of this software and associated documentation files (the
"Software"), to deal in the Software without restriction, including
without limitation the rights to use, copy, modify, merge, publish,
distribute, sublicense, and/or sell copies of the Software, and to
permit persons to whom the Software is furnished to do so, subject to
the following conditions:
The above copyright notice and this permission notice shall be included
in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
Odict implementation in openpyxl/writer/odict.py uses the following licence:
Copyright (c) 2001-2011 Python Software Foundation
2011 Raymond Hettinger
License: PYTHON SOFTWARE FOUNDATION LICENSE VERSION 2
See http://www.opensource.org/licenses/Python-2.0 for full terms
Note: backport changes by Raymond were originally distributed under MIT
license, but since the original license for Python is more
restrictive than MIT, code cannot be released under its terms and
still adheres to the limitations of Python license.

BIN
et_xmlfile-1.0.1.tar.gz (Stored with Git LFS)

Binary file not shown.

3
et_xmlfile-2.0.0.tar.gz Normal file
View File

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

View File

@ -1,3 +1,13 @@
-------------------------------------------------------------------
Sat Nov 23 18:10:21 UTC 2024 - Dirk Müller <dmueller@suse.com>
- update to 2.0.0:
* Add new writer method and namespace Element / parsing
* Readd the Element with namespaces
* Add el_has_namespaces to ElementTree classes
* Deprecate python 3.6 and 3.7 as nsetree requires a more recent XMLParser
* Fix docstrings of _IncrementalFileWriter
------------------------------------------------------------------- -------------------------------------------------------------------
Thu Sep 26 18:03:11 UTC 2024 - Guang Yee <gyee@suse.com> Thu Sep 26 18:03:11 UTC 2024 - Guang Yee <gyee@suse.com>

View File

@ -1,7 +1,7 @@
# #
# spec file for package python-et_xmlfile # spec file for package python-et_xmlfile
# #
# Copyright (c) 2023 SUSE LLC # Copyright (c) 2024 SUSE LLC
# #
# 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
@ -18,13 +18,12 @@
%{?sle15_python_module_pythons} %{?sle15_python_module_pythons}
Name: python-et_xmlfile Name: python-et_xmlfile
Version: 1.0.1 Version: 2.0.0
Release: 0 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
URL: https://bitbucket.org/openpyxl/et_xmlfile URL: https://foss.heptapod.net/openpyxl/et_xmlfile
Source0: https://files.pythonhosted.org/packages/source/e/et_xmlfile/et_xmlfile-%{version}.tar.gz Source0: https://foss.heptapod.net/openpyxl/et_xmlfile/-/archive/%{version}/et_xmlfile-%{version}.tar.gz
Source1: https://raw.githubusercontent.com/biydnd/et_xmlfile/master/LICENCE.rst
BuildRequires: %{python_module lxml} BuildRequires: %{python_module lxml}
BuildRequires: %{python_module pip} BuildRequires: %{python_module pip}
BuildRequires: %{python_module pytest} BuildRequires: %{python_module pytest}
@ -46,7 +45,6 @@ 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 %{SOURCE1} .
%build %build
%pyproject_wheel %pyproject_wheel