extra-x86_64-build :: Synchronizing package databases... core is up to date extra is up to date community is up to date :: Starting full system upgrade... there is nothing to do ==> Building in chroot for [extra] (x86_64)... ==> Synchronizing chroot copy [/var/lib/archbuild/extra-x86_64/root] -> [builduser]...done ==> Making package: python-jsonpickle 1.4.1-3 (Tue Nov 10 16:17:15 2020) ==> Retrieving sources... -> Found python-jsonpickle-1.4.1.tar.gz -> Found fix-importlib_metadata-dependency.patch ==> Validating source files with sha512sums... python-jsonpickle-1.4.1.tar.gz ... Passed fix-importlib_metadata-dependency.patch ... Passed ==> Making package: python-jsonpickle 1.4.1-3 (Tue 10 Nov 2020 04:17:18 PM) ==> Checking runtime dependencies... ==> Installing missing dependencies... resolving dependencies... looking for conflicting packages... Packages (2) libnsl-1.3.0-1 python-3.8.6-1 Total Installed Size: 78.05 MiB :: Proceed with installation? [Y/n] (2/2) checking keys in keyring [######################] 100% (2/2) checking package integrity [######################] 100% (2/2) loading package files [######################] 100% (2/2) checking for file conflicts [######################] 100% :: Processing package changes... (1/2) installing libnsl [######################] 100% (2/2) installing python [######################] 100% Optional dependencies for python python-setuptools python-pip sqlite [installed] mpdecimal: for decimal xz: for lzma [installed] tk: for tkinter ==> Checking buildtime dependencies... ==> Installing missing dependencies... resolving dependencies... looking for conflicting packages... Packages (39) blas-3.9.0-3 cblas-3.9.0-3 lapack-3.9.0-3 python-apipkg-1.5-3 python-appdirs-1.4.4-1 python-attrs-20.3.0-1 python-black-20.8b1-2 python-click-7.1.2-1 python-dateutil-2.8.1-3 python-importlib-metadata-2.0.0-1 python-iniconfig-1.0.1-1 python-more-itertools-8.6.0-1 python-mypy_extensions-0.4.3-1 python-ordered-set-4.0.2-1 python-packaging-20.4-1 python-pathspec-0.8.1-1 python-pluggy-0.13.1-2 python-py-1.9.0-1 python-pyparsing-2.4.7-1 python-pytest-6.1.2-1 python-pytz-2020.4-1 python-regex-2020.10.28-1 python-setuptools-1:50.3.2-1 python-sgmllib-5.2.1-6 python-six-1.15.0-1 python-toml-0.10.2-1 python-typed-ast-1.4.1-1 python-typing_extensions-3.7.4.3-1 python-zipp-3.4.0-1 python-coverage-5.3-1 python-feedparser-5.2.1-6 python-numpy-1.19.4-1 python-pandas-1.1.3-1 python-pymongo-3.11.0-1 python-pytest-black-0.3.12-1 python-pytest-cov-2.10.1-1 python-setuptools-scm-4.1.2-1 python-simplejson-3.17.2-1 python-ujson-4.0.1-1 Total Installed Size: 106.07 MiB :: Proceed with installation? [Y/n] (39/39) checking keys in keyring [######################] 100% (39/39) checking package integrity [######################] 100% (39/39) loading package files [######################] 100% (39/39) checking for file conflicts [######################] 100% :: Processing package changes... ( 1/39) installing python-appdirs [######################] 100% ( 2/39) installing python-pyparsing [######################] 100% ( 3/39) installing python-six [######################] 100% ( 4/39) installing python-packaging [######################] 100% ( 5/39) installing python-ordered-set [######################] 100% ( 6/39) installing python-setuptools [######################] 100% ( 7/39) installing python-setuptools-scm [######################] 100% ( 8/39) installing python-click [######################] 100% ( 9/39) installing python-mypy_extensions [######################] 100% (10/39) installing python-pathspec [######################] 100% (11/39) installing python-regex [######################] 100% (12/39) installing python-toml [######################] 100% (13/39) installing python-typed-ast [######################] 100% (14/39) installing python-typing_extensions [######################] 100% (15/39) installing python-black [######################] 100% Optional dependencies for python-black python-aiohttp: for the blackd HTTP server python-aiohttp-cors: for the blackd HTTP server python-colorama: for colored diffs (16/39) installing python-attrs [######################] 100% (17/39) installing python-iniconfig [######################] 100% (18/39) installing python-more-itertools [######################] 100% (19/39) installing python-zipp [######################] 100% (20/39) installing python-importlib-metadata [######################] 100% (21/39) installing python-pluggy [######################] 100% (22/39) installing python-apipkg [######################] 100% (23/39) installing python-py [######################] 100% (24/39) installing python-pytest [######################] 100% (25/39) installing python-pytest-black [######################] 100% (26/39) installing python-coverage [######################] 100% Optional dependencies for python-coverage python-toml: for pyproject.toml support [installed] (27/39) installing python-pytest-cov [######################] 100% (28/39) installing blas [######################] 100% (29/39) installing cblas [######################] 100% (30/39) installing lapack [######################] 100% (31/39) installing python-numpy [######################] 100% Optional dependencies for python-numpy python-nose: testsuite openblas: faster linear algebra (32/39) installing python-sgmllib [######################] 100% (33/39) installing python-feedparser [######################] 100% (34/39) installing python-simplejson [######################] 100% (35/39) installing python-pymongo [######################] 100% (36/39) installing python-ujson [######################] 100% (37/39) installing python-dateutil [######################] 100% (38/39) installing python-pytz [######################] 100% (39/39) installing python-pandas [######################] 100% Optional dependencies for python-pandas python-pandas-datareader: pandas.io.data replacement (recommended) python-numexpr: needed for accelerating certain numerical operations (recommended) python-bottleneck: needed for accelerating certain types of nan evaluations (recommended) python-beautifulsoup4: needed for read_html function python-jinja: needed for conditional HTML formatting python-pyqt5: needed for read_clipboard function (only one needed) python-pytables: needed for HDF5-based storage python-sqlalchemy: needed for SQL database support python-scipy: needed for miscellaneous statistical functions python-xlsxwriter: alternative Excel XLSX output python-blosc: for msgpack compression using blosc python-html5lib: needed for read_hmlt function (and/or python-lxml) python-lxml: needed for read_html function (and/or python-html5lib) python-matplotlib: needed for plotting python-openpyxl: needed for Excel XLSX input/output python-psycopg2: needed for PostgreSQL engine for sqlalchemy python-pymysql: needed for MySQL engine for sqlalchemy python-qtpy: needed for read_clipboard function (only one needed) python-tabulate: needed for printing in Markdown-friendly format python-fsspec: needed for handling files aside from local and HTTP xclip: needed for read_clipboard function (only one needed) python-xlrd: needed for Excel XLS input python-xlwt: needed for Excel XLS output xsel: needed for read_clipboard function (only one needed) zlib: needed for compression for msgpack [installed] ==> Retrieving sources... -> Found python-jsonpickle-1.4.1.tar.gz -> Found fix-importlib_metadata-dependency.patch ==> WARNING: Skipping all source file integrity checks. ==> Extracting sources... -> Extracting python-jsonpickle-1.4.1.tar.gz with bsdtar ==> Starting prepare()... patching file jsonpickle/version.py patching file setup.cfg ==> Starting build()... running build running build_py creating build creating build/lib creating build/lib/jsonpickle copying jsonpickle/compat.py -> build/lib/jsonpickle copying jsonpickle/__init__.py -> build/lib/jsonpickle copying jsonpickle/pickler.py -> build/lib/jsonpickle copying jsonpickle/unpickler.py -> build/lib/jsonpickle copying jsonpickle/util.py -> build/lib/jsonpickle copying jsonpickle/version.py -> build/lib/jsonpickle copying jsonpickle/tags.py -> build/lib/jsonpickle copying jsonpickle/handlers.py -> build/lib/jsonpickle copying jsonpickle/backend.py -> build/lib/jsonpickle creating build/lib/jsonpickle/ext copying jsonpickle/ext/pandas.py -> build/lib/jsonpickle/ext copying jsonpickle/ext/numpy.py -> build/lib/jsonpickle/ext copying jsonpickle/ext/__init__.py -> build/lib/jsonpickle/ext running egg_info creating jsonpickle.egg-info writing jsonpickle.egg-info/PKG-INFO writing dependency_links to jsonpickle.egg-info/dependency_links.txt writing requirements to jsonpickle.egg-info/requires.txt writing top-level names to jsonpickle.egg-info/top_level.txt writing manifest file 'jsonpickle.egg-info/SOURCES.txt' reading manifest file 'jsonpickle.egg-info/SOURCES.txt' reading manifest template 'MANIFEST.in' warning: no files found matching 'COPYING' warning: no files found matching 'Rakefile' warning: no files found matching 'docs/source/**' writing manifest file 'jsonpickle.egg-info/SOURCES.txt' ==> Starting check()... ============================= test session starts ============================== platform linux -- Python 3.8.6, pytest-6.1.2, py-1.9.0, pluggy-0.13.1 rootdir: /build/python-jsonpickle/src/jsonpickle-1.4.1, configfile: pytest.ini plugins: cov-2.10.1, black-0.3.12 collected 370 items conftest.py . [ 0%] setup.py . [ 0%] docs/conf.py . [ 0%] jsonpickle/__init__.py . [ 1%] jsonpickle/backend.py . [ 1%] jsonpickle/compat.py . [ 1%] jsonpickle/handlers.py . [ 1%] jsonpickle/pickler.py F... [ 2%] jsonpickle/tags.py . [ 3%] jsonpickle/unpickler.py F...... [ 5%] jsonpickle/util.py .................. [ 10%] jsonpickle/version.py . [ 10%] jsonpickle/ext/__init__.py . [ 10%] jsonpickle/ext/numpy.py F [ 10%] jsonpickle/ext/pandas.py . [ 11%] tests/backend_test.py ..........ssss.s.sss... [ 17%] tests/benchmark.py . [ 17%] tests/bson_test.py ....... [ 19%] tests/datetime_test.py ................. [ 24%] tests/document_test.py .. [ 24%] tests/ecdsa_test.py .s [ 25%] tests/feedparser_test.py .. [ 25%] tests/handler_test.py ....... [ 27%] tests/helper.py . [ 27%] tests/jsonpickle_test.py Fss.................s.......................... [ 40%] .............................s....s........................ [ 56%] tests/numpy_test.py ..................... [ 62%] tests/object_test.py ....................X....................X......... [ 75%] ............X..... [ 80%] tests/pandas_test.py ....................... [ 87%] tests/runtests.py . [ 87%] tests/sqlalchemy_test.py .sss [ 88%] tests/stdlib_test.py .... [ 89%] tests/util_test.py .ss................................. [ 99%] tests/wizard_test.py ... [100%] =================================== FAILURES =================================== ______________________________ Black format check ______________________________ --- /build/python-jsonpickle/src/jsonpickle-1.4.1/jsonpickle/pickler.py 2020-11-10 16:17:15 +0000 +++ /build/python-jsonpickle/src/jsonpickle-1.4.1/jsonpickle/pickler.py 2020-11-10 16:17:25.376182 +0000 @@ -179,12 +179,11 @@ self._objs = {} self._depth = -1 self._seen = [] def _push(self): - """Steps down one level in the namespace. - """ + """Steps down one level in the namespace.""" self._depth += 1 def _pop(self, value): """Step up one level in the namespace and return the value. If we're at the root, reset the pickler's state. @@ -345,12 +344,11 @@ # instance methods, lambdas, old style classes... self._pickle_warning(obj) return None def _ref_obj_instance(self, obj): - """Reference an existing object or flatten if new - """ + """Reference an existing object or flatten if new""" if self.unpicklable: if self._mkref(obj): # We've never seen this object so return its # json representation. return self._flatten_obj_instance(obj) @@ -382,12 +380,11 @@ except UnicodeDecodeError: pass return {self._bytes_tag: self._bytes_encoder(obj)} def _flatten_obj_instance(self, obj): - """Recursively flatten an instance and return a json-friendly dict - """ + """Recursively flatten an instance and return a json-friendly dict""" data = {} has_class = hasattr(obj, '__class__') has_dict = hasattr(obj, '__dict__') has_slots = not has_dict and hasattr(obj, '__slots__') has_getnewargs = util.has_method(obj, '__getnewargs__') @@ -556,12 +553,11 @@ data = None return data def _flatten_dict_obj(self, obj, data=None): - """Recursively call flatten() and return json-friendly dict - """ + """Recursively call flatten() and return json-friendly dict""" if data is None: data = obj.__class__() # If we allow non-string keys then we have to do a two-phase # encoding to ensure that the reference IDs are deterministic. @@ -621,12 +617,11 @@ continue ok = True return ok def _flatten_newstyle_with_slots(self, obj, data): - """Return a json-friendly dict for new-style objects with __slots__. - """ + """Return a json-friendly dict for new-style objects with __slots__.""" allslots = [ _wrap_string_slot(getattr(cls, '__slots__', tuple())) for cls in obj.__class__.mro() ] @@ -740,10 +735,9 @@ """ return {tags.TYPE: util.importable_name(obj)} def _wrap_string_slot(string): - """Converts __slots__ = 'a' into __slots__ = ('a',) - """ + """Converts __slots__ = 'a' into __slots__ = ('a',)""" if isinstance(string, string_types): return (string,) return string ______________________________ Black format check ______________________________ --- /build/python-jsonpickle/src/jsonpickle-1.4.1/jsonpickle/unpickler.py 2020-11-10 16:17:15 +0000 +++ /build/python-jsonpickle/src/jsonpickle-1.4.1/jsonpickle/unpickler.py 2020-11-10 16:17:26.814779 +0000 @@ -119,12 +119,11 @@ self.safe = safe self.reset() def reset(self): - """Resets the object's internal state. - """ + """Resets the object's internal state.""" # Map reference names to object instances self._namedict = {} # The stack of names traversed for child objects self._namestack = [] ______________________________ Black format check ______________________________ --- /build/python-jsonpickle/src/jsonpickle-1.4.1/jsonpickle/ext/numpy.py 2020-11-10 16:17:15 +0000 +++ /build/python-jsonpickle/src/jsonpickle-1.4.1/jsonpickle/ext/numpy.py 2020-11-10 16:17:28.585445 +0000 @@ -61,12 +61,11 @@ value = self.context.restore(data['value'], reset=False) return self.restore_dtype(data).type(value) class NumpyNDArrayHandler(NumpyBaseHandler): - """Stores arrays as text representation, without regard for views - """ + """Stores arrays as text representation, without regard for views""" def flatten_flags(self, obj, data): if obj.flags.writeable is False: data['writeable'] = False ______________________________ Black format check ______________________________ --- /build/python-jsonpickle/src/jsonpickle-1.4.1/tests/jsonpickle_test.py 2020-11-10 16:17:15 +0000 +++ /build/python-jsonpickle/src/jsonpickle-1.4.1/tests/jsonpickle_test.py 2020-11-10 16:17:34.862677 +0000 @@ -280,12 +280,11 @@ self.assertEqual('two', inflated['k2'].name) self.assertTrue(type(inflated['k2']) is Thing) self.assertEqual(3, inflated['k3']) def test_recursive(self): - """create a recursive structure and test that we can handle it - """ + """create a recursive structure and test that we can handle it""" parent = Thing('parent') child = Thing('child') child.sibling = Thing('sibling') parent.self = parent @@ -344,12 +343,11 @@ flattened = self.pickler.flatten(obj) inflated = self.unpickler.restore(flattened) self.assertEqual(inflated.submodule, sysconfig) def test_type_reference(self): - """This test ensures that users can store references to types. - """ + """This test ensures that users can store references to types.""" obj = Thing('object-with-type-reference') # reference the built-in 'object' type obj.typeref = object @@ -358,12 +356,11 @@ inflated = self.unpickler.restore(flattened) self.assertEqual(inflated.typeref, object) def test_class_reference(self): - """This test ensures that users can store references to classes. - """ + """This test ensures that users can store references to classes.""" obj = Thing('object-with-class-reference') # reference the 'Thing' class (not an instance of the class) obj.classref = Thing @@ -548,13 +545,11 @@ pickle = jsonpickle.encode(obj, keys=True) actual = jsonpickle.decode(pickle, keys=True) self.assertEqual(expect, actual) def test_object_dict_keys(self): - """Test that we handle random objects as keys. - - """ + """Test that we handle random objects as keys.""" thing = Thing('random') pickle = jsonpickle.encode({thing: True}) actual = jsonpickle.decode(pickle) self.assertEqual(actual, {'Thing("random")': True}) @@ -616,21 +611,19 @@ self.assertEqual(actual[0].name, 'a') self.assertEqual(actual[1].name, 'b') self.assertEqual(actual[2].name, 'b') def test_refs_keys_values(self): - """Test that objects in dict keys are referenced correctly - """ + """Test that objects in dict keys are referenced correctly""" j = Thing('random') object_dict = {j: j} pickle = jsonpickle.encode(object_dict, keys=True) actual = jsonpickle.decode(pickle, keys=True) self.assertEqual(list(actual.keys()), list(actual.values())) def test_object_keys_to_list(self): - """Test that objects in dict values are referenced correctly - """ + """Test that objects in dict values are referenced correctly""" j = Thing('random') object_dict = {j: [j, j]} pickle = jsonpickle.encode(object_dict, keys=True) actual = jsonpickle.decode(pickle, keys=True) obj = list(actual.keys())[0] @@ -664,19 +657,16 @@ self.assertEqual(b.first, item) self.assertEqual(b.stuff[b.first], item) self.assertEqual(b.morestuff[b.self_list[1]][b.first], item) def test_load_backend(self): - """Test that we can call jsonpickle.load_backend() - - """ + """Test that we can call jsonpickle.load_backend()""" jsonpickle.load_backend('simplejson', 'dumps', 'loads', ValueError) self.assertTrue(True) def test_set_preferred_backend_allows_magic(self): - """Tests that we can use the pluggable backends magically - """ + """Tests that we can use the pluggable backends magically""" backend = 'os.path' jsonpickle.load_backend(backend, 'split', 'join', AttributeError) jsonpickle.set_preferred_backend(backend) slash_hello, world = jsonpickle.encode('/hello/world') @@ -684,13 +674,11 @@ self.assertEqual(slash_hello, '/hello') self.assertEqual(world, 'world') def test_load_backend_submodule(self): - """Test that we can load a submodule as a backend - - """ + """Test that we can load a submodule as a backend""" jsonpickle.load_backend('os.path', 'split', 'join', AttributeError) self.assertTrue( 'os.path' in jsonpickle.json._backend_names and 'os.path' in jsonpickle.json._encoders and 'os.path' in jsonpickle.json._decoders =============================== warnings summary =============================== tests/numpy_test.py::NumpyTestCase::test_dtype_roundtrip /build/python-jsonpickle/src/jsonpickle-1.4.1/tests/numpy_test.py:56: FutureWarning: Passing (type, 1) or '1type' as a synonym of type is deprecated; in a future version of numpy, it will be understood as (type, (1,)) / '(1,)type'. np.dtype('1i4', align=True), tests/numpy_test.py::NumpyTestCase::test_ndarray_roundtrip /build/python-jsonpickle/src/jsonpickle-1.4.1/jsonpickle/ext/numpy.py:292: UserWarning: ndarray is defined by reference to an object we do not know how to serialize. A deep copy is serialized instead, breaking memory aliasing. warnings.warn(msg) -- Docs: https://docs.pytest.org/en/stable/warnings.html ----------- coverage: platform linux, python 3.8.6-final-0 ----------- Name Stmts Miss Cover Missing ---------------------------------------------------------- jsonpickle/__init__.py 21 0 100% jsonpickle/backend.py 114 15 87% 62, 83, 117-118, 166-167, 176, 202-203, 208-212, 244-245 jsonpickle/compat.py 31 10 68% 24-33, 38 jsonpickle/ext/__init__.py 0 0 100% jsonpickle/ext/numpy.py 167 6 96% 30, 94, 161, 293-298 jsonpickle/ext/pandas.py 151 0 100% jsonpickle/handlers.py 137 6 96% 121, 128, 157, 180, 247, 290 jsonpickle/pickler.py 359 46 87% 261, 295-296, 301, 304, 346-347, 375-376, 380-383, 406, 422-426, 434-438, 450-452, 508-509, 517, 529-530, 535, 549-550, 556, 650, 663, 672, 679-688, 701, 719, 723-725 jsonpickle/tags.py 22 0 100% jsonpickle/unpickler.py 415 51 88% 100-101, 104, 189, 191, 228, 247, 264-275, 297-298, 301, 306, 329, 374-376, 379-385, 412, 425-430, 444, 545, 552, 658-659, 682, 697, 699-700, 716-718 jsonpickle/util.py 167 10 94% 33, 84, 313, 347-348, 411, 531, 540, 560-561 jsonpickle/version.py 15 5 67% 5, 8-9, 16-17 ---------------------------------------------------------- TOTAL 1599 149 91% =========================== short test summary info ============================ FAILED jsonpickle/pickler.py::BLACK FAILED jsonpickle/unpickler.py::BLACK FAILED jsonpickle/ext/numpy.py::BLACK FAILED tests/jsonpickle_test.py::BLACK ====== 4 failed, 344 passed, 19 skipped, 3 xpassed, 2 warnings in 17.98s ======= ==> ERROR: A failure occurred in check(). Aborting... ==> ERROR: Build failed, check /var/lib/archbuild/extra-x86_64/builduser/build