jisaacstone / sfzlint

parser and linter for sfz files written in python using Lark
MIT License
17 stars 4 forks source link

Setup.py install_requires and package_data issues #1

Closed kmturley closed 2 years ago

kmturley commented 2 years ago

Thank-you for creating the linter. This could be really useful for my automated sfz GitHub workflows: https://github.com/studiorack/salamander-grand-piano/blob/master/.github/workflows/release.yml

Installation I needed to install yaml. Can you add this to the README documentation or the setup.py install_requires property?

pip install pyyaml

Usage When running I get another error:

FileNotFoundError: [Errno 2] No such file or directory: '/usr/local/lib/python3.9/site-packages/sfzlint/syntax.yml'
FileNotFoundError: [Errno 2] No such file or directory: '/usr/local/lib/python3.9/site-packages/sfzlint/sfz.lark'

Opening the folder, the file does not exist:

Screen Shot 2021-11-29 at 3 11 12 PM

Even thought the file is in the repo: https://github.com/jisaacstone/sfzlint/blob/master/sfzlint/syntax.yml

Looks like this file needs to be included in the setup.py:

package_data={'sfzlint': ['*.ebnf','*.yml','*.lark']},

Copying the files manually fixed the issues.