Skip to content

Commit

Permalink
release: 1.1.0
Browse files Browse the repository at this point in the history
  • Loading branch information
echarles committed Jul 26, 2024
1 parent 306d6f9 commit 2f3af18
Show file tree
Hide file tree
Showing 5 changed files with 42 additions and 8 deletions.
33 changes: 32 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,8 @@ CONDA_REMOVE=source $$(conda info --base)/etc/profile.d/conda.sh ; conda remove

ENV_NAME=datalayer

VERSION=1.0.9

.DEFAULT_GOAL := default

.SILENT: init
Expand Down Expand Up @@ -58,7 +60,36 @@ kill:
warning:
echo "\x1b[34m\x1b[43mEnsure you have run \x1b[1;37m\x1b[41m conda deactivate \x1b[22m\x1b[34m\x1b[43m before invoking this.\x1b[0m"

publish-npm: # publish the npm packages
typedoc: ## generate typedoc
rm -fr typedoc && \
yarn typedoc --tsconfig ./tsconfig.json && \
open typedoc/index.html

publish-typedoc: typedoc ## deploy typedoc
aws s3 rm \
s3://datalayer-typedoc/datalayer/core/${VERSION}/ \
--recursive \
--profile datalayer
aws s3 cp \
typedoc \
s3://datalayer-typedoc/datalayer/core/${VERSION}/ \
--recursive \
--profile datalayer
aws cloudfront create-invalidation \
--distribution-id XXX \
--paths /datalayer/jupyter-kernels/${VERSION}/ \
--profile datalayer
echo open ✨ https://typedoc.datalayer.tech/datalayer/core/${VERSION}

publish-npm: # publish the npm package
yarn build && \
npm publish --access public
echo https://www.npmjs.com/package/@datalayer/core?activeTab=versions

publish-pypi: # publish the pypi package
git clean -fdx && \
python -m build
@exec echo
@exec echo twine upload ./dist/*-py3-none-any.whl
@exec echo
@exec echo https://pypi.org/project/datalayer/#history
6 changes: 5 additions & 1 deletion datalayer/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,11 @@

from ._version import __version__
from .serverapplication import DatalayerExtensionApp
from .lab import DatalayerLabApp

try:
from .lab import DatalayerLabApp
except ModuleNotFoundError as e:
print("No jupyterlab available here...")


def _jupyter_server_extension_points() -> List[Dict[str, Any]]:
Expand Down
6 changes: 3 additions & 3 deletions datalayer/application.py
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
# Copyright (c) Datalayer Development Team.
# Distributed under the terms of the Modified BSD License.

"""
A base Application class for Datalayer applications.
All Datalayer applications should inherit from this.
"""

# Copyright (c) Datalayer Development Team.
# Distributed under the terms of the Modified BSD License.

import logging
import os
import sys
Expand Down
1 change: 0 additions & 1 deletion datalayer/serverapplication.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
"""The Datalayer Server application."""

import json
import os
import typing as t

Expand Down
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@datalayer/core",
"version": "1.0.7",
"version": "1.1.0",
"description": "Ξ Datalayer Core.",
"keywords": [
"datalayer",
Expand Down Expand Up @@ -65,7 +65,7 @@
"watch:src": "tsc -w"
},
"dependencies": {
"@datalayer/run": "^0.1.4"
"@datalayer/run": "^0.1.11"
},
"devDependencies": {
"@babel/core": "^7.21.0",
Expand Down

0 comments on commit 2f3af18

Please sign in to comment.