diff --git a/MANIFEST.in b/MANIFEST.in index 5004858d5..28823f024 100644 --- a/MANIFEST.in +++ b/MANIFEST.in @@ -1,7 +1,50 @@ include LICENSE - -# added by check-manifest +include CONTRIBUTING.rst +include README.md +include CHANGELOG.md +include package.json +include bower.json +include .bowerrc +include pyproject.toml +include setup.py +include setupbase.py +include Dockerfile +include *.js +include *.in include *.md -recursive-include docs *.md -recursive-include nbclassic *.py +include *.svg +include *.yml +recursive-include nbclassic *.cfg +recursive-include nbclassic *.json +recursive-include nbclassic *.less +recursive-include nbclassic *.md +recursive-include nbclassic *.png recursive-include tests *.py +recursive-include jupyter_server_config.d nbclassic.json +graft tools +graft notebook/tests + +# Translations +graft notebook/i18n + +# Documentation +graft docs +exclude docs/\#* + +# Examples +graft examples + +# docs subdirs we want to skip +prune docs/build +prune docs/gh-pages +prune docs/dist + +prune git-hooks +prune docs-translations + +# Patterns to exclude from any directory +global-exclude *~ +global-exclude *.pyc +global-exclude *.pyo +global-exclude .git +global-exclude .ipynb_checkpoints diff --git a/nbclassic/_version.py b/nbclassic/_version.py index 443c323e7..15aa38e86 100644 --- a/nbclassic/_version.py +++ b/nbclassic/_version.py @@ -5,7 +5,7 @@ import re # Version string must appear intact for tbump versioning -__version__ = '0.0.4' +__version__ = '0.3.7' # Build up version_info tuple for backwards compatibility pattern = r'(?P\d+).(?P\d+).(?P\d+)(?P.*)' diff --git a/nbclassic/i18n/README.md b/nbclassic/i18n/README.md index 1f0ea34a4..a81cf148f 100644 --- a/nbclassic/i18n/README.md +++ b/nbclassic/i18n/README.md @@ -67,7 +67,7 @@ code for your desired language ( i.e. German = "de", Japanese = "ja", etc. ). use at runtime. ```shell -pybabel compile -D notebook -f -l ${LANG} -i ${LANG}/LC_MESSAGES/notebook.po -o ${LANG}/LC_MESSAGES/notebook.mo +pybabel compile -D notebook -f -l ${LANG} -i ${LANG}/LC_MESSAGES/nbclassic.po -o ${LANG}/LC_MESSAGES/nbclassic.mo pybabel compile -D nbui -f -l ${LANG} -i ${LANG}/LC_MESSAGES/nbui.po -o ${LANG}/LC_MESSAGES/nbui.mo ``` diff --git a/nbclassic/i18n/fr_FR/LC_MESSAGES/notebook.po b/nbclassic/i18n/fr_FR/LC_MESSAGES/nbclassic.po similarity index 100% rename from nbclassic/i18n/fr_FR/LC_MESSAGES/notebook.po rename to nbclassic/i18n/fr_FR/LC_MESSAGES/nbclassic.po diff --git a/nbclassic/i18n/ja_JP/LC_MESSAGES/notebook.po b/nbclassic/i18n/ja_JP/LC_MESSAGES/nbclassic.po similarity index 100% rename from nbclassic/i18n/ja_JP/LC_MESSAGES/notebook.po rename to nbclassic/i18n/ja_JP/LC_MESSAGES/nbclassic.po diff --git a/nbclassic/i18n/nl/LC_MESSAGES/notebook.po b/nbclassic/i18n/nl/LC_MESSAGES/nbclassic.po similarity index 100% rename from nbclassic/i18n/nl/LC_MESSAGES/notebook.po rename to nbclassic/i18n/nl/LC_MESSAGES/nbclassic.po diff --git a/nbclassic/i18n/ru_RU/LC_MESSAGES/notebook.po b/nbclassic/i18n/ru_RU/LC_MESSAGES/nbclassic.po similarity index 100% rename from nbclassic/i18n/ru_RU/LC_MESSAGES/notebook.po rename to nbclassic/i18n/ru_RU/LC_MESSAGES/nbclassic.po diff --git a/nbclassic/i18n/zh_CN/LC_MESSAGES/notebook.po b/nbclassic/i18n/zh_CN/LC_MESSAGES/nbclassic.po similarity index 100% rename from nbclassic/i18n/zh_CN/LC_MESSAGES/notebook.po rename to nbclassic/i18n/zh_CN/LC_MESSAGES/nbclassic.po diff --git a/nbclassic/static/base/js/namespace.js b/nbclassic/static/base/js/namespace.js index 3af4a76b4..2914f7794 100644 --- a/nbclassic/static/base/js/namespace.js +++ b/nbclassic/static/base/js/namespace.js @@ -73,7 +73,7 @@ define(function(){ // tree jglobal('SessionList','tree/js/sessionlist'); - Jupyter.version = "0.0.4"; + Jupyter.version = "0.3.7"; Jupyter._target = '_blank'; return Jupyter; diff --git a/pyproject.toml b/pyproject.toml index 897e213dd..b48321f36 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -13,7 +13,14 @@ testpaths = [ ] [tool.jupyter-releaser] -skip = ["check-links"] +skip = ["check-links", "check-manifest"] + +[tool.jupyter-releaser.hooks] +after-bump-version = "python setup.py jsversion" +before-build-python = ["pip install babel", "npm install -g po2json"] + +[tool.jupyter-releaser.options] +ignore-glob = ["docs/source/examples/Notebook/Working With Markdown Cells.ipynb", "docs-translations/**/README.md", "docs/source/contributing.rst", "docs/source/examples/Notebook/JavaScript Notebook Extensions.ipynb", "CHANGELOG.md", "notebook/static/components/**/*.*"] [tool.tbump.version] current = "0.3.7" @@ -27,4 +34,4 @@ message_template = "Bump to {new_version}" tag_template = "v{new_version}" [[tool.tbump.file]] -src = "nbclassic/__version__.py" +src = "nbclassic/_version.py"