re-add icttoxml-1.7.4Â

This commit is contained in:
2022-06-20 19:48:35 +02:00
committed by Andreas Billmeier
parent 82683eca63
commit be1054a21d
5 changed files with 124 additions and 7 deletions

View File

@@ -97,7 +97,7 @@ Best you start using the `app-misc/homeassistant-min` Ebuild. If you have it run
* Since I use Gentoo mostly on servers, I do not use systemd, one reason to run Gentoo is that you are NOT forced to run this crap. Beginning homeassistant-2021.2.0, handling for systemd was added by request, thanks to @Tatsh for help.
* I use an own profile based on "amd64/17.1/no-multilib"
* I currently run tests only on Python 3.9, and am starting to try builds on Python 3.10.
* python-3.9.12 is set as default target.
* python-3.9.13 is set as default target.
# Bigger Changes
@@ -304,13 +304,13 @@ I run Home Assistant on a virtual X64 box, 4GB RAM, 3 Cores of an older Xeon E5-
## My machines
Currently I have three VM's running:
### Production
Python 3.9.12
Python 3.9.13
4 GB RAM, 3 cores of a Intel(R) Xeon(R) Silver 4114 CPU @ 2.20GHz
### Dev / Test
Python 3.9.12
Python 3.9.13
4 GB RAM, 3 cores of a Intel(R) Xeon(R) Silver 4114 CPU @ 2.20GHz
### Dev / Test2
Python 3.10.4
Python 3.10.5
4 GB RAM, 3 cores of a Intel(R) Xeon(R) Silver 4114 CPU @ 2.20GHz
## Hardware I use
@@ -524,7 +524,7 @@ A daily compile test is run at Github with Python 3.9 to catch general faults. E
## Licenses
This repository itself is released under GPL-3 (like most Gentoo repositories), all work on the depending components under the licenses they came from. Perhaps you came here because I filed an issue at your component about a bad or missing license. It is easy to [assign a license](https://docs.github.com/en/communities/setting-up-your-project-for-healthy-contributions/adding-a-license-to-a-repository). During cleanups and license investigations I have been asked often which license to choose. I am not a lawyer, but I can offer the following table, counted over this repository, perhaps this helps your decision. If a package has more than one license listed, all of them are counted.
There are 1771 Ebuilds in total, 1764 of them have in total 1771 (35 different) licenses assigned.
There are 1772 Ebuilds in total, 1765 of them have in total 1771 (35 different) licenses assigned.
|License| Ebuilds using it|
|-------|-----|
@@ -564,9 +564,9 @@ There are 1771 Ebuilds in total, 1764 of them have in total 1771 (35 different)
|CC-BY-NC-SA-4.0|1|
|CC0-1.0|1|
(Last counted: 15/06/2022)
(Last counted: 20/06/2022)
I did my best to keep these clean. If a valid license was published on PyPI, it has been automatically merged. Otherwise I took it from GitHub or alternatively from comments/files in the source. Sometimes these differed and have been not unique. All license strings are adjusted to the list in `/usr/portage/gentoo/licenses/`. Some packages do not have any license published. In this case, Authors have been asked for clarification, some did not respond. Following the [official Gentoo Guide](https://devmanual.gentoo.org/general-concepts/licenses/index.html), these then were added with an `all-rights-reserved` license and `RESTRICT="mirror"` was set. Find the appropriate licenses referenced in the Ebuild files and in the corresponding homepages or sources.
A big thanks goes to Iris for reviewing this README.
Last updated: 15/06/2022
Last updated: 20/06/2022

View File

@@ -0,0 +1,4 @@
AUX dicttoxml-1.7.4-py3.10.patch 2064 BLAKE2B 3cf7ba808fe4f0a74281f29dd120304ff1b69e39d1a8cfaac930297fdc801acb11f13903ce3806ba823968ff1df6c5493a4e2672c37c4bb385e806c624c5bece SHA512 8813bdbe353eb54087946aba4cb6bad7893ad1ca9b92b449d2298fe6e4e4ec6881f712ffe2eb42154c6ddfce37e6fef3f7a6949a792e148c330dac5f9d99383c
DIST dicttoxml-1.7.4.tar.gz 18190 BLAKE2B e8fd4974cbd9e83b72c25f28fa5595421be88ed5fbb1e64721280c4ead3003f95c98c7b4f12bced926f0c4af31b30dd76ddd49ddf297fa5f68eeb466d042ede6 SHA512 91abcf2b9b248717618e9fc1c8694e881b9deaa16438dd4674f94a22b4aabfdab3b13f95c3d44a60577d49eca82fb268f59b33d1312cf5388bdaf949a2865cbf
EBUILD dicttoxml-1.7.4-r4.ebuild 876 BLAKE2B 014f1e948473d23e541e45a736d2c6bca4bfbb5f00e8098def0f258c06522bb2521f346d29da9a785d57ddcff9707ad638f6917660cf0276750458caaa0b9623 SHA512 e8991f3ad2649ae24fe02c188cd2307593b8e1fada2e029dd54811bca9f90409adb1e1a1c075383fd5be609020f0c157910ec19dc753ff8045516d6d5e4e0bec
MISC metadata.xml 456 BLAKE2B 85ba008826b98699df017f04559b32ad02805e2b3cbe8d596fb93759d2ffa3355cb52a0a9f6bfb2291caace55471453fab569950ac5ab383a49d0e4316363940 SHA512 9214be39c72594bc7255251055cfcb46e1a438e3093a5b9ba9adf430973a6a78853848ef1170e254dd90411f611135153159baf711c9358085bae85c4aa7d53d

View File

@@ -0,0 +1,40 @@
# Copyright 1999-2022 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
PYTHON_COMPAT=( python3_{8..10} )
inherit distutils-r1
DESCRIPTION="Converts a Python dictionary or other native data type into a valid XML string."
HOMEPAGE="https://github.com/quandyfactory/dicttoxml https://pypi.org/project/dicttoxml/"
SRC_URI="mirror://pypi/${P:0:1}/${PN}/${P}.tar.gz"
LICENSE="LICENCE.txt"
SLOT="0"
KEYWORDS="~amd64 ~arm ~arm64 ~x86"
IUSE="test"
RESTRICT="!test? ( test )"
DOCS=""
RDEPEND=""
BDEPEND="
dev-python/setuptools[${PYTHON_USEDEP}]
test? (
dev-python/nose[${PYTHON_USEDEP}]
dev-python/pytest[${PYTHON_USEDEP}]
)"
python_test() {
nosetests --verbose || die
py.test -v -v || die
}
PATCHES=(
# https://github.com/quandyfactory/dicttoxml/pull/73/files
"${FILESDIR}/${P}-py3.10.patch"
)
distutils_enable_tests pytest

View File

@@ -0,0 +1,58 @@
From 2b7b4522b7255fbc8f1e04304d2e440d333909d5 Mon Sep 17 00:00:00 2001
From: Kier von Konigslow <kvonkonigslow@gmail.com>
Date: Sat, 28 Dec 2019 14:08:46 -0500
Subject: [PATCH] Fix deprecation with collections abc
---
dicttoxml.py | 10 +++++-----
1 file changed, 5 insertions(+), 5 deletions(-)
diff --git a/dicttoxml.py b/dicttoxml.py
index ae1384a..5d2dd54 100755
--- a/dicttoxml.py
+++ b/dicttoxml.py
@@ -15,7 +15,7 @@
version = __version__
from random import randint
-import collections
+import collections.abc
import numbers
import logging
from xml.dom.minidom import parseString
@@ -96,7 +96,7 @@ def get_xml_type(val):
return 'null'
if isinstance(val, dict):
return 'dict'
- if isinstance(val, collections.Iterable):
+ if isinstance(val, collections.abc.Iterable):
return 'list'
return type(val).__name__
@@ -188,7 +188,7 @@ def convert(obj, ids, attr_type, item_func, cdata, parent='root'):
if isinstance(obj, dict):
return convert_dict(obj, ids, parent, attr_type, item_func, cdata)
- if isinstance(obj, collections.Iterable):
+ if isinstance(obj, collections.abc.Iterable):
return convert_list(obj, ids, parent, attr_type, item_func, cdata)
raise TypeError('Unsupported data type: %s (%s)' % (obj, type(obj).__name__))
@@ -232,7 +232,7 @@ def convert_dict(obj, ids, parent, attr_type, item_func, cdata):
)
)
- elif isinstance(val, collections.Iterable):
+ elif isinstance(val, collections.abc.Iterable):
if attr_type:
attr['type'] = get_xml_type(val)
addline('<%s%s>%s</%s>' % (
@@ -295,7 +295,7 @@ def convert_list(items, ids, parent, attr_type, item_func, cdata):
)
)
- elif isinstance(item, collections.Iterable):
+ elif isinstance(item, collections.abc.Iterable):
if not attr_type:
addline('<%s %s>%s</%s>' % (
item_name, make_attrstring(attr),

View File

@@ -0,0 +1,15 @@
<?xml version='1.0' encoding='UTF-8'?>
<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
<pkgmetadata>
<maintainer type="project">
<email>b@edevau.net</email>
<name>Andreas Billmeier</name>
</maintainer>
<upstream>
<remote-id type="pypi">dicttoxml</remote-id>
<maintainer status="unknown">
<email>ryan@quandyfactory.com</email>
<name>Ryan McGreal</name>
</maintainer>
</upstream>
</pkgmetadata>