-
-
Notifications
You must be signed in to change notification settings - Fork 109
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
PR: Update update_fa5 command to rename internal font names during update #110
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks @darkvertex for this. I left a couple of comments to avoid the error introduced by this when calling setup.py
.
@ccordoba12 I addressed your feedback. Tests are clearing now. Thanks for the review. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks @darkvertex!
In an effort to prevent further mistakes, I took the core code from https://github.com/chrissimpkins/fontname.py and made it into a utility function that then renames "regular" and "solid" flavours of FA5 to prevent issues like #107 .
This means that the command technically introduces a requirement for the "fonttools" module. Since it is a "dev" command I did not include it in the setup.py's
install_requires
but I did a lot of reading and it seems very tricky to declare the dependency for the command only. There's anextra_requires
thing but that only works for package "entry_points" (which we don't use.) If you know a better way, I'm all ears.For now, it'll raise an exception if the import fails.