|
1 | 1 | import sys |
2 | | -from distutils.core import setup |
| 2 | +import os |
| 3 | +import IPython |
| 4 | +from setuptools import setup |
3 | 5 | from setuptools.command.test import test as TestCommand |
4 | 6 |
|
5 | 7 | install_requires = [ |
@@ -31,15 +33,23 @@ def run_tests(self): |
31 | 33 | sys.exit(errno) |
32 | 34 |
|
33 | 35 |
|
| 36 | +# Installs GMaps Javascript in the nbextensions folder for loading. |
| 37 | +# We load this file using IPython.load_extensions('datascience_js/maps') in |
| 38 | +# Javascript. Keep in sync with the path in maps/leader.py |
| 39 | +ipython_dir = IPython.utils.path.get_ipython_dir() |
| 40 | +data_files = [(os.path.join(ipython_dir, "nbextensions/datascience_js"), |
| 41 | + ["datascience/maps/js/maps.js"] )] |
| 42 | + |
34 | 43 | setup( |
35 | 44 | name = 'datascience', |
36 | | - py_modules = ['datascience'], |
37 | | - version = '0.2.1', |
| 45 | + packages = ['datascience'], |
| 46 | + version = '0.2.2', |
38 | 47 | install_requires = install_requires, |
39 | 48 | tests_require = test_requires, |
| 49 | + data_files = data_files, |
40 | 50 | cmdclass = {'test': PyTest}, |
41 | | - description = 'A Python library for introductory data science', |
42 | | - author = 'John DeNero, David Culler, Alvin Wan', |
| 51 | + description = 'A Jupyter notebook Python library for introductory data science', |
| 52 | + author = 'John DeNero, David Culler, Alvin Wan, Sam Lau', |
43 | 53 | author_email = 'ds-instr@berkeley.edu', |
44 | 54 | url = 'https://github.com/dsten/datascience', |
45 | 55 | download_url = 'https://github.com/dsten/datascience/archive/0.2.0.zip', |
|
0 commit comments