-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.py
66 lines (59 loc) · 1.96 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
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
import glob
from setuptools import setup, find_packages
from setuptools.command.install import install
with open("sc_kernel/__init__.py", "rb") as fid:
for line in fid:
line = line.decode("utf-8") # type: ignore
if line.startswith("__version__"): # type: ignore
version = line.strip().split()[-1][1:-1]
break
DISTNAME = "sc_kernel"
DATA_FILES = [
(
"share/jupyter/kernels/sc_kernel",
["%s/kernel.json" % DISTNAME] + glob.glob("%s/images/*.png" % DISTNAME),
)
]
class install_with_kernel_spec(install):
def run(self):
install.run(self)
if __name__ == "__main__":
setup(
name="sc_kernel",
author="Dennis Scheiba",
version=version,
cmdclass={"install": install_with_kernel_spec},
url="https://github.com/capital-G/sc_kernel",
license="BSD",
long_description=open("README.md").read(),
long_description_content_type="text/markdown",
classifiers=[
"Programming Language :: Python :: 3",
"Operating System :: OS Independent",
"Framework :: IPython",
"License :: OSI Approved :: BSD License",
"Topic :: System :: Shells",
"Topic :: Multimedia :: Sound/Audio :: Sound Synthesis",
],
packages=find_packages(include=["sc_kernel", "sc_kernel.*"]),
include_package_data=True,
data_files=DATA_FILES,
install_requires=[
"metakernel>=0.23.0, <0.30",
"ipython>=4.0, <9.0",
"pygments<=2.14.0, >2.1",
"jupyterlab>=2.0, <4.0",
"jupyter_server<3.0, >2.0",
],
extras_require={
"dev": [
"coverage==5.2.1",
"flake8<=6.0.0",
"unittest-xml-reporting==3.0.4",
"mypy<=1.0.0",
"pre-commit==2.17.0",
"black<=23.1.0",
]
},
python_requires=">=3.8",
)