forked from bollwyvl/hy_kernel
-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.py
56 lines (47 loc) · 1.36 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
from setuptools import setup, find_packages
from setuptools.command.install import install as _install
from setuptools.command.develop import develop as _develop
# should be loaded below
__version__ = None
with open('hy_kernel/version.py') as version:
exec(version.read())
with open('README.md') as f:
readme = f.read()
def proxy_cmd(_cmd):
class Proxied(_cmd):
def run(self):
_cmd.run(self)
from hy_kernel import setup_assets
setup_assets(True)
return Proxied
setup(
name='hy_kernel',
version=__version__,
description='A hy kernel for IPython',
long_description=readme,
author='Nicholas Bollweg',
author_email='[email protected]',
url='https://github.com/bollwyvl/hy_kernel',
packages=find_packages(exclude=('tests', 'notebooks')),
include_package_data=True,
install_requires=[
'IPython>=3.0.0',
'hy>=0.10.1',
],
tests_require=[
'coverage',
'nose',
],
cmdclass={
'install': proxy_cmd(_install),
'develop': proxy_cmd(_develop)
},
classifiers=[
'Framework :: IPython',
'License :: OSI Approved :: BSD License',
'Programming Language :: Python :: 3',
'Programming Language :: Python :: 2',
'Programming Language :: Lisp',
],
test_suite='nose.collector',
)