commit 90a805d147276b1b1bbf031235c057f1e14dcb03e71c9116f30db1574f0c1a18 Author: Alberto Planas Dominguez Date: Mon Dec 14 09:14:07 2015 +0000 Accepting request 348281 from home:bruno_friedmann:branches:devel:languages:python Find a new package which is a dep for python-csvkit It's aligned to the already existing package in dlp3 I can take maintainer role, as it will be used for several projects here. Thanks for your consideration. OBS-URL: https://build.opensuse.org/request/show/348281 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-et_xmlfile?expand=0&rev=1 diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 0000000..9b03811 --- /dev/null +++ b/.gitattributes @@ -0,0 +1,23 @@ +## Default LFS +*.7z filter=lfs diff=lfs merge=lfs -text +*.bsp filter=lfs diff=lfs merge=lfs -text +*.bz2 filter=lfs diff=lfs merge=lfs -text +*.gem filter=lfs diff=lfs merge=lfs -text +*.gz filter=lfs diff=lfs merge=lfs -text +*.jar filter=lfs diff=lfs merge=lfs -text +*.lz filter=lfs diff=lfs merge=lfs -text +*.lzma filter=lfs diff=lfs merge=lfs -text +*.obscpio filter=lfs diff=lfs merge=lfs -text +*.oxt filter=lfs diff=lfs merge=lfs -text +*.pdf filter=lfs diff=lfs merge=lfs -text +*.png filter=lfs diff=lfs merge=lfs -text +*.rpm filter=lfs diff=lfs merge=lfs -text +*.tbz filter=lfs diff=lfs merge=lfs -text +*.tbz2 filter=lfs diff=lfs merge=lfs -text +*.tgz filter=lfs diff=lfs merge=lfs -text +*.ttf filter=lfs diff=lfs merge=lfs -text +*.txz filter=lfs diff=lfs merge=lfs -text +*.whl filter=lfs diff=lfs merge=lfs -text +*.xz filter=lfs diff=lfs merge=lfs -text +*.zip filter=lfs diff=lfs merge=lfs -text +*.zst filter=lfs diff=lfs merge=lfs -text diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..57affb6 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +.osc diff --git a/LICENCE.rst b/LICENCE.rst new file mode 100644 index 0000000..37bcad5 --- /dev/null +++ b/LICENCE.rst @@ -0,0 +1,34 @@ +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. diff --git a/et_xmlfile-1.0.1.tar.gz b/et_xmlfile-1.0.1.tar.gz new file mode 100644 index 0000000..a7a094f --- /dev/null +++ b/et_xmlfile-1.0.1.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:614d9722d572f6246302c4491846d2c393c199cfa4edc9af593437691683335b +size 8427 diff --git a/python-et_xmlfile.changes b/python-et_xmlfile.changes new file mode 100644 index 0000000..4679498 --- /dev/null +++ b/python-et_xmlfile.changes @@ -0,0 +1,5 @@ +------------------------------------------------------------------- +Thu Nov 19 16:53:37 UTC 2015 - bruno@ioda-net.ch + +- Initial Release : build python3 + diff --git a/python-et_xmlfile.spec b/python-et_xmlfile.spec new file mode 100644 index 0000000..377dcb4 --- /dev/null +++ b/python-et_xmlfile.spec @@ -0,0 +1,67 @@ +# +# spec file for package python-jdcal +# +# Copyright (c) 2015 SUSE LINUX Products GmbH, Nuernberg, Germany. +# +# All modifications and additions to the file contributed by third parties +# remain the property of their copyright owners, unless otherwise agreed +# upon. The license for this file, and modifications and additions to the +# file, is the same license as for the pristine package itself (unless the +# license for the pristine package is not an Open Source License, in which +# case the license is the MIT License). An "Open Source License" is a +# license that conforms to the Open Source Definition (Version 1.9) +# published by the Open Source Initiative. + +# Please submit bugfixes or comments via http://bugs.opensuse.org/ +# +%define _pyname et_xmlfile + +Name: python-%{_pyname} +Version: 1.0.1 +Release: 0 +Summary: An implementation of lxml.xmlfile for the standard library +License: MIT +Group: Development/Languages/Python +Url: https://pypi.python.org/pypi/%{_pyname} +Source0: https://pypi.python.org/packages/source/e/%{_pyname}/%{_pyname}-%{version}.tar.gz +Source1: https://bitbucket.org/openpyxl/et_xmlfile/raw/8c7ad6904ebe0ff98c204a3e77d7e78528b10ffe/LICENCE.rst +BuildRequires: python-devel +BuildRequires: python-jdcal +BuildRequires: python-setuptools +BuildRequires: python-base +Requires: python-jdcal +%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()")} +#Mandatory for SLE_11 +BuildRoot: %{_tmppath}/%{name}-%{version}-build +%else +BuildArch: noarch +%endif + +%description +et_xmlfile is a low memory library for creating large XML files. + +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 +the openpyxl project but is now a standalone module. + + +%prep +%setup -q -n %{_pyname}-%{version} +rm -rf *.egg-info +cp -a %{S:1} . + +%build +python setup.py build + +%install +python setup.py install --root=%{buildroot} --prefix=%{_prefix} + +%files +%defattr(-,root,root,-) +%doc README.rst LICENCE.rst +%{python_sitelib}/%{_pyname}-%{version}-py%{py_ver}.egg-info +%{python_sitelib}/%{_pyname}/ + + +%changelog