Giter VIP home page Giter VIP logo

glyphspkg's People

Contributors

danc86 avatar jenskutilek avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

Forkers

danc86

glyphspkg's Issues

"--output" arg seems to incorrectly nest output filepath

First, thank you for making this library! It is already proving to be so helpful, especially in a Makefile similar to your recommendation.

However, I think I may have come across an unintended result, so I wanted to report it.

Context:

  • I have an input, sources/shantellsans-wght_ital_IRGL.glyphspackage
  • I want an output to go into a build-prep folder
  • Therefore, I am adding the arg -o sources/build-prep/shantellsans-wght_ital_IRGL.glyphs

Unexpected result:

  • glyphspkg seems to want to nest the provided output path into the default path, like: fontdir/familyname.glyphs/familyname.glyphs

Here’s the full traceback:

▶ glyphspkg sources/shantellsans-wght_ital_IRGL.glyphspackage -o sources/build-prep/shantellsans-wght_ital_IRGL.glyphs
Reading: sources/shantellsans-wght_ital_IRGL.glyphspackage
Saving: sources/build-prep/shantellsans-wght_ital_IRGL.glyphs/shantellsans-wght_ital_IRGL.glyphs
Traceback (most recent call last):
  File "/Users/stephennixon/type-repos/shantell-sans/venv/bin/glyphspkg", line 8, in <module>
    sys.exit(main())
  File "/Users/stephennixon/type-repos/shantell-sans/venv/lib/python3.10/site-packages/glyphspkg/cmdline.py", line 48, in main
    package_to_single(input_path, arguments.output_path)
  File "/Users/stephennixon/type-repos/shantell-sans/venv/lib/python3.10/site-packages/glyphspkg/package_to_single.py", line 51, in package_to_single
    save_to_plist_path(glyphs_file, output_file_path)
  File "/Users/stephennixon/type-repos/shantell-sans/venv/lib/python3.10/site-packages/glyphspkg/plist.py", line 15, in save_to_plist_path
    with codecs.open(plist_path, "wb", "utf-8") as f:
  File "/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/codecs.py", line 905, in open
    file = builtins.open(filename, mode, buffering)
FileNotFoundError: [Errno 2] No such file or directory: 'sources/build-prep/shantellsans-wght_ital_IRGL.glyphs/shantellsans-wght_ital_IRGL.glyphs'

This happens whether I try to run glyphspkg from the command line or from a Makefile. I might be doing something wrong, but I don’t think I am...

Thanks again!

setup.cfg: license_file parameter deprecated and will be unsupported by 2023-10-30

The following warning will pop up during package build:

> /usr/lib/python3/dist-packages/setuptools/config/setupcfg.py:293: _DeprecatedConfig: Deprecated config in `setup.cfg`
> !!
> 
>         ********************************************************************************
>         The license_file parameter is deprecated, use license_files instead.
> 
>         By 2023-Oct-30, you need to update your project and remove deprecated calls
>         or your builds will no longer be supported.
> 
>         See https://setuptools.pypa.io/en/latest/userguide/declarative_config.html for details.
>         ********************************************************************************
> 

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.