elifesciences / elife-crossref-xml-generation

Crossref deposit of journal articles
MIT License
4 stars 3 forks source link

Changes for Python 3.8 XML tag attribute output. #127

Closed gnott closed 2 years ago

gnott commented 2 years ago

Re issue https://github.com/elifesciences/issues/issues/7490

In Python 3.8 and newer, the XML tag attribute order in output is different. Changes here are to the test fixtures to reflect the output when running in Python 3.8, plus there is a way the XML fixtures are changed if running in pre-Python 3.8.

Some of the main library code is changed to alter the order of some tag attributes, to make the output more compatible with all the versions of Python 3.

A new version for this library of 0.12.0 will mark the release.