Skip to content

Commit

Permalink
Update using script
Browse files Browse the repository at this point in the history
  • Loading branch information
fcollonval committed Feb 14, 2021
1 parent ca71190 commit dc7e7c1
Show file tree
Hide file tree
Showing 73 changed files with 962 additions and 805 deletions.
4 changes: 3 additions & 1 deletion .prettierrc
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
{
"singleQuote": true
"singleQuote": true,
"trailingComma": "none",
"arrowParens": "avoid"
}
12 changes: 9 additions & 3 deletions advanced/kernel-messaging/.eslintrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,13 +14,19 @@ module.exports = {
},
plugins: ['@typescript-eslint', 'jsdoc'],
rules: {
'@typescript-eslint/interface-name-prefix': [
'@typescript-eslint/naming-convention': [
'error',
{ prefixWithI: 'always' }
{
selector: 'interface',
format: ['PascalCase'],
custom: {
regex: '^I[A-Z]',
match: true
}
}
],
'@typescript-eslint/no-unused-vars': ['warn', { args: 'none' }],
'@typescript-eslint/no-explicit-any': 'off',
'@typescript-eslint/camelcase': 'warn',
'@typescript-eslint/no-namespace': 'off',
'@typescript-eslint/no-use-before-define': 'off',
'@typescript-eslint/quotes': [
Expand Down
33 changes: 18 additions & 15 deletions advanced/kernel-messaging/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,8 @@
"author": "Project Jupyter Contributors",
"files": [
"lib/**/*.{d.ts,eot,gif,html,jpg,js,js.map,json,png,svg,woff2,ttf}",
"style/**/*.{css,eot,gif,html,jpg,json,png,svg,woff2,ttf}"
"style/**/*.{css,eot,gif,html,jpg,json,png,svg,woff2,ttf}",
"style/index.js"
],
"main": "lib/index.js",
"types": "lib/index.d.ts",
Expand Down Expand Up @@ -44,36 +45,38 @@
"watch:src": "tsc -w"
},
"dependencies": {
"@jupyterlab/application": "^3.0.0-rc.15",
"@jupyterlab/launcher": "^3.0.0-rc.15",
"@jupyterlab/mainmenu": "^3.0.0-rc.15",
"@jupyterlab/nbformat": "^3.0.0-rc.15",
"@jupyterlab/translation": "^3.0.0-rc.15",
"@jupyterlab/application": "^3.0.2",
"@jupyterlab/launcher": "^3.0.2",
"@jupyterlab/mainmenu": "^3.0.2",
"@jupyterlab/nbformat": "^3.0.1",
"@jupyterlab/translation": "^3.0.2",
"@lumino/algorithm": "^1.3.3",
"@lumino/coreutils": "^1.5.3",
"@lumino/datagrid": "^0.5.2",
"@lumino/disposable": "^1.4.3",
"@lumino/widgets": "^1.16.1"
},
"devDependencies": {
"@jupyterlab/builder": "^3.0.0-rc.15",
"@typescript-eslint/eslint-plugin": "^2.27.0",
"@typescript-eslint/parser": "^2.27.0",
"eslint": "^7.5.0",
"eslint-config-prettier": "^6.10.1",
"@jupyterlab/builder": "^3.0.0",
"@typescript-eslint/eslint-plugin": "^4.8.1",
"@typescript-eslint/parser": "^4.8.1",
"eslint": "^7.14.0",
"eslint-config-prettier": "^6.15.0",
"eslint-plugin-jsdoc": "^22.0.0",
"eslint-plugin-prettier": "^3.1.2",
"eslint-plugin-prettier": "^3.1.4",
"eslint-plugin-react": "^7.18.3",
"npm-run-all": "^4.1.5",
"prettier": "^1.19.0",
"prettier": "^2.1.1",
"rimraf": "^3.0.2",
"typescript": "~4.1.3"
},
"sideEffects": [
"style/*.css"
"style/*.css",
"style/index.js"
],
"jupyterlab": {
"extension": true,
"outputDir": "jupyterlab_examples_kernel_messaging/labextension"
}
},
"styleModule": "style/index.js"
}
2 changes: 1 addition & 1 deletion advanced/kernel-messaging/pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
[build-system]
requires = ["jupyter_packaging~=0.7.9", "jupyterlab>=3.0.0rc15,==3.*", "setuptools>=40.8.0", "wheel"]
requires = ["jupyter_packaging~=0.7.9", "jupyterlab~=3.0", "setuptools>=40.8.0", "wheel"]
build-backend = "setuptools.build_meta"
54 changes: 27 additions & 27 deletions advanced/kernel-messaging/setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,41 +2,38 @@
jupyterlab_examples_kernel_messaging setup
"""
import json
import os
from pathlib import Path

from jupyter_packaging import (
create_cmdclass, install_npm, ensure_targets,
combine_commands, skip_if_exists
create_cmdclass,
install_npm,
ensure_targets,
combine_commands,
skip_if_exists
)
import setuptools

HERE = os.path.abspath(os.path.dirname(__file__))
HERE = Path(__file__).parent.resolve()

# The name of the project
name="jupyterlab_examples_kernel_messaging"
name = "jupyterlab_examples_kernel_messaging"

# Get our version
with open(os.path.join(HERE, 'package.json')) as f:
version = json.load(f)['version']

lab_path = os.path.join(HERE, name, "labextension")
lab_path = (HERE / name / "labextension")

# Representative files that should exist after a successful build
jstargets = [
os.path.join(lab_path, "package.json"),
str(lab_path / "package.json"),
]

package_data_spec = {
name: [
"*"
]
name: ["*"],
}

labext_name = "@jupyterlab-examples/kernel-messaging"

data_files_spec = [
("share/jupyter/labextensions/%s" % labext_name, lab_path, "**"),
("share/jupyter/labextensions/%s" % labext_name, HERE, "install.json"),
("share/jupyter/labextensions/%s" % labext_name, str(lab_path), "**"),
("share/jupyter/labextensions/%s" % labext_name, str(HERE), "install.json"),
]

cmdclass = create_cmdclass("jsdeps",
Expand All @@ -49,32 +46,34 @@
ensure_targets(jstargets),
)

is_repo = os.path.exists(os.path.join(HERE, ".git"))
is_repo = (HERE / ".git").exists()
if is_repo:
cmdclass["jsdeps"] = js_command
else:
cmdclass["jsdeps"] = skip_if_exists(jstargets, js_command)

with open("README.md", "r") as fh:
long_description = fh.read()
long_description = (HERE / "README.md").read_text()

# Get the package info from package.json
pkg_json = json.loads((HERE / "package.json").read_bytes())

setup_args = dict(
name=name,
version=version,
url="https://github.com/jupyterlab/extension-examples.git",
author="Project Jupyter Contributors",
description="minimal lab example",
long_description= long_description,
version=pkg_json["version"],
url=pkg_json["homepage"],
author=pkg_json["author"],
description=pkg_json["description"],
license=pkg_json["license"],
long_description=long_description,
long_description_content_type="text/markdown",
cmdclass= cmdclass,
cmdclass=cmdclass,
packages=setuptools.find_packages(),
install_requires=[
"jupyterlab>=3.0.0rc15,==3.*",
"jupyterlab~=3.0",
],
zip_safe=False,
include_package_data=True,
python_requires=">=3.6",
license="BSD-3-Clause",
platforms="Linux, Mac OS X, Windows",
keywords=["Jupyter", "JupyterLab", "JupyterLab3"],
classifiers=[
Expand All @@ -84,6 +83,7 @@
"Programming Language :: Python :: 3.6",
"Programming Language :: Python :: 3.7",
"Programming Language :: Python :: 3.8",
"Programming Language :: Python :: 3.9",
"Framework :: Jupyter",
],
)
Expand Down
12 changes: 9 additions & 3 deletions advanced/kernel-output/.eslintrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,13 +14,19 @@ module.exports = {
},
plugins: ['@typescript-eslint', 'jsdoc'],
rules: {
'@typescript-eslint/interface-name-prefix': [
'@typescript-eslint/naming-convention': [
'error',
{ prefixWithI: 'always' }
{
selector: 'interface',
format: ['PascalCase'],
custom: {
regex: '^I[A-Z]',
match: true
}
}
],
'@typescript-eslint/no-unused-vars': ['warn', { args: 'none' }],
'@typescript-eslint/no-explicit-any': 'off',
'@typescript-eslint/camelcase': 'warn',
'@typescript-eslint/no-namespace': 'off',
'@typescript-eslint/no-use-before-define': 'off',
'@typescript-eslint/quotes': [
Expand Down
33 changes: 18 additions & 15 deletions advanced/kernel-output/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,8 @@
"author": "Project Jupyter Contributors",
"files": [
"lib/**/*.{d.ts,eot,gif,html,jpg,js,js.map,json,png,svg,woff2,ttf}",
"style/**/*.{css,eot,gif,html,jpg,json,png,svg,woff2,ttf}"
"style/**/*.{css,eot,gif,html,jpg,json,png,svg,woff2,ttf}",
"style/index.js"
],
"main": "lib/index.js",
"types": "lib/index.d.ts",
Expand Down Expand Up @@ -44,35 +45,37 @@
"watch:src": "tsc -w"
},
"dependencies": {
"@jupyterlab/application": "^3.0.0-rc.15",
"@jupyterlab/launcher": "^3.0.0-rc.15",
"@jupyterlab/mainmenu": "^3.0.0-rc.15",
"@jupyterlab/outputarea": "^3.0.0-rc.15",
"@jupyterlab/translation": "^3.0.0-rc.15",
"@jupyterlab/application": "^3.0.2",
"@jupyterlab/launcher": "^3.0.2",
"@jupyterlab/mainmenu": "^3.0.2",
"@jupyterlab/outputarea": "^3.0.2",
"@jupyterlab/translation": "^3.0.2",
"@lumino/algorithm": "^1.3.3",
"@lumino/coreutils": "^1.5.3",
"@lumino/datagrid": "^0.3.1",
"@lumino/disposable": "^1.4.3"
},
"devDependencies": {
"@jupyterlab/builder": "^3.0.0-rc.15",
"@typescript-eslint/eslint-plugin": "^2.27.0",
"@typescript-eslint/parser": "^2.27.0",
"eslint": "^7.5.0",
"eslint-config-prettier": "^6.10.1",
"@jupyterlab/builder": "^3.0.0",
"@typescript-eslint/eslint-plugin": "^4.8.1",
"@typescript-eslint/parser": "^4.8.1",
"eslint": "^7.14.0",
"eslint-config-prettier": "^6.15.0",
"eslint-plugin-jsdoc": "^22.0.0",
"eslint-plugin-prettier": "^3.1.2",
"eslint-plugin-prettier": "^3.1.4",
"eslint-plugin-react": "^7.18.3",
"npm-run-all": "^4.1.5",
"prettier": "^1.19.0",
"prettier": "^2.1.1",
"rimraf": "^3.0.2",
"typescript": "~4.1.3"
},
"sideEffects": [
"style/*.css"
"style/*.css",
"style/index.js"
],
"jupyterlab": {
"extension": true,
"outputDir": "jupyterlab_examples_kernel_output/labextension"
}
},
"styleModule": "style/index.js"
}
2 changes: 1 addition & 1 deletion advanced/kernel-output/pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
[build-system]
requires = ["jupyter_packaging~=0.7.9", "jupyterlab>=3.0.0rc15,==3.*", "setuptools>=40.8.0", "wheel"]
requires = ["jupyter_packaging~=0.7.9", "jupyterlab~=3.0", "setuptools>=40.8.0", "wheel"]
build-backend = "setuptools.build_meta"
Loading

0 comments on commit dc7e7c1

Please sign in to comment.