mirror of
https://github.com/gentoo-mirror/gentoo.git
synced 2026-01-06 02:17:34 -08:00
dev-python/ioflo: Remove old
Signed-off-by: Michał Górny <mgorny@gentoo.org>
This commit is contained in:
parent
d9083bcade
commit
4bd611846f
@ -1,2 +1 @@
|
||||
DIST ioflo-2.0.2.gh.tar.gz 837382 BLAKE2B 1fe878c8a9a47a9be5083e392e15256f1a566433b4341e2ee234e84332bb72af0c426d04c77ccace33cfb05664745caaa63e910913c3d63bbb2e5d8360a1ec90 SHA512 7485924ce329889afb1c3e0555b54fdbfb11eafce48fb0ac15bacd229fea512c44fcc118bbc4368ebc7c770d62129ee6b895b982f73a269de7131ea37daac02b
|
||||
DIST ioflo-2.0.3.gh.tar.gz 837379 BLAKE2B c10105c9ccff5377d14182fdecce293b213a180da1ce3214c1797c43bd36c0e322ee004505d09dac0ebf8875bcc4beb30da32f6a41bf702cf45c84a5a7819167 SHA512 b2d8c0a2504df87366b373d40d2536d6a75bc682aa72aaa20235893eed4725acf027fecf7263395a38141314d3b24435939f3e69db8f8bd8bc56ca8038b9ed8a
|
||||
|
||||
@ -1,32 +0,0 @@
|
||||
diff --git a/ioflo/aio/udp/test/test_udping.py b/ioflo/aio/udp/test/test_udping.py
|
||||
index 9aefdf0..ec44721 100644
|
||||
--- a/ioflo/aio/udp/test/test_udping.py
|
||||
+++ b/ioflo/aio/udp/test/test_udping.py
|
||||
@@ -122,6 +122,7 @@ class BasicTestCase(unittest.TestCase):
|
||||
shutil.rmtree(tempDirpath)
|
||||
console.reinit(verbosity=console.Wordage.concise)
|
||||
|
||||
+ @unittest.skip("needs network access")
|
||||
def testBroadcast(self):
|
||||
"""
|
||||
Test Class SocketUdpNb
|
||||
diff --git a/ioflo/base/test/test_logging.py b/ioflo/base/test/test_logging.py
|
||||
index 0b8ce13..b64d469 100644
|
||||
--- a/ioflo/base/test/test_logging.py
|
||||
+++ b/ioflo/base/test/test_logging.py
|
||||
@@ -33,6 +33,7 @@ def tearDownModule():
|
||||
console.reinit(verbosity=console.Wordage.concise)
|
||||
|
||||
|
||||
+@unittest.skip("needs network access")
|
||||
class LoggerTestCase(testing.LoggerIofloTestCase):
|
||||
"""
|
||||
Example TestCase
|
||||
@@ -927,6 +928,7 @@ class LoggerTestCase(testing.LoggerIofloTestCase):
|
||||
pass
|
||||
|
||||
|
||||
+@unittest.skip("needs network access")
|
||||
class HouseTestCase(testing.HouseIofloTestCase):
|
||||
"""
|
||||
Example TestCase
|
||||
@ -1,51 +0,0 @@
|
||||
commit 2961d846dd250334b8fc52c2ef4c00ebc36ed510
|
||||
Author: Felix Yan <felixonmars@archlinux.org>
|
||||
Date: Fri Nov 20 04:42:02 2020 +0800
|
||||
|
||||
Fix compatibility with Python 3.9
|
||||
|
||||
json.loads() removed encoding parameter
|
||||
(https://bugs.python.org/issue39377)
|
||||
It was a no-op since 3.1.
|
||||
|
||||
diff --git a/ioflo/aio/http/clienting.py b/ioflo/aio/http/clienting.py
|
||||
index 11132e3..967570e 100644
|
||||
--- a/ioflo/aio/http/clienting.py
|
||||
+++ b/ioflo/aio/http/clienting.py
|
||||
@@ -268,13 +268,13 @@ class Requester(object):
|
||||
'\r\n{2}'.format(boundary, key, val))
|
||||
formParts.append('\r\n--{0}--'.format(boundary))
|
||||
form = "".join(formParts)
|
||||
- body = form.encode(encoding='utf-8')
|
||||
+ body = form.encode('utf-8')
|
||||
self.headers[u'content-type'] = u'multipart/form-data; boundary={0}'.format(boundary)
|
||||
else:
|
||||
formParts = [u"{0}={1}".format(key, val) for key, val in self.fargs.items()]
|
||||
form = u'&'.join(formParts)
|
||||
form = quote_plus(form, '&=')
|
||||
- body = form.encode(encoding='utf-8')
|
||||
+ body = form.encode('utf-8')
|
||||
self.headers[u'content-type'] = u'application/x-www-form-urlencoded; charset=utf-8'
|
||||
else: # body last in precendence
|
||||
body = self.body
|
||||
diff --git a/ioflo/aio/http/httping.py b/ioflo/aio/http/httping.py
|
||||
index ba604e7..a22cc84 100644
|
||||
--- a/ioflo/aio/http/httping.py
|
||||
+++ b/ioflo/aio/http/httping.py
|
||||
@@ -746,7 +746,7 @@ class EventSource(object):
|
||||
if edata: # data so dispatch event by appending to .events
|
||||
if self.dictable:
|
||||
try:
|
||||
- ejson = json.loads(edata, encoding='utf-8', object_pairs_hook=odict)
|
||||
+ ejson = json.loads(edata, object_pairs_hook=odict)
|
||||
except ValueError as ex:
|
||||
ejson = None
|
||||
else: # valid json set edata to ejson
|
||||
@@ -1058,7 +1058,6 @@ class Parsent(object):
|
||||
if self.jsoned or self.dictable: # attempt to deserialize json
|
||||
try:
|
||||
self.data = json.loads(self.body.decode('utf-8'),
|
||||
- encoding='utf-8',
|
||||
object_pairs_hook=odict)
|
||||
except ValueError as ex:
|
||||
self.data = None
|
||||
@ -1,131 +0,0 @@
|
||||
diff --git a/ioflo/aid/aiding.py b/ioflo/aid/aiding.py
|
||||
index 6840d07..525b311 100644
|
||||
--- a/ioflo/aid/aiding.py
|
||||
+++ b/ioflo/aid/aiding.py
|
||||
@@ -135,7 +135,7 @@ def nameToPath(name):
|
||||
return path
|
||||
|
||||
def isPath(s):
|
||||
- """Returns True if string s is valid Store path name
|
||||
+ r"""Returns True if string s is valid Store path name
|
||||
Returns False otherwise
|
||||
|
||||
Faster to use precompiled versions in base
|
||||
@@ -201,7 +201,7 @@ def isPath(s):
|
||||
return False
|
||||
|
||||
def isIdentifier(s):
|
||||
- """Returns True if string s is valid python identifier (variable, attribute etc)
|
||||
+ r"""Returns True if string s is valid python identifier (variable, attribute etc)
|
||||
Returns False otherwise
|
||||
|
||||
how to determine if string is valid python identifier
|
||||
diff --git a/ioflo/aid/classing.py b/ioflo/aid/classing.py
|
||||
index 2bd37b5..493f5dc 100644
|
||||
--- a/ioflo/aid/classing.py
|
||||
+++ b/ioflo/aid/classing.py
|
||||
@@ -5,7 +5,7 @@ meta class and base class utility classes and functions
|
||||
from __future__ import absolute_import, division, print_function
|
||||
|
||||
import sys
|
||||
-from collections import Iterable, Sequence
|
||||
+from collections.abc import Iterable, Sequence
|
||||
from abc import ABCMeta
|
||||
import functools
|
||||
import inspect
|
||||
@@ -123,7 +123,7 @@ def isIterator(obj):
|
||||
|
||||
|
||||
|
||||
-from collections import Generator
|
||||
+from collections.abc import Generator
|
||||
|
||||
def attributize(genfunc):
|
||||
"""
|
||||
diff --git a/ioflo/aid/eventing.py b/ioflo/aid/eventing.py
|
||||
index 837778b..f76ff0c 100644
|
||||
--- a/ioflo/aid/eventing.py
|
||||
+++ b/ioflo/aid/eventing.py
|
||||
@@ -7,7 +7,7 @@ from __future__ import absolute_import, division, print_function
|
||||
import sys
|
||||
import os
|
||||
import datetime
|
||||
-from collections import Set # both set and frozen set
|
||||
+from collections.abc import Set # both set and frozen set
|
||||
|
||||
# Import ioflo libs
|
||||
from .sixing import *
|
||||
diff --git a/ioflo/aid/osetting.py b/ioflo/aid/osetting.py
|
||||
index 6e6fffd..a99a09c 100644
|
||||
--- a/ioflo/aid/osetting.py
|
||||
+++ b/ioflo/aid/osetting.py
|
||||
@@ -6,11 +6,11 @@ http://code.activestate.com/recipes/576694/
|
||||
"""
|
||||
from __future__ import absolute_import, division, print_function
|
||||
|
||||
-import collections
|
||||
+import collections.abc
|
||||
|
||||
from .sixing import *
|
||||
|
||||
-class oset(collections.MutableSet):
|
||||
+class oset(collections.abc.MutableSet):
|
||||
"""
|
||||
Ordered Set, preserves order of entry in set
|
||||
|
||||
diff --git a/ioflo/base/acting.py b/ioflo/base/acting.py
|
||||
index c4b7bb3..95ad188 100644
|
||||
--- a/ioflo/base/acting.py
|
||||
+++ b/ioflo/base/acting.py
|
||||
@@ -5,7 +5,8 @@
|
||||
|
||||
import time
|
||||
import struct
|
||||
-from collections import deque, Mapping
|
||||
+from collections import deque
|
||||
+from collections.abc import Mapping
|
||||
from functools import wraps
|
||||
import inspect
|
||||
import copy
|
||||
diff --git a/ioflo/base/doing.py b/ioflo/base/doing.py
|
||||
index 5af023c..c074380 100644
|
||||
--- a/ioflo/base/doing.py
|
||||
+++ b/ioflo/base/doing.py
|
||||
@@ -3,7 +3,8 @@ doing.py doer module for do verb behaviors
|
||||
"""
|
||||
import time
|
||||
import struct
|
||||
-from collections import deque, Mapping
|
||||
+from collections import deque
|
||||
+from collections.abc import Mapping
|
||||
from functools import wraps
|
||||
import inspect
|
||||
import copy
|
||||
diff --git a/ioflo/base/framing.py b/ioflo/base/framing.py
|
||||
index 3416289..6a33a35 100644
|
||||
--- a/ioflo/base/framing.py
|
||||
+++ b/ioflo/base/framing.py
|
||||
@@ -5,7 +5,8 @@
|
||||
import sys
|
||||
|
||||
import copy
|
||||
-from collections import deque, Mapping
|
||||
+from collections import deque
|
||||
+from collections.abc import Mapping
|
||||
import uuid
|
||||
|
||||
from ..aid.sixing import *
|
||||
diff --git a/ioflo/base/logging.py b/ioflo/base/logging.py
|
||||
index d78a5fa..dca7460 100644
|
||||
--- a/ioflo/base/logging.py
|
||||
+++ b/ioflo/base/logging.py
|
||||
@@ -10,7 +10,8 @@ import datetime
|
||||
import copy
|
||||
import io
|
||||
|
||||
-from collections import deque, MutableSequence, MutableMapping, Mapping
|
||||
+from collections import deque
|
||||
+from collections.abc import MutableSequence, MutableMapping, Mapping
|
||||
|
||||
from ..aid.sixing import *
|
||||
from .globaling import *
|
||||
@ -1,29 +0,0 @@
|
||||
diff --git a/ioflo/aio/tcp/test/test_tcping.py b/ioflo/aio/tcp/test/test_tcping.py
|
||||
index f78d43f..ea9cc26 100644
|
||||
--- a/ioflo/aio/tcp/test/test_tcping.py
|
||||
+++ b/ioflo/aio/tcp/test/test_tcping.py
|
||||
@@ -12,6 +12,8 @@ import shutil
|
||||
import socket
|
||||
import errno
|
||||
|
||||
+import pytest
|
||||
+
|
||||
from ioflo.aid.sixing import *
|
||||
from ioflo.aid.consoling import getConsole
|
||||
from ioflo.aio import wiring
|
||||
@@ -966,6 +968,7 @@ class BasicTestCase(unittest.TestCase):
|
||||
wireLogBeta.close()
|
||||
console.reinit(verbosity=console.Wordage.concise)
|
||||
|
||||
+ @pytest.mark.skip("Broken on modern python versions")
|
||||
def testTLSConnectionVerifyNeither(self):
|
||||
"""
|
||||
Test TLS client server connection with neither verify certs
|
||||
@@ -1490,6 +1493,7 @@ class BasicTestCase(unittest.TestCase):
|
||||
wireLogBeta.close()
|
||||
console.reinit(verbosity=console.Wordage.concise)
|
||||
|
||||
+ @pytest.mark.skip("Broken on modern python versions")
|
||||
def testTLSConnectionVerifyBothTLSv1(self):
|
||||
"""
|
||||
Test TLS client server connection with neither verify certs
|
||||
@ -1,37 +0,0 @@
|
||||
# Copyright 1999-2023 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=8
|
||||
|
||||
DISTUTILS_USE_PEP517=setuptools
|
||||
PYTHON_COMPAT=( python3_{10..12} )
|
||||
|
||||
inherit distutils-r1
|
||||
|
||||
DESCRIPTION="Automated Reasoning Engine and Flow Based Programming Framework"
|
||||
HOMEPAGE="
|
||||
https://github.com/ioflo/ioflo/
|
||||
https://pypi.org/project/ioflo/
|
||||
"
|
||||
SRC_URI="
|
||||
https://github.com/ioflo/ioflo/archive/v${PV}.tar.gz
|
||||
-> ${P}.gh.tar.gz
|
||||
"
|
||||
|
||||
LICENSE="Apache-2.0"
|
||||
SLOT="0"
|
||||
KEYWORDS="amd64 ~arm arm64 ~riscv x86"
|
||||
|
||||
PATCHES=(
|
||||
"${FILESDIR}/ioflo-1.7.8-network-test.patch"
|
||||
"${FILESDIR}/ioflo-2.0.2-python39.patch"
|
||||
"${FILESDIR}/ioflo-2.0.2-tests.patch"
|
||||
"${FILESDIR}/ioflo-2.0.2-py310.patch"
|
||||
)
|
||||
|
||||
distutils_enable_tests pytest
|
||||
|
||||
python_prepare_all() {
|
||||
sed -e 's:"setuptools_git[^"]*",::' -i setup.py || die
|
||||
distutils-r1_python_prepare_all
|
||||
}
|
||||
Loading…
x
Reference in New Issue
Block a user