-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsetup.py
More file actions
89 lines (77 loc) · 2.79 KB
/
setup.py
File metadata and controls
89 lines (77 loc) · 2.79 KB
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
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
from distutils.command.install import install
from distutils.command.clean import clean
import setuptools
import distutils
import os
import glob
import shutil
import sox_chords
requirements = [
"pytest",
"numpy",
"librosa",
"matplotlib",
"requests",
"pyqtgraph",
"tqdm",
"imageio"
]
here = os.path.dirname(__name__)
class CleanCommand(clean):
"""Custom clean command to tidy up the project root."""
CLEAN_FILES = './build ./dist ./.eggs ./*.pyc ./*.tgz ./*.egg-info'.split(' ')
user_options = []
def initialize_options(self):
pass
def finalize_options(self):
pass
def run(self):
global here
for path_spec in self.CLEAN_FILES:
# Make paths absolute and relative to this path
abs_paths = glob.glob(os.path.normpath(os.path.join(here, path_spec)))
for path in [str(p) for p in abs_paths]:
if not path.startswith(here):
# Die if path in CLEAN_FILES is absolute + outside this directory
raise ValueError("%s is not a path inside %s" % (path, here))
print('removing %s' % os.path.relpath(path))
shutil.rmtree(path)
with open("README.md", "r") as fh:
long_description = fh.read()
setuptools.setup(
name='sox_chords',
version=sox_chords.__version__,
description='Generating Guitar Chords using sox',
url='https://github.com/baudcode/sox-chords',
author='Malte Koch',
license='MIT',
long_description=long_description,
long_description_content_type="text/markdown",
download_url='https://github.com/baudcode/sox-chords/archive/v%s.tar.gz' % (sox_chords.__version__),
keywods=["chords", "scales", "notes", "guitar", "sox"],
author_email='malte-koch@gmx.net',
maintainer='Malte Koch',
maintainer_email='malte-koch@gmx.net',
cmdclass={"clean": CleanCommand},
namespace_packages=['sox_chords'],
packages=setuptools.find_packages(exclude=['tests', 'tests.*']),
install_requires=requirements,
entry_points={
'console_scripts': [
],
},
ext_modules=[],
setup_requires=["matplotlib<3.0"],
classifiers=[
'Development Status :: 3 - Alpha', # Chose either "3 - Alpha", "4 - Beta" or "5 - Production/Stable" as the current state of your package
'Intended Audience :: Developers', # Define that your audience are developers
'Operating System :: POSIX :: Linux',
'License :: OSI Approved :: MIT License',
'Programming Language :: Python :: 3',
'Programming Language :: Python :: 2',
'Programming Language :: Python :: 2.7',
'Programming Language :: Python :: 3.4',
'Programming Language :: Python :: 3.5',
'Programming Language :: Python :: 3.6',
],
)