-
Notifications
You must be signed in to change notification settings - Fork 26
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #73 from cds-astro/version-0.2.6
Version 0.2.6
- Loading branch information
Showing
8 changed files
with
64 additions
and
40 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
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,4 +1,4 @@ | ||
# Module version | ||
__version__ = '0.2.5' | ||
__version__ = '0.2.6' | ||
|
||
NPM_PACKAGE_RANGE='^0.2.5' | ||
NPM_PACKAGE_RANGE='^0.2.6' |
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,3 +1,45 @@ | ||
[build-system] | ||
requires = ["jupyter_packaging>=0.7.9", "jupyterlab>=3.0", "setuptools>=40.8.0", "wheel", "traitlets>=5.9.0", "traitlets>=5.9.0"] | ||
build-backend = "setuptools.build_meta" | ||
build-backend = "setuptools.build_meta" | ||
|
||
|
||
|
||
[tool.hatch.metadata] | ||
allow-direct-references = true | ||
|
||
[tool.hatch.build] | ||
artifacts = [ | ||
"ipyaladin/nbextension/index.*", | ||
"ipyaladin/labextension/*.tgz", | ||
"ipyaladin/labextension", | ||
] | ||
|
||
[tool.hatch.build.targets.wheel.shared-data] | ||
"ipyaladin/nbextension" = "share/jupyter/nbextensions/ipyaladin" | ||
"ipyaladin/labextension" = "share/jupyter/labextensions/ipyaladin" | ||
"./install.json" = "share/jupyter/labextensions/ipyaladin/install.json" | ||
"./ipyaladin.json" = "etc/jupyter/nbconfig/notebook.d/ipyaladin.json" | ||
|
||
[tool.hatch.build.targets.sdist] | ||
exclude = [ | ||
".github", | ||
] | ||
|
||
[tool.hatch.build.hooks.jupyter-builder] | ||
build-function = "hatch_jupyter_builder.npm_builder" | ||
ensured-targets = [ | ||
"ipyaladin/nbextension/index.js", | ||
"ipyaladin/labextension/package.json", | ||
] | ||
skip-if-exists = [ | ||
"ipyaladin/nbextension/index.js", | ||
"ipyaladin/labextension/package.json", | ||
] | ||
dependencies = [ | ||
"hatch-jupyter-builder>=0.8.3", | ||
] | ||
|
||
[tool.hatch.build.hooks.jupyter-builder.build-kwargs] | ||
path = "." | ||
build_cmd = "build:prod" | ||
npm = ["jlpm"] |
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,30 +1,2 @@ | ||
from setuptools import setup | ||
from pathlib import Path | ||
|
||
from jupyter_packaging import ( | ||
create_cmdclass, | ||
install_npm, | ||
ensure_targets, | ||
combine_commands, | ||
) | ||
|
||
JS_DIR = Path(__file__).resolve().parent / 'js' | ||
|
||
# Representative files that should exist after a successful build | ||
jstargets = [JS_DIR / 'dist' / 'index.js'] | ||
|
||
data_files_spec = [ | ||
('share/jupyter/nbextensions/ipyaladin', 'ipyaladin/nbextension', '*.*'), | ||
('share/jupyter/labextensions/ipyaladin', 'ipyaladin/labextension', '**'), | ||
('share/jupyter/labextensions/ipyaladin', '.', 'install.json'), | ||
('etc/jupyter/nbconfig/notebook.d', '.', 'ipyaladin.json'), | ||
] | ||
|
||
cmdclass = create_cmdclass('jsdeps', data_files_spec=data_files_spec) | ||
cmdclass['jsdeps'] = combine_commands( | ||
install_npm(JS_DIR, npm=['yarn'], build_cmd='build:prod'), | ||
ensure_targets(jstargets), | ||
) | ||
|
||
# See setup.cfg for other parameters | ||
setup(cmdclass=cmdclass) | ||
# setup.py shim for use with applications that require it. | ||
__import__("setuptools").setup() |