-
Notifications
You must be signed in to change notification settings - Fork 62
Closed
Description
I just tried to update the Arch Linux package for panflute and ran into trouble with the check step which runs python setup.py test
. Against Pandoc 2.11.0.2 it's throwing errors like this:
==> Starting check()...
running test
WARNING: Testing via this command is deprecated and will be removed in a future version. Users looking for a generic test entry point independent of test runner are encouraged to use tox.
running egg_info
writing panflute.egg-info/PKG-INFO
writing dependency_links to panflute.egg-info/dependency_links.txt
writing entry points to panflute.egg-info/entry_points.txt
writing requirements to panflute.egg-info/requires.txt
writing top-level names to panflute.egg-info/top_level.txt
reading manifest file 'panflute.egg-info/SOURCES.txt'
reading manifest template 'MANIFEST.in'
writing manifest file 'panflute.egg-info/SOURCES.txt'
running build_ext
Traceback (most recent call last):
File "setup.py", line 22, in <module>
setup(
File "/usr/lib/python3.8/site-packages/setuptools/__init__.py", line 153, in setup
return distutils.core.setup(**attrs)
File "/usr/lib/python3.8/distutils/core.py", line 148, in setup
dist.run_commands()
File "/usr/lib/python3.8/distutils/dist.py", line 966, in run_commands
self.run_command(cmd)
File "/usr/lib/python3.8/distutils/dist.py", line 985, in run_command
cmd_obj.run()
File "/usr/lib/python3.8/site-packages/setuptools/command/test.py", line 232, in run
self.run_tests()
File "/usr/lib/python3.8/site-packages/setuptools/command/test.py", line 250, in run_tests
test = unittest.main(
File "/usr/lib/python3.8/unittest/main.py", line 100, in __init__
self.parseArgs(argv)
File "/usr/lib/python3.8/unittest/main.py", line 124, in parseArgs
self._do_discovery(argv[2:])
File "/usr/lib/python3.8/unittest/main.py", line 244, in _do_discovery
self.createTests(from_discovery=True, Loader=Loader)
File "/usr/lib/python3.8/unittest/main.py", line 154, in createTests
self.test = loader.discover(self.start, self.pattern, self.top)
File "/usr/lib/python3.8/unittest/loader.py", line 349, in discover
tests = list(self._find_tests(start_dir, pattern))
File "/usr/lib/python3.8/unittest/loader.py", line 405, in _find_tests
tests, should_recurse = self._find_test_path(
File "/usr/lib/python3.8/unittest/loader.py", line 483, in _find_test_path
tests = self.loadTestsFromModule(package, pattern=pattern)
File "/usr/lib/python3.8/site-packages/setuptools/command/test.py", line 50, in loadTestsFromModule
tests.append(self.loadTestsFromName(submodule))
File "/usr/lib/python3.8/unittest/loader.py", line 154, in loadTestsFromName
module = __import__(module_name)
File "/home/caleb/projects/aur/python-panflute/src/panflute-2.0.4/tests/quick.py", line 6, in <module>
doc = Doc(x, metadata=m)
File "/home/caleb/projects/aur/python-panflute/src/panflute-2.0.4/panflute/elements.py", line 58, in __init__
self.metadata = metadata
File "/home/caleb/projects/aur/python-panflute/src/panflute-2.0.4/panflute/elements.py", line 80, in metadata
self._metadata = MetaMap(*value.items())
File "/home/caleb/projects/aur/python-panflute/src/panflute-2.0.4/panflute/elements.py", line 1048, in __init__
self._content = DictContainer(*args, oktypes=MetaValue, parent=self)
File "/home/caleb/projects/aur/python-panflute/src/panflute-2.0.4/panflute/containers.py", line 110, in __init__
self.update(args) # Must be a sequence of tuples
File "/usr/lib/python3.8/_collections_abc.py", line 838, in update
self[key] = value
File "/home/caleb/projects/aur/python-panflute/src/panflute-2.0.4/panflute/containers.py", line 126, in __setitem__
v = check_type(v, self.oktypes)
File "/home/caleb/projects/aur/python-panflute/src/panflute-2.0.4/panflute/utils.py", line 71, in check_type
raise TypeError(msg)
TypeError:
Element "MetaMap" received "Para" but expected <class 'panflute.base.MetaValue'>
The package itself seems to build and run okay, just the test suite is broken somehow.