Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix Check Release / check_release CI job #102

Merged
merged 14 commits into from
May 25, 2022
Merged
51 changes: 47 additions & 4 deletions MANIFEST.in
Original file line number Diff line number Diff line change
@@ -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
2 changes: 1 addition & 1 deletion nbclassic/_version.py
Original file line number Diff line number Diff line change
Expand Up @@ -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<major>\d+).(?P<minor>\d+).(?P<patch>\d+)(?P<rest>.*)'
Expand Down
2 changes: 1 addition & 1 deletion nbclassic/i18n/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
```

Expand Down
2 changes: 1 addition & 1 deletion nbclassic/static/base/js/namespace.js
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
11 changes: 9 additions & 2 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand All @@ -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"