-
Notifications
You must be signed in to change notification settings - Fork 17
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
changes to installation & release cleanup
* conform to PEP8 naming convention luxWidget --> luxwidget * bump version to 0.1.0 * switching from NPM to PyPI package (improved setup.py) * added license header
- Loading branch information
Showing
23 changed files
with
207 additions
and
85 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
include luxWidget/nbextension/static/*.* | ||
include luxwidget/nbextension/static/*.* |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
#npm install # run only for the first time | ||
npx webpack # builds tsx --> ts --> js | ||
pip install . # builds python wheel and copies relevant js files to luxWidget/ | ||
pip install . # builds python wheel and copies relevant js files to luxwidget/ | ||
# When rebuild, these two lines don't need to be rerun since the code is symlinked | ||
jupyter nbextension install --sys-prefix --symlink --overwrite --py luxWidget | ||
jupyter nbextension enable --sys-prefix --py luxWidget | ||
jupyter nbextension install --sys-prefix --symlink --overwrite --py luxwidget | ||
jupyter nbextension enable --sys-prefix --py luxwidget |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Large diffs are not rendered by default.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -7,6 +7,7 @@ | |
from __future__ import print_function | ||
from glob import glob | ||
from os.path import join as pjoin | ||
from os import path | ||
|
||
|
||
from setupbase import ( | ||
|
@@ -17,9 +18,14 @@ | |
|
||
from setuptools import setup | ||
|
||
HERE = path.abspath(path.dirname(__file__)) | ||
|
||
# Get the long description from the README file | ||
with open(path.join(HERE, 'README.md'), encoding='utf-8') as f: | ||
long_description = f.read() | ||
|
||
# The name of the project | ||
name = 'luxWidget' | ||
name = 'luxwidget' | ||
|
||
# Ensure a valid python version | ||
ensure_python('>=3.4') | ||
|
@@ -44,10 +50,10 @@ | |
} | ||
|
||
data_files_spec = [ | ||
('share/jupyter/nbextensions/luxWidget', | ||
('share/jupyter/nbextensions/luxwidget', | ||
nb_path, '*.js*'), | ||
('share/jupyter/lab/extensions', lab_path, '*.tgz'), | ||
('etc/jupyter/nbconfig/notebook.d' , HERE, 'luxWidget.json') | ||
('etc/jupyter/nbconfig/notebook.d' , HERE, 'luxwidget.json') | ||
] | ||
|
||
|
||
|
@@ -61,53 +67,34 @@ | |
|
||
setup_args = dict( | ||
name = name, | ||
description = 'A Custom Jupyter Widget Library', | ||
description = 'Jupyter Widget for Intelligent Data Discovery', | ||
long_description= long_description, | ||
long_description_content_type='text/markdown', | ||
version = version, | ||
scripts = glob(pjoin('scripts', '*')), | ||
# cmdclass = cmdclass, | ||
packages = find_packages(), | ||
author = 'Doris Lee', | ||
author = 'Doris Jung-Lin Lee', | ||
author_email = '[email protected]', | ||
url = 'https://github.com/lux-org/lux-widget', | ||
license = 'BSD', | ||
url = 'https://github.com/lux-org/luxwidget', | ||
license = 'Apache-2.0 License', | ||
platforms = "Linux, Mac OS X, Windows", | ||
keywords = ['Jupyter', 'Widgets', 'IPython'], | ||
classifiers = [ | ||
'Development Status :: 1 - Planning', | ||
'Intended Audience :: Developers', | ||
'Intended Audience :: Science/Research', | ||
'License :: OSI Approved :: BSD License', | ||
'Programming Language :: Python', | ||
'Programming Language :: Python :: 3', | ||
'Programming Language :: Python :: 3.4', | ||
'Programming Language :: Python :: 3.5', | ||
'Programming Language :: Python :: 3.6', | ||
'Programming Language :: Python :: 3.7', | ||
'Intended Audience :: Other Audience', | ||
'Topic :: Scientific/Engineering :: Information Analysis', | ||
'Topic :: Scientific/Engineering :: Visualization', | ||
'License :: OSI Approved :: Apache Software License', | ||
'Programming Language :: Python :: 3' | ||
'Framework :: Jupyter', | ||
], | ||
include_package_data = True, | ||
install_requires = [ | ||
'ipywidgets>=7.0.0', | ||
], | ||
extras_require = { | ||
'test': [ | ||
'pytest>=3.6', | ||
'pytest-cov', | ||
'nbval', | ||
], | ||
'examples': [ | ||
# Any requirements for the examples to run | ||
], | ||
'docs': [ | ||
'sphinx>=1.5', | ||
'recommonmark', | ||
'sphinx_rtd_theme', | ||
'nbsphinx>=0.2.13,<0.4.0', | ||
'jupyter_sphinx', | ||
'nbsphinx-link', | ||
'pytest_check_links', | ||
'pypandoc', | ||
], | ||
}, | ||
entry_points = { | ||
}, | ||
) | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,16 @@ | ||
// Copyright 2019-2020 The Lux Authors. | ||
// | ||
// Licensed under the Apache License, Version 2.0 (the "License"); | ||
// you may not use this file except in compliance with the License. | ||
// You may obtain a copy of the License at | ||
// | ||
// http://www.apache.org/licenses/LICENSE-2.0 | ||
// | ||
// Unless required by applicable law or agreed to in writing, software | ||
// distributed under the License is distributed on an "AS IS" BASIS, | ||
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
// See the License for the specific language governing permissions and | ||
// limitations under the License. | ||
|
||
export * from './version'; | ||
export * from './widget'; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.