Skip to content
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

Latest version of pyymal and fontawesome causes generate.py issues #8

Open
eskalVAR opened this issue Jul 4, 2022 · 0 comments
Open

Comments

@eskalVAR
Copy link

eskalVAR commented Jul 4, 2022

generate.py requires the following changes: (see relevant pyymal issue)
Importing:
from yaml import CLoader as Loader
Execution:
icons_dict = yaml.load(requests.get(uri).text, Loader=Loader)

This does not fix the problem fully when as when using --revision=6.x (the latest for font-awesome) 2 "character" unicode characters are added to icons.py. For example:
'0': '\u30', # 0

Therefore` when building the following occurs:

Traceback (most recent call last):
File "/home/viking/Repos/fontawesome-python/setup.py", line 3, in
import fontawesome
File "/home/viking/Repos/fontawesome-python/fontawesome/init.py", line 1, in
from .icons import *
File "/home/viking/Repos/fontawesome-python/fontawesome/icons.py", line 9
'0': '\u30', # 0
^
SyntaxError: (unicode error) 'unicodeescape' codec can't decode bytes in position 0-3: truncated \uXXXX escape

Removing them from icons.py permits successful build and install.

Also description file needs an update:
/usr/lib/python3.10/site-packages/setuptools/dist.py:757: UserWarning: Usage of dash-separated 'description-file' will not be supported in future versions. Please use the underscore name 'description_file' instead
/usr/lib/python3.10/site-packages/setuptools/dist.py:530: UserWarning: The version specified ('6.x-1') is an invalid version, this may not work as expected with newer versions of setuptools, pip, and PyPI. Please see PEP 440 for more details.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant