fontawesome-python icon indicating copy to clipboard operation
fontawesome-python copied to clipboard

Latest version of pyymal and fontawesome causes generate.py issues

Open eskalVAR opened this issue 3 years ago • 0 comments

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.

eskalVAR avatar Jul 04 '22 05:07 eskalVAR