-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsetup.py
More file actions
58 lines (51 loc) · 1.92 KB
/
Copy pathsetup.py
File metadata and controls
58 lines (51 loc) · 1.92 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
# Always prefer setuptools over distutils
from setuptools import setup, find_packages
from os import path
import k2000
# io.open is needed for projects that support Python 2.7
# It ensures open() defaults to text mode with universal newlines,
# and accepts an argument to specify the text encoding
# Python 3 only projects can skip this import
from io import open
here = path.abspath(path.dirname(__file__))
# Get the long description from the README file
with open(path.join(here, "README.md"), encoding="utf-8") as f:
long_description = f.read()
def find_meta(meta):
attr = getattr(k2000, "__{meta}__".format(meta=meta), None)
if not attr:
raise RuntimeError("Unable to find __{meta}__ string.".format(meta=meta))
return attr
setup(
name="k2000",
version=find_meta("version"),
description=find_meta("description"),
long_description=long_description,
long_description_content_type="text/markdown",
url="https://github.com/psobot/k2000",
author=find_meta("author"),
author_email=find_meta("email"),
classifiers=[
"Development Status :: 3 - Alpha",
"Intended Audience :: Developers",
"License :: OSI Approved :: MIT License",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.7",
"Programming Language :: Python :: 3.8",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
],
keywords="kurzweil midi synthesizer k2000 k2vx k2500 k2600 sysex",
packages=find_packages(exclude=["contrib", "docs", "tests"]),
install_requires=["Pillow", "python-rtmidi", "numpy"],
extras_require={"dev": ["check-manifest"], "test": ["coverage"]},
entry_points={
# "console_scripts": [
# "k2000=k2000.command_line:main",
# ],
},
project_urls={
"Bug Reports": find_meta("new_issue_url"),
"Source": find_meta("url"),
},
)