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

PR: Update update_fa5 command to rename internal font names during update #110

Merged
merged 4 commits into from
Jan 25, 2019

Conversation

darkvertex
Copy link
Contributor

@darkvertex darkvertex commented Jan 24, 2019

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 an extra_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.

@CAM-Gerlach CAM-Gerlach changed the title Update "update_fa5" dev command to rename internal font names during update. Update "update_fa5" dev command to rename internal font names during update Jan 24, 2019
Copy link
Member

@ccordoba12 ccordoba12 left a 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.

setupbase.py Outdated Show resolved Hide resolved
setupbase.py Outdated Show resolved Hide resolved
setupbase.py Outdated Show resolved Hide resolved
@ccordoba12 ccordoba12 changed the title Update "update_fa5" dev command to rename internal font names during update PR: Update update_fa5 command to rename internal font names during update Jan 25, 2019
@ccordoba12 ccordoba12 added this to the v0.5.6 milestone Jan 25, 2019
@darkvertex
Copy link
Contributor Author

@ccordoba12 I addressed your feedback. Tests are clearing now. Thanks for the review.

setupbase.py Outdated Show resolved Hide resolved
Copy link
Member

@ccordoba12 ccordoba12 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks @darkvertex!

@ccordoba12 ccordoba12 merged commit 3f9560b into spyder-ide:master Jan 25, 2019
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

Successfully merging this pull request may close these issues.

2 participants