-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.py
61 lines (52 loc) · 1.9 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
from setuptools import find_packages, setup
from setuptools.command.install import install
import zdict_jupyter as kernel
def post_install(dir):
from subprocess import call
call(['jupyter', 'kernelspec', 'install', 'zdict', '--user'])
class InstallJupyterKernel(install):
def run(self):
install.run(self)
self.execute(post_install, (self.install_lib,),
msg='Installing Jupyter kernelspec')
VERSION = kernel.__version__
requires = [
'zdict',
'jupyter',
]
setup(
packages=find_packages(exclude=['scripts']),
install_requires=requires,
name='zdict_jupyter',
version=VERSION,
author='Chiu-Hsiang Hsu',
author_email='[email protected]',
maintainer='Shun-Yi Jheng, Iblis Lin, Chang-Yen Chih, Chiu-Hsiang Hsu',
maintainer_email=('[email protected],'
url='https://github.com/zdict/zdict_jupyter',
keywords="cli, dictionary, framework",
description="The last dictionary framework you need. (?)",
long_description=open("README.rst").read(),
download_url="https://github.com/zdict/zdict_jupyter/archive/v{}.zip".format(
VERSION
),
package_data={'zdict_jupyter': ['zdict/kernel.json']},
cmdclass={'install': InstallJupyterKernel},
platforms=['Linux', 'Mac'],
license="GPL3",
classifiers=[
"Development Status :: 3 - Alpha",
"Environment :: Console",
"Intended Audience :: End Users/Desktop",
"License :: OSI Approved :: GNU General Public License v3 (GPLv3)",
"Natural Language :: Chinese (Traditional)",
"Natural Language :: English",
"Operating System :: POSIX :: Linux",
"Operating System :: MacOS :: MacOS X",
"Programming Language :: Python :: 3 :: Only",
"Topic :: Utilities",
],
)