-
Notifications
You must be signed in to change notification settings - Fork 2
/
setup.py
45 lines (41 loc) · 1.47 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
from setuptools import setup
from setuptools.command.develop import develop as _develop
from setuptools.command.install import install as _install
from notebook.nbextensions import install_nbextension
from notebook.services.config import ConfigManager
import os
extension_dir = os.path.join(os.path.dirname(__file__), "idaho_map", "static")
class develop(_develop):
def run(self):
_develop.run(self)
install_nbextension(extension_dir, symlink=True,
overwrite=True, user=True, destination="idaho_map")
cm = ConfigManager()
cm.update('notebook', {"load_extensions": {"idaho_map/index": True } })
class install(_install):
def run(self):
_install.run(self)
cm = ConfigManager()
cm.update('notebook', {"load_extensions": {"idaho_map/index": True } })
setup(name='idaho-map',
cmdclass={'develop': develop, 'install': install},
version='0.2.2',
description='A wrapper around react-map-gl components for use in jupyter notebooks',
url='https://github.com/timbr-io/idaho-map',
author='Chris Helm',
author_email='chelm@timbr.io',
license='MIT',
packages=['idaho_map'],
zip_safe=False,
data_files=[
('share/jupyter/nbextensions/idaho_map', [
'idaho_map/static/index.js'
])],
install_requires=[
"ipython",
"jupyter-react",
"rasterio",
"gdal",
"gbdxtools"
]
)