Skip to content
This repository was archived by the owner on Jun 11, 2024. It is now read-only.
This repository was archived by the owner on Jun 11, 2024. It is now read-only.

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

@eskalVAR

Description

@eskalVAR

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions