dev-python/dicttoxml: treeclean
Signed-off-by: Andreas Billmeier <b@edevau.net>
This commit is contained in:
parent
e60a34c063
commit
5743e4718f
|
@ -617,7 +617,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 1979 Ebuilds in total, 1968 of them have in total 1988 (42 different) licenses assigned.
|
||||
There are 1978 Ebuilds in total, 1967 of them have in total 1987 (42 different) licenses assigned.
|
||||
|
||||
|License| Ebuilds using it|
|
||||
|-------|-----|
|
||||
|
@ -626,7 +626,7 @@ There are 1979 Ebuilds in total, 1968 of them have in total 1988 (42 different)
|
|||
|GPL-3|128|
|
||||
|BSD|111|
|
||||
|LGPL-3|26|
|
||||
|GPL-2|22|
|
||||
|GPL-2|21|
|
||||
|BSD-2|15|
|
||||
|LGPL-3+|15|
|
||||
|all-rights-reserved|13|
|
||||
|
|
|
@ -1,4 +0,0 @@
|
|||
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 624 BLAKE2B db6f9afcc5d9afda0d7b6bec3343a2cd34155ecb99166ca2ff94396e7c07ee24d7df1fdb52a809f6de9f62893edd371a7627a75c7d55a5bd868db8b3bec8378a SHA512 da2d0aecccea69be4a879a5303cfb5972ff341a8f5491be4d6d0b4429298f6f08f3c0c94d5abfc9d640e78947f97429140c11becd59e5e216957f81802178d01
|
||||
MISC metadata.xml 542 BLAKE2B 8b3d2a722977fb273548c23ef1a4a32fc2372c5db69b1f2be466f42ab267be707d11a04566fe24ef5fb86e72582669babb486db6e829a5dc1eb3685475f12dc8 SHA512 4cc9e8fc3625461353593a9ccdcd783a0dae09840afa345318245e3347858529bb174a533687af33cccb71c824f25e0313e66758ed217840c5da6f8e2afd6d3c
|
|
@ -1,24 +0,0 @@
|
|||
# Copyright 1999-2024 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=8
|
||||
|
||||
PYTHON_COMPAT=( python3_{10..12} )
|
||||
DISTUTILS_USE_PEP517=setuptools
|
||||
inherit distutils-r1 pypi
|
||||
|
||||
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/"
|
||||
|
||||
LICENSE="GPL-2"
|
||||
SLOT="0"
|
||||
KEYWORDS="amd64 arm arm64 x86"
|
||||
IUSE="test"
|
||||
RESTRICT="!test? ( test )"
|
||||
|
||||
PATCHES=(
|
||||
# https://github.com/quandyfactory/dicttoxml/pull/73/files
|
||||
"${FILESDIR}/${P}-py3.10.patch"
|
||||
)
|
||||
|
||||
distutils_enable_tests pytest
|
|
@ -1,58 +0,0 @@
|
|||
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),
|
|
@ -1,16 +0,0 @@
|
|||
<?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>
|
||||
<remote-id type="github">quandyfactory/dicttoxml</remote-id>
|
||||
<maintainer status="unknown">
|
||||
<email>Ryan McGreal <ryan@quandyfactory.com></email>
|
||||
<name>Ryan McGreal</name>
|
||||
</maintainer>
|
||||
</upstream>
|
||||
</pkgmetadata>
|
Loading…
Reference in New Issue