-
Notifications
You must be signed in to change notification settings - Fork 59
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
2.x release doesn't pass tests #164
Comments
As shown in the README.md, panflute 2 only support pandoc 2.11.0.4 or above. |
Oops, sorry missed that! |
I've updated to Pandoc 2.11.1.1 and am still encountering the same issue :-( |
What's going on: We use pytest to run our tests. Instead, This means we have a few problems:
|
This should be working now, but reopened due to the question of wth is Also, do you need me to bump the version and republish to pypi? |
I don't think a version bump is urgent for this (for Arch) as I went ahead and pushed the package update up, but people have to build it with By the way the reason running tests this way and not through tox or pytest is important is that instead of testing the library (which tox and pytest are great for since they setup virtual environments with exact matches for the project dependencies) we want to test the library in the actual context of system supplied dependencies. There is not much point in a distro testing whether an upstream package passes its own regression tests in a virtual clean room (the project should be doing that anyway), but there is a lot of point in making sure it works right in the distro context with packages that may or may not be an exact version match for the dependencies and may or may not have all the right options. |
I can confirm that the Arch Linux |
That makes a lot of sense. I tried searching at what
This leaves two questions:
I'm not sure of either, so I'll leave the issue open in case someone knows the answer |
One option is to have a very simple test that call panflute somehow. e.g. homebrew test pandoc by converting a one-line text. The reason for test in package manager is different—they want to make sure it is installed correctly. Imagine some test like in pandoc that runs for almost an hour, a package manager wouldn't want to run the whole test suite there. |
I just got a similar error message trying to run panflute 2.0.4 as noted at manubot/rootstock#386 (comment). Here's the CI log and error: File "/usr/share/miniconda3/envs/manubot/lib/python3.7/site-packages/panflute/containers.py", line 76, in insert
v = check_type(v, self.oktypes)
File "/usr/share/miniconda3/envs/manubot/lib/python3.7/site-packages/panflute/utils.py", line 71, in check_type
raise TypeError(msg)
TypeError:
Element "MetaList" received "CSL_Item" but expected <class 'panflute.base.MetaValue'> In our case, I think we're passing a List of CSL_Item elements to the metadata. CSL_Item subclasses dict. Error is coming from Lines 67 to 71 in 32fc99b
Is this the same issue? |
Sorry, just commented here: manubot/rootstock#386 (comment) Meta elements in Pandoc are a bit restrictive in what they can accept, and AFAIK you can only assign certain elements to them (listed in pandoc-types, as mentioned in the comment). |
Getting back to this. I believe @dhimmel's comment has been resolved. @alerque, is it resolved already? e.g. in another packaging effort in https://github.com/conda-forge/panflute-feedstock/blob/master/recipe/meta.yaml#L35-L45 , we just test packaging error by
Closing? |
Yes I just checked again and I think we're good here as far as Arch Linux packaging is concerned. |
Great! |
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:The package itself seems to build and run okay, just the test suite is broken somehow.
The text was updated successfully, but these errors were encountered: