-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathsetup.py
48 lines (44 loc) · 1.28 KB
/
setup.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
#!/usr/bin/env python
# -*- coding: utf-8 -*-
from setuptools import setup
from pathlib import Path
try:
import appdirs
except Exception:
pass # not installed yet probably
else:
# remove the .pickle cache files
# I'm lazy to hook into the setup functions
user_cache_dir = Path(appdirs.user_cache_dir("sfzlint", "jisaacstone"))
for pfile in user_cache_dir.rglob('*.pickle'):
pfile.unlink()
with open("README.md", "r", encoding="utf-8") as fh:
long_description = fh.read()
setup(
name='sfzlint',
version='0.1.4',
description='parser and linter for sfz files written in python',
long_description=long_description,
long_description_content_type='text/markdown',
url='https://github.com/jisaacstone/sfzlint',
project_urls={
"Bug Tracker": "https://github.com/jisaacstone/sfzlint/issues",
},
author='jisaacstone',
packages=['sfzlint'],
package_data={'sfzlint': ['*.ebnf','*.yml','*.lark']},
test_suite='tests',
entry_points={
'console_scripts': [
'sfzlint = sfzlint.cli:sfzlint',
'sfzlist = sfzlint.cli:sfzlist',
]
},
install_requires=[
'appdirs',
'lark-parser>=0.7.8',
'pyyaml>=6.0.0'
],
python_requires='>3.6',
license='MIT',
)