Closed jonathan-johnston closed 3 years ago
Indeed, I tried to fix it but no luck so far. Windows wheels seems not compliant to PyPi RST structure and I have no clue how to fix it right now. I passed several hours trying to debug but it is late here and will be able to continue tomorrow (French timezone).
Example of failed release job: https://github.com/pytries/marisa-trie/runs/3243112448?check_suite_focus=true. Other wheels (Linux and macOS) are just fine, and it worked for 0.7.6. :thinking:
@BoboTiG Thanks for the details and the link to the failed job. I may be wrong but sometimes rST can be quite sensitive to changes in whitespace. I noticed that this commit (https://github.com/pytries/marisa-trie/commit/b89da6f92b4fa0a8f6f183333ae577b883170091) modified the :target:
tag to be indented differently than previously (i.e. one space was removed):
.. image:: https://img.shields.io/pypi/pyversions/marisa-trie.svg
:target: https://pypi.python.org/pypi/marisa-trie
Whereas it was previously aligned with the image
tag line:
.. |pyversions| image:: https://img.shields.io/pypi/pyversions/marisa-trie.svg
:target: https://pypi.python.org/pypi/marisa-trie
Perhaps the indentation difference causes the rST validator to misinterpret :target:
as content instead of a tag, since the error message in the CI workflow is saying no content permitted.
I updated the indentation in 49846e04390b297008186e7cb186f690db2321b5, but same error with Windows wheels:
`long_description` has syntax errors in markup and would not be rendered on PyPI.
line 7: Error: Error in "image" directive:
no content permitted.
Ah I just find the problem:
On Windows there are empty blank lines everywhere. Related issue: bpo-2131.
Ah sh**t, I should have used io.open()
, and not codecs.open()
... Well, that's a lesson for me :)
Fixed in e2decf4f31290fa0d5053fa2132db1e9f7d16dbf and 0.7.7 is now fully uploaded to PyPi. I am very sorry for the incovenience.
It looks like the latest
marisa-trie
release was only partially uploaded to PyPI.I ran into a mismatch between the
marisa-trie
version on PyPI (latest being0.7.7
) and the versions actually available for download (latest being0.7.6
). This results in a failure to installmarisa-trie
using version ranges withpoetry
:pyproject.toml
:Creating lockfile and installing dependencies:
Version listed on PyPI:
https://pypi.org/project/marisa-trie/