|
1 | | -#!/usr/bin/env python |
2 | | -# coding: utf-8 |
3 | | - |
4 | | -# Copyright (c) Jupyter Development Team. |
5 | | -# Distributed under the terms of the Modified BSD License. |
6 | | - |
7 | 1 | from __future__ import print_function |
8 | 2 | from glob import glob |
9 | 3 | from os.path import join as pjoin |
10 | 4 |
|
11 | | - |
12 | 5 | from setupbase import ( |
13 | 6 | create_cmdclass, install_npm, ensure_targets, |
14 | 7 | find_packages, combine_commands, ensure_python, |
|
17 | 10 |
|
18 | 11 | from setuptools import setup |
19 | 12 |
|
20 | | - |
21 | | -# The name of the project |
| 13 | +# the name of the project |
22 | 14 | name = 'algorithmx' |
23 | 15 |
|
24 | | -# Load description |
| 16 | +# load description |
25 | 17 | with open('README.md', 'r') as fh: |
26 | | - long_description = fh.read() |
| 18 | + long_description = fh.read() |
27 | 19 |
|
28 | | -# Ensure a valid python version |
| 20 | +# ensure a valid python version |
29 | 21 | ensure_python('>=3.6') |
30 | 22 |
|
31 | | -# Get our version |
| 23 | +# get our version |
32 | 24 | version = get_version(pjoin(name, '_version.py')) |
33 | 25 |
|
34 | 26 | nb_path = pjoin(HERE, name, 'nbextension', 'static') |
35 | 27 | lab_path = pjoin(HERE, name, 'labextension') |
36 | 28 |
|
37 | | -# Representative files that should exist after a successful build |
| 29 | +# representative files that should exist after a successful build |
38 | 30 | jstargets = [ |
39 | 31 | pjoin(nb_path, 'index.js'), |
40 | 32 | pjoin(HERE, 'lib', 'plugin.js'), |
|
43 | 35 | package_data_spec = { |
44 | 36 | name: [ |
45 | 37 | 'nbextension/static/*.*js*', |
46 | | - 'labextension/*.tgz' |
| 38 | + 'labextension/*.tgz', |
| 39 | + 'server/*.html' |
47 | 40 | ] |
48 | 41 | } |
49 | 42 |
|
50 | 43 | data_files_spec = [ |
51 | | - ('share/jupyter/nbextensions/algorithmx-jupyter', |
52 | | - nb_path, '*.js*'), |
| 44 | + ('share/jupyter/nbextensions/algorithmx-jupyter', nb_path, '*.js*'), |
53 | 45 | ('share/jupyter/lab/extensions', lab_path, '*.tgz'), |
54 | | - ('etc/jupyter/nbconfig/notebook.d' , HERE, 'algorithmx-jupyter.json') |
| 46 | + ('etc/jupyter/nbconfig/notebook.d', HERE, 'algorithmx-jupyter.json') |
55 | 47 | ] |
56 | 48 |
|
57 | | - |
58 | 49 | cmdclass = create_cmdclass('jsdeps', package_data_spec=package_data_spec, data_files_spec=data_files_spec) |
59 | 50 |
|
60 | 51 | cmdclass['jsdeps'] = combine_commands( |
|
80 | 71 | classifiers = [ |
81 | 72 | 'Intended Audience :: Developers', |
82 | 73 | 'Intended Audience :: Science/Research', |
83 | | - 'License :: OSI Approved :: BSD License', |
| 74 | + 'License :: OSI Approved :: MIT License', |
84 | 75 | 'Programming Language :: Python', |
85 | 76 | 'Programming Language :: Python :: 3', |
86 | 77 | 'Programming Language :: Python :: 3.6', |
|
0 commit comments