-
Notifications
You must be signed in to change notification settings - Fork 134
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
3 changed files
with
34 additions
and
33 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,9 +1,7 @@ | ||
include nglview/datafiles/* | ||
include nglview/js/* | ||
recursive-include nglview/static *.* | ||
recursive-include nglview/staticlab *.* | ||
include nglview/theme/* | ||
include LICENSE README.md DEVELOPMENT.md CHANGELOG.md | ||
include setup.py | ||
include nglview/_version.py versioneer.py | ||
global-exclude *.pycinclude *.ipynb *.gif *tests/notebooks/* |
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 |
---|---|---|
|
@@ -21,15 +21,13 @@ | |
def update_package_data(distribution): | ||
"""update package_data to catch changes during setup""" | ||
build_py = distribution.get_command_obj('build_py') | ||
# distribution.package_data = find_package_data() | ||
# re-init build_py options which load package_data | ||
build_py.finalize_options() | ||
|
||
|
||
HERE = Path(__file__).parent.resolve() | ||
# The name of the project | ||
name = "nglview-js-widgets" | ||
lab_path = (HERE / "nglview"/ "staticlab") | ||
lab_path = (HERE / "nglview" / "staticlab") | ||
package_data_spec = { | ||
name: ["*"], | ||
} | ||
|
@@ -38,6 +36,8 @@ def update_package_data(distribution): | |
data_files_spec = [ | ||
("share/jupyter/labextensions/%s" % labext_name, str(lab_path), "**"), | ||
("share/jupyter/labextensions/%s" % labext_name, str(HERE), "install.json"), | ||
("share/jupyter/nbextensions/%s" % labext_name, str(lab_path), "**"), | ||
("etc/jupyter/nbconfig/notebook.d", str(HERE), "nglview-js-widgets.json"), | ||
] | ||
|
||
def pre_develop(): | ||
|
@@ -54,29 +54,20 @@ def pre_dist(): | |
"use_scm_version": True, | ||
"setup_requires": ['setuptools_scm'], | ||
'description': 'IPython widget to interactively view molecular structures and trajectories.', | ||
'description_file': 'README.md', | ||
'description': 'IPython widget to interactively view molecular structures and trajectories.', | ||
'long_description': open('README.md').read(), | ||
'long_description_content_type': 'text/markdown', | ||
'license': "MIT", | ||
'package_data': { | ||
"nglview.datafiles": ["*"], | ||
"nglview.theme": ["*"], | ||
"nglview.static": ["*"], | ||
"nglview.staticlab": ["*"], | ||
}, | ||
'data_files': [ | ||
('share/jupyter/nbextensions/nglview-js-widgets', [ | ||
'nglview/static/extension.js', | ||
'nglview/static/index.js', | ||
'nglview/static/index.js.map', | ||
]), | ||
('etc/jupyter/nbconfig/notebook.d' , ['nglview-js-widgets.json']) | ||
], | ||
'tests_require': [ | ||
'pytest' | ||
], | ||
'data_files': data_files, | ||
'install_requires': [ | ||
'ipywidgets>=8', | ||
'notebook>=7', | ||
'jupyterlab>=3', | ||
'jupyterlab_widgets', | ||
'numpy', | ||
], | ||
|
@@ -91,21 +82,9 @@ def pre_dist(): | |
"htmd": ["htmd"], | ||
"qcelemental": ["qcelemental"], | ||
}, | ||
'packages': set(find_packages() + | ||
['nglview', | ||
'nglview.static', | ||
'nglview.staticlab', | ||
'nglview.theme', | ||
'nglview.datafiles', | ||
'nglview.utils', | ||
'nglview.tests', | ||
'nglview.sandbox', | ||
'nglview.contrib', | ||
]), | ||
'packages': find_packages(), | ||
'zip_safe': False, | ||
'cmdclass': cmdclass, | ||
'data_files': data_files, | ||
|
||
'author': 'Alexander S. Rose, Hai Nguyen', | ||
'author_email': '[email protected]', | ||
'url': 'https://github.com/arose/nglview', | ||
|