Script 'mail_helper' called by obssrc
Hello community,
here is the log from the commit of package python-notebook-shim for
openSUSE:Factory checked in at 2022-10-26 14:25:54
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/python-notebook-shim (Old)
and /work/SRC/openSUSE:Factory/.python-notebook-shim.new.2275 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "python-notebook-shim"
Wed Oct 26 14:25:54 2022 rev:2 rq:1031321 version:0.2.0
Changes:
--------
---
/work/SRC/openSUSE:Factory/python-notebook-shim/python-notebook-shim.changes
2022-06-06 11:10:57.095344884 +0200
+++
/work/SRC/openSUSE:Factory/.python-notebook-shim.new.2275/python-notebook-shim.changes
2022-10-26 14:25:55.536287413 +0200
@@ -1,0 +2,9 @@
+Wed Oct 26 11:19:48 UTC 2022 - Ben Greiner <[email protected]>
+
+- Update to v0.2
+ * raise ceiling on jupyter_server dependency to < 3 #12
+ * remove dev version #15
+ * switch to hatch build backend #14
+- Remove jupyter subpackage: no config installed anymore
+
+-------------------------------------------------------------------
Old:
----
notebook_shim-0.1.0.tar.gz
New:
----
notebook_shim-0.2.0.tar.gz
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Other differences:
------------------
++++++ python-notebook-shim.spec ++++++
--- /var/tmp/diff_new_pack.nf1ulp/_old 2022-10-26 14:25:56.028288220 +0200
+++ /var/tmp/diff_new_pack.nf1ulp/_new 2022-10-26 14:25:56.036288234 +0200
@@ -17,22 +17,21 @@
Name: python-notebook-shim
-Version: 0.1.0
+Version: 0.2.0
Release: 0
Summary: A shim layer for notebook traits and config
License: BSD-3-Clause
URL: https://github.com/jupyterlab/notebook_shim
Source:
https://files.pythonhosted.org/packages/source/n/notebook_shim/notebook_shim-%{version}.tar.gz
BuildRequires: %{python_module base >= 3.7}
-BuildRequires: %{python_module setuptools}
+BuildRequires: %{python_module hatchling >= 1.0}
+BuildRequires: %{python_module pip}
BuildRequires: fdupes
-BuildRequires: jupyter-rpm-macros
BuildRequires: python-rpm-macros
-Requires: (python-jupyter_server >= 1.8 with python-jupyter_server < 2)
-Requires: jupyter-notebook-shim = %{version}
+Requires: (python-jupyter_server >= 1.8 with python-jupyter_server < 3)
Provides: python-notebook_shim = %{version}-%{release}
BuildArch: noarch
-BuildRequires: %{python_module jupyter_server >= 1.8 with
%python-jupyter_server < 2}
+BuildRequires: %{python_module jupyter_server >= 1.8 with
%python-jupyter_server < 3}
BuildRequires: %{python_module pytest-console-scripts}
BuildRequires: %{python_module pytest-tornasync}
BuildRequires: %{python_module pytest}
@@ -42,28 +41,18 @@
This project provides a way for JupyterLab and other frontends to switch to
Jupyter Server for their Python Web application backend.
-%package -n jupyter-notebook-shim
-Summary: The configuration file for python-notebook-shim
-Provides: juypter-notebook_shim = %{version}-%{release}
-
-%description -n jupyter-notebook-shim
-This project provides a way for JupyterLab and other frontends to switch to
-Jupyter Server for their Python Web application backend. Common configuration
-file
-
%prep
%setup -q -n notebook_shim-%{version}
%build
-%python_build
+%pyproject_wheel
%install
-%python_install
+%pyproject_install
%python_expand %fdupes %{buildroot}%{$python_sitelib}
%check
-# gh#jupyter/notebook_shim#8
-#pytest notebook_shim
+%pytest notebook_shim
%files %{python_files}
%license LICENSE
@@ -71,7 +60,4 @@
%{python_sitelib}/notebook_shim
%{python_sitelib}/notebook_shim-%{version}*-info
-%files -n jupyter-notebook-shim
-%_jupyter_config %{_jupyter_server_confdir}/notebook_shim.json
-
%changelog
++++++ notebook_shim-0.1.0.tar.gz -> notebook_shim-0.2.0.tar.gz ++++++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore'
old/notebook_shim-0.1.0/.github/workflows/check-release.yml
new/notebook_shim-0.2.0/.github/workflows/check-release.yml
--- old/notebook_shim-0.1.0/.github/workflows/check-release.yml 1970-01-01
01:00:00.000000000 +0100
+++ new/notebook_shim-0.2.0/.github/workflows/check-release.yml 2020-02-02
01:00:00.000000000 +0100
@@ -0,0 +1,41 @@
+name: Check Release
+on:
+ push:
+ branches:
+ - "*"
+ pull_request:
+ branches:
+ - "*"
+
+permissions:
+ contents:
+ write
+
+jobs:
+ check_release:
+ runs-on: ubuntu-latest
+ strategy:
+ matrix:
+ group: [check_release, link_check]
+ steps:
+ - name: Checkout
+ uses: actions/checkout@v2
+
+ - name: Base Setup
+ uses: jupyterlab/maintainer-tools/.github/actions/base-setup@v1
+
+ - name: Install Dependencies
+ run: |
+ pip install -e .
+
+ - name: Check Release
+ if: ${{ matrix.group == 'check_release' }}
+ env:
+ TWINE_PASSWORD: ${{ secrets.TEST_PYPI_TOKEN }}
+ uses: jupyter-server/jupyter_releaser/.github/actions/check-release@v1
+ with:
+ token: ${{ secrets.GITHUB_TOKEN }}
+
+ - name: Check Links
+ if: ${{ matrix.group == 'link_check' }}
+ uses: jupyter-server/jupyter_releaser/.github/actions/check-links@v1
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore'
old/notebook_shim-0.1.0/.github/workflows/enforce-label.yml
new/notebook_shim-0.2.0/.github/workflows/enforce-label.yml
--- old/notebook_shim-0.1.0/.github/workflows/enforce-label.yml 1970-01-01
01:00:00.000000000 +0100
+++ new/notebook_shim-0.2.0/.github/workflows/enforce-label.yml 2020-02-02
01:00:00.000000000 +0100
@@ -0,0 +1,11 @@
+name: Enforce PR label
+
+on:
+ pull_request:
+ types: [labeled, unlabeled, opened, edited, synchronize]
+jobs:
+ enforce-label:
+ runs-on: ubuntu-latest
+ steps:
+ - name: enforce-triage-label
+ uses: jupyterlab/maintainer-tools/.github/actions/enforce-label@v1
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/notebook_shim-0.1.0/.github/workflows/test.yml
new/notebook_shim-0.2.0/.github/workflows/test.yml
--- old/notebook_shim-0.1.0/.github/workflows/test.yml 1970-01-01
01:00:00.000000000 +0100
+++ new/notebook_shim-0.2.0/.github/workflows/test.yml 2020-02-02
01:00:00.000000000 +0100
@@ -0,0 +1,36 @@
+name: Test
+
+on:
+ push:
+ branches:
+ - main
+ pull_request:
+ branches: "*"
+
+jobs:
+ build:
+ runs-on: ${{ matrix.os }}-latest
+
+ strategy:
+ fail-fast: false
+ matrix:
+ os: [ubuntu, macos, windows]
+ python-version: ["3.7", "3.10"]
+
+ steps:
+ - name: Checkout
+ uses: actions/checkout@v2
+
+ - name: Base Setup
+ uses: jupyterlab/maintainer-tools/.github/actions/base-setup@v1
+
+ - name: Install pip dependencies
+ run: |
+ pip install -v -e ".[test]" pytest-cov
+ - name: Check pip environment
+ run: |
+ pip freeze
+ pip check
+ - name: Test with pytest
+ run: |
+ python -m pytest -vv --cov=notebook_shim notebook_shim --cov-report
term-missing:skip-covered
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/notebook_shim-0.1.0/.gitignore
new/notebook_shim-0.2.0/.gitignore
--- old/notebook_shim-0.1.0/.gitignore 1970-01-01 01:00:00.000000000 +0100
+++ new/notebook_shim-0.2.0/.gitignore 2020-02-02 01:00:00.000000000 +0100
@@ -0,0 +1,129 @@
+# Byte-compiled / optimized / DLL files
+__pycache__/
+*.py[cod]
+*$py.class
+
+# C extensions
+*.so
+
+# Distribution / packaging
+.Python
+build/
+develop-eggs/
+dist/
+downloads/
+eggs/
+.eggs/
+lib/
+lib64/
+parts/
+sdist/
+var/
+wheels/
+pip-wheel-metadata/
+share/python-wheels/
+*.egg-info/
+.installed.cfg
+*.egg
+MANIFEST
+
+# PyInstaller
+# Usually these files are written by a python script from a template
+# before PyInstaller builds the exe, so as to inject date/other infos into it.
+*.manifest
+*.spec
+
+# Installer logs
+pip-log.txt
+pip-delete-this-directory.txt
+
+# Unit test / coverage reports
+htmlcov/
+.tox/
+.nox/
+.coverage
+.coverage.*
+.cache
+nosetests.xml
+coverage.xml
+*.cover
+*.py,cover
+.hypothesis/
+.pytest_cache/
+
+# Translations
+*.mo
+*.pot
+
+# Django stuff:
+*.log
+local_settings.py
+db.sqlite3
+db.sqlite3-journal
+
+# Flask stuff:
+instance/
+.webassets-cache
+
+# Scrapy stuff:
+.scrapy
+
+# Sphinx documentation
+docs/_build/
+
+# PyBuilder
+target/
+
+# Jupyter Notebook
+.ipynb_checkpoints
+
+# IPython
+profile_default/
+ipython_config.py
+
+# pyenv
+.python-version
+
+# pipenv
+# According to pypa/pipenv#598, it is recommended to include Pipfile.lock in
version control.
+# However, in case of collaboration, if having platform-specific
dependencies or dependencies
+# having no cross-platform support, pipenv may install dependencies that
don't work, or not
+# install all needed dependencies.
+#Pipfile.lock
+
+# PEP 582; used by e.g. github.com/David-OConnor/pyflow
+__pypackages__/
+
+# Celery stuff
+celerybeat-schedule
+celerybeat.pid
+
+# SageMath parsed files
+*.sage.py
+
+# Environments
+.env
+.venv
+env/
+venv/
+ENV/
+env.bak/
+venv.bak/
+
+# Spyder project settings
+.spyderproject
+.spyproject
+
+# Rope project settings
+.ropeproject
+
+# mkdocs documentation
+/site
+
+# mypy
+.mypy_cache/
+.dmypy.json
+dmypy.json
+
+# Pyre type checker
+.pyre/
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/notebook_shim-0.1.0/CHANGELOG.md
new/notebook_shim-0.2.0/CHANGELOG.md
--- old/notebook_shim-0.1.0/CHANGELOG.md 2022-02-10 20:11:34.000000000
+0100
+++ new/notebook_shim-0.2.0/CHANGELOG.md 2020-02-02 01:00:00.000000000
+0100
@@ -2,6 +2,27 @@
<!-- <START NEW CHANGELOG ENTRY> -->
+## 0.2.0
+
+([Full
Changelog](https://github.com/jupyter/notebook_shim/compare/v0.1.0...4e4228d7bb2d2e04cc204db3de7f2f567d65c38a))
+
+### Enhancements made
+
+- raise ceiling on jupyter_server dependency to < 3
[#12](https://github.com/jupyter/notebook_shim/pull/12)
([@Zsailer](https://github.com/Zsailer))
+
+### Maintenance and upkeep improvements
+
+- remove dev version [#15](https://github.com/jupyter/notebook_shim/pull/15)
([@Zsailer](https://github.com/Zsailer))
+- switch to hatch build backend
[#14](https://github.com/jupyter/notebook_shim/pull/14)
([@Zsailer](https://github.com/Zsailer))
+
+### Contributors to this release
+
+([GitHub contributors page for this
release](https://github.com/jupyter/notebook_shim/graphs/contributors?from=2022-02-10&to=2022-10-17&type=c))
+
+[@blink1073](https://github.com/search?q=repo%3Ajupyter%2Fnotebook_shim+involves%3Ablink1073+updated%3A2022-02-10..2022-10-17&type=Issues)
|
[@jtpio](https://github.com/search?q=repo%3Ajupyter%2Fnotebook_shim+involves%3Ajtpio+updated%3A2022-02-10..2022-10-17&type=Issues)
|
[@Zsailer](https://github.com/search?q=repo%3Ajupyter%2Fnotebook_shim+involves%3AZsailer+updated%3A2022-02-10..2022-10-17&type=Issues)
+
+<!-- <END NEW CHANGELOG ENTRY> -->
+
## 0.1.0
([Full
Changelog](https://github.com/jupyterlab/notebook_shim/compare/first-commit...5b433fa298f741c7d71c9a3e7e85f17b2207300f))
@@ -24,5 +45,3 @@
([GitHub contributors page for this
release](https://github.com/jupyterlab/notebook_shim/graphs/contributors?from=2022-01-19&to=2022-02-10&type=c))
[@jtpio](https://github.com/search?q=repo%3Ajupyterlab%2Fnotebook_shim+involves%3Ajtpio+updated%3A2022-01-19..2022-02-10&type=Issues)
|
[@welcome](https://github.com/search?q=repo%3Ajupyterlab%2Fnotebook_shim+involves%3Awelcome+updated%3A2022-01-19..2022-02-10&type=Issues)
|
[@Zsailer](https://github.com/search?q=repo%3Ajupyterlab%2Fnotebook_shim+involves%3AZsailer+updated%3A2022-01-19..2022-02-10&type=Issues)
-
-<!-- <END NEW CHANGELOG ENTRY> -->
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/notebook_shim-0.1.0/PKG-INFO
new/notebook_shim-0.2.0/PKG-INFO
--- old/notebook_shim-0.1.0/PKG-INFO 2022-02-10 20:11:57.635409800 +0100
+++ new/notebook_shim-0.2.0/PKG-INFO 2020-02-02 01:00:00.000000000 +0100
@@ -1,28 +1,58 @@
Metadata-Version: 2.1
Name: notebook_shim
-Version: 0.1.0
+Version: 0.2.0
Summary: A shim layer for notebook traits and config
-Home-page: https://github.com/jupyterlab/notebook_shim
-Author: Jupyter Development Team
-Author-email: [email protected]
-License: UNKNOWN
+Author-email: Jupyter Development Team <[email protected]>
+License: BSD 3-Clause License
+
+ Copyright (c) 2022 Project Jupyter Contributors
+ All rights reserved.
+
+ Redistribution and use in source and binary forms, with or without
+ modification, are permitted provided that the following conditions are
met:
+
+ 1. Redistributions of source code must retain the above copyright
notice, this
+ list of conditions and the following disclaimer.
+
+ 2. Redistributions in binary form must reproduce the above copyright
notice,
+ this list of conditions and the following disclaimer in the
documentation
+ and/or other materials provided with the distribution.
+
+ 3. Neither the name of the copyright holder nor the names of its
+ contributors may be used to endorse or promote products derived from
+ this software without specific prior written permission.
+
+ THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
"AS IS"
+ AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO,
THE
+ IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
PURPOSE ARE
+ DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE
LIABLE
+ FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
CONSEQUENTIAL
+ DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE
GOODS OR
+ SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
HOWEVER
+ CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
LIABILITY,
+ OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF
THE USE
+ OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+License-File: LICENSE
Keywords: ipython,jupyter
-Platform: Linux
-Platform: Mac OS X
-Platform: Windows
+Classifier: Framework :: Jupyter
Classifier: Intended Audience :: Developers
-Classifier: Intended Audience :: System Administrators
Classifier: Intended Audience :: Science/Research
+Classifier: Intended Audience :: System Administrators
Classifier: License :: OSI Approved :: BSD License
Classifier: Programming Language :: Python
+Classifier: Programming Language :: Python :: 3
+Classifier: Programming Language :: Python :: 3 :: Only
Classifier: Programming Language :: Python :: 3.7
Classifier: Programming Language :: Python :: 3.8
Classifier: Programming Language :: Python :: 3.9
Classifier: Programming Language :: Python :: 3.10
Requires-Python: >=3.7
-Description-Content-Type: text/markdown
+Requires-Dist: jupyter-server<3,>=1.8
Provides-Extra: test
-License-File: LICENSE
+Requires-Dist: pytest; extra == 'test'
+Requires-Dist: pytest-console-scripts; extra == 'test'
+Requires-Dist: pytest-tornasync; extra == 'test'
+Description-Content-Type: text/markdown
# Notebook Shim
@@ -57,5 +87,4 @@
from notebook_shim.shim import NotebookConfigShimMixin
class MyApplication(NotebookConfigShimMixin, ExtensionApp):
-```
-
+```
\ No newline at end of file
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/notebook_shim-0.1.0/notebook_shim/_version.py
new/notebook_shim-0.2.0/notebook_shim/_version.py
--- old/notebook_shim-0.1.0/notebook_shim/_version.py 2022-02-10
20:11:46.000000000 +0100
+++ new/notebook_shim-0.2.0/notebook_shim/_version.py 2020-02-02
01:00:00.000000000 +0100
@@ -1 +1,2 @@
-__version__ = "0.1.0"
+version_info = (0, 2, 0, "", "")
+__version__ = "0.2.0"
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore'
old/notebook_shim-0.1.0/notebook_shim/tests/test_extension.py
new/notebook_shim-0.2.0/notebook_shim/tests/test_extension.py
--- old/notebook_shim-0.1.0/notebook_shim/tests/test_extension.py
2022-02-10 20:11:34.000000000 +0100
+++ new/notebook_shim-0.2.0/notebook_shim/tests/test_extension.py
2020-02-02 01:00:00.000000000 +0100
@@ -9,38 +9,19 @@
@pytest.fixture
-def extapp_log():
- """An io stream with the NotebookApp's logging output"""
- stream = io.StringIO()
- return stream
-
-
[email protected](autouse=True)
-def extapp_logcapture(monkeypatch, extapp_log):
- """"""
- @default('log')
- def _log_default(self):
- """Start logging for this application.
- The default is to log to stderr using a StreamHandler, if no default
- handler already exists. The log level starts at logging.WARN, but this
- can be adjusted by setting the ``log_level`` attribute.
- """
- log = super(self.__class__, self)._log_default()
- _log_handler = logging.StreamHandler(extapp_log)
- _log_formatter = self._log_formatter_cls(
- fmt=self.log_format,
- datefmt=self.log_datefmt
- )
- _log_handler.setFormatter(_log_formatter)
- log.addHandler(_log_handler)
- return log
-
- monkeypatch.setattr(MockExtensionApp, '_log_default', _log_default)
- return _log_default
+def read_app_logs(capsys):
+ """Fixture that returns a callable to read
+ the current output from the application's logs
+ that was printed to sys.stderr.
+ """
+ def _inner():
+ captured = capsys.readouterr()
+ return captured.err
+ return _inner
@pytest.fixture
-def jp_server_config():
+def jp_server_config(capsys):
return {
"ServerApp": {
"jpserver_extensions": {
@@ -77,13 +58,13 @@
])
)
def test_EXTAPP_AND_NBAPP_SHIM_MSG(
+ read_app_logs,
extensionapp,
- extapp_log,
jp_argv,
trait_name,
trait_value
):
- log = extapp_log.getvalue()
+ log = read_app_logs()
# Verify a shim warning appeared.
log_msg = shim.EXTAPP_AND_NBAPP_SHIM_MSG(trait_name, 'MockExtensionApp')
assert log_msg in log
@@ -99,13 +80,13 @@
])
)
def test_EXTAPP_AND_SVAPP_SHIM_MSG(
+ read_app_logs,
extensionapp,
- extapp_log,
jp_argv,
trait_name,
trait_value
):
- log = extapp_log.getvalue()
+ log = read_app_logs()
# Verify a shim warning appeared.
log_msg = shim.EXTAPP_AND_SVAPP_SHIM_MSG(trait_name, 'MockExtensionApp')
assert log_msg in log
@@ -123,13 +104,13 @@
])
)
def test_NOT_EXTAPP_NBAPP_AND_SVAPP_SHIM_MSG(
+ read_app_logs,
extensionapp,
- extapp_log,
jp_argv,
trait_name,
trait_value
):
- log = extapp_log.getvalue()
+ log = read_app_logs()
# Verify a shim warning appeared.
log_msg = shim.NOT_EXTAPP_NBAPP_AND_SVAPP_SHIM_MSG(trait_name,
'MockExtensionApp')
assert log_msg in log
@@ -144,13 +125,13 @@
])
)
def test_EXTAPP_TO_SVAPP_SHIM_MSG(
+ read_app_logs,
extensionapp,
- extapp_log,
jp_argv,
trait_name,
trait_value
):
- log = extapp_log.getvalue()
+ log = read_app_logs()
# Verify a shim warning appeared.
log_msg = shim.EXTAPP_TO_SVAPP_SHIM_MSG(trait_name, 'MockExtensionApp')
assert log_msg in log
@@ -166,13 +147,13 @@
])
)
def test_EXTAPP_TO_NBAPP_SHIM_MSG(
+ read_app_logs,
extensionapp,
- extapp_log,
jp_argv,
trait_name,
trait_value
):
- log = extapp_log.getvalue()
+ log = read_app_logs()
# Verify a shim warning appeared.
log_msg = shim.EXTAPP_TO_NBAPP_SHIM_MSG(trait_name, 'MockExtensionApp')
assert log_msg in log
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/notebook_shim-0.1.0/notebook_shim.egg-info/PKG-INFO
new/notebook_shim-0.2.0/notebook_shim.egg-info/PKG-INFO
--- old/notebook_shim-0.1.0/notebook_shim.egg-info/PKG-INFO 2022-02-10
20:11:57.000000000 +0100
+++ new/notebook_shim-0.2.0/notebook_shim.egg-info/PKG-INFO 1970-01-01
01:00:00.000000000 +0100
@@ -1,61 +0,0 @@
-Metadata-Version: 2.1
-Name: notebook-shim
-Version: 0.1.0
-Summary: A shim layer for notebook traits and config
-Home-page: https://github.com/jupyterlab/notebook_shim
-Author: Jupyter Development Team
-Author-email: [email protected]
-License: UNKNOWN
-Keywords: ipython,jupyter
-Platform: Linux
-Platform: Mac OS X
-Platform: Windows
-Classifier: Intended Audience :: Developers
-Classifier: Intended Audience :: System Administrators
-Classifier: Intended Audience :: Science/Research
-Classifier: License :: OSI Approved :: BSD License
-Classifier: Programming Language :: Python
-Classifier: Programming Language :: Python :: 3.7
-Classifier: Programming Language :: Python :: 3.8
-Classifier: Programming Language :: Python :: 3.9
-Classifier: Programming Language :: Python :: 3.10
-Requires-Python: >=3.7
-Description-Content-Type: text/markdown
-Provides-Extra: test
-License-File: LICENSE
-
-# Notebook Shim
-
-This project provides a way for JupyterLab and other frontends to switch to
[Jupyter Server](https://github.com/jupyter/jupyter_server/) for their Python
Web application backend.
-
-## Basic Usage
-
-Install from PyPI:
-
-```
-pip install notebook_shim
-```
-
-This will automatically enable the extension in Jupyter Server.
-
-## Usage
-
-This project also includes an API for shimming traits that moved from
`NotebookApp` in to `ServerApp` in Jupyter Server. This can be used by
applications that subclassed `NotebookApp` to leverage the Python server
backend of Jupyter Notebooks. Such extensions should *now* switch to
`ExtensionApp` API in Jupyter Server and add `NotebookConfigShimMixin` in their
inheritance list to properly handle moved traits.
-
-For example, an application class that previously looked like:
-
-```python
-from notebook.notebookapp import NotebookApp
-
-class MyApplication(NotebookApp):
-```
-
-should switch to look something like:
-
-```python
-from jupyter_server.extension.application import ExtensionApp
-from notebook_shim.shim import NotebookConfigShimMixin
-
-class MyApplication(NotebookConfigShimMixin, ExtensionApp):
-```
-
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore'
old/notebook_shim-0.1.0/notebook_shim.egg-info/SOURCES.txt
new/notebook_shim-0.2.0/notebook_shim.egg-info/SOURCES.txt
--- old/notebook_shim-0.1.0/notebook_shim.egg-info/SOURCES.txt 2022-02-10
20:11:57.000000000 +0100
+++ new/notebook_shim-0.2.0/notebook_shim.egg-info/SOURCES.txt 1970-01-01
01:00:00.000000000 +0100
@@ -1,27 +0,0 @@
-CHANGELOG.md
-LICENSE
-MANIFEST.in
-README.md
-RELEASE.md
-pyproject.toml
-setup.cfg
-setup.py
-jupyter_server_config.d/notebook_shim.json
-notebook_shim/__init__.py
-notebook_shim/_version.py
-notebook_shim/conftest.py
-notebook_shim/nbserver.py
-notebook_shim/shim.py
-notebook_shim/traits.py
-notebook_shim.egg-info/PKG-INFO
-notebook_shim.egg-info/SOURCES.txt
-notebook_shim.egg-info/dependency_links.txt
-notebook_shim.egg-info/not-zip-safe
-notebook_shim.egg-info/requires.txt
-notebook_shim.egg-info/top_level.txt
-notebook_shim/tests/__init__.py
-notebook_shim/tests/mockextension.py
-notebook_shim/tests/test_extension.py
-notebook_shim/tests/confs/jupyter_my_ext_config.py
-notebook_shim/tests/confs/jupyter_notebook_config.py
-notebook_shim/tests/confs/jupyter_server_config.py
\ No newline at end of file
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore'
old/notebook_shim-0.1.0/notebook_shim.egg-info/dependency_links.txt
new/notebook_shim-0.2.0/notebook_shim.egg-info/dependency_links.txt
--- old/notebook_shim-0.1.0/notebook_shim.egg-info/dependency_links.txt
2022-02-10 20:11:57.000000000 +0100
+++ new/notebook_shim-0.2.0/notebook_shim.egg-info/dependency_links.txt
1970-01-01 01:00:00.000000000 +0100
@@ -1 +0,0 @@
-
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore'
old/notebook_shim-0.1.0/notebook_shim.egg-info/not-zip-safe
new/notebook_shim-0.2.0/notebook_shim.egg-info/not-zip-safe
--- old/notebook_shim-0.1.0/notebook_shim.egg-info/not-zip-safe 2022-02-10
20:11:40.000000000 +0100
+++ new/notebook_shim-0.2.0/notebook_shim.egg-info/not-zip-safe 1970-01-01
01:00:00.000000000 +0100
@@ -1 +0,0 @@
-
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore'
old/notebook_shim-0.1.0/notebook_shim.egg-info/requires.txt
new/notebook_shim-0.2.0/notebook_shim.egg-info/requires.txt
--- old/notebook_shim-0.1.0/notebook_shim.egg-info/requires.txt 2022-02-10
20:11:57.000000000 +0100
+++ new/notebook_shim-0.2.0/notebook_shim.egg-info/requires.txt 1970-01-01
01:00:00.000000000 +0100
@@ -1,6 +0,0 @@
-jupyter_server~=1.8
-
-[test]
-pytest
-pytest-tornasync
-pytest-console-scripts
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore'
old/notebook_shim-0.1.0/notebook_shim.egg-info/top_level.txt
new/notebook_shim-0.2.0/notebook_shim.egg-info/top_level.txt
--- old/notebook_shim-0.1.0/notebook_shim.egg-info/top_level.txt
2022-02-10 20:11:57.000000000 +0100
+++ new/notebook_shim-0.2.0/notebook_shim.egg-info/top_level.txt
1970-01-01 01:00:00.000000000 +0100
@@ -1 +0,0 @@
-notebook_shim
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/notebook_shim-0.1.0/pyproject.toml
new/notebook_shim-0.2.0/pyproject.toml
--- old/notebook_shim-0.1.0/pyproject.toml 2022-02-10 20:11:46.000000000
+0100
+++ new/notebook_shim-0.2.0/pyproject.toml 2020-02-02 01:00:00.000000000
+0100
@@ -1,21 +1,48 @@
[build-system]
-requires = ["jupyter_packaging~=0.9,<2"]
-build-backend = "jupyter_packaging.build_api"
+requires = ["hatchling >=1.0"]
+build-backend = "hatchling.build"
-[tool.check-manifest]
-ignore = ["tbump.toml", ".*", "conftest.py"]
+[project]
+name = "notebook_shim"
+dynamic = [
+ "version",
+]
+readme = "README.md"
+license = { file = "LICENSE" }
+description = "A shim layer for notebook traits and config"
+authors = [{name = "Jupyter Development Team", email =
"[email protected]"}]
+keywords = ["ipython", "jupyter"]
+classifiers = [
+ "Framework :: Jupyter",
+ "Intended Audience :: Developers",
+ "Intended Audience :: Science/Research",
+ "Intended Audience :: System Administrators",
+ "License :: OSI Approved :: BSD License",
+ "Programming Language :: Python",
+ "Programming Language :: Python :: 3",
+ "Programming Language :: Python :: 3 :: Only",
+ "Programming Language :: Python :: 3.7",
+ "Programming Language :: Python :: 3.8",
+ "Programming Language :: Python :: 3.9",
+ "Programming Language :: Python :: 3.10",
+]
+requires-python = ">=3.7"
+dependencies = [
+ "jupyter_server>=1.8,<3"
+]
-[tool.pytest.ini_options]
-norecursedirs = ["confs"]
-testpaths = [
- "notebook_shim/tests"
+[project.optional-dependencies]
+test = [
+ "pytest",
+ "pytest-tornasync",
+ "pytest-console-scripts",
]
-[tool.jupyter-releaser]
-skip = ["check-links"]
+[tool.hatch.version]
+path = "notebook_shim/_version.py"
[tool.tbump.version]
-current = "0.1.0"
+current = "0.2.0"
regex = '''
(?P<major>\d+)\.(?P<minor>\d+)\.(?P<patch>\d+)
((?P<channel>a|b|rc|.dev)(?P<release>\d+))?
@@ -27,3 +54,28 @@
[[tool.tbump.file]]
src = "notebook_shim/_version.py"
+version_template = '({major}, {minor}, {patch}, "{channel}", "{release}")'
+
+[[tool.tbump.file]]
+src = "notebook_shim/_version.py"
+version_template = "{major}.{minor}.{patch}{channel}{release}"
+
+[[tool.tbump.field]]
+name = "channel"
+default = ""
+
+[[tool.tbump.field]]
+name = "release"
+default = ""
+
+[tool.check-manifest]
+ignore = ["tbump.toml", ".*", "conftest.py"]
+
+[tool.pytest.ini_options]
+norecursedirs = ["confs"]
+testpaths = [
+ "notebook_shim/tests"
+]
+
+[tool.jupyter-releaser]
+skip = ["check-links"]
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/notebook_shim-0.1.0/setup.cfg
new/notebook_shim-0.2.0/setup.cfg
--- old/notebook_shim-0.1.0/setup.cfg 2022-02-10 20:11:57.635409800 +0100
+++ new/notebook_shim-0.2.0/setup.cfg 1970-01-01 01:00:00.000000000 +0100
@@ -1,57 +0,0 @@
-[metadata]
-name = notebook_shim
-version = attr: notebook_shim._version.__version__
-description = A shim layer for notebook traits and config
-long_description = file: README.md
-long_description_content_type = text/markdown
-license_file = LICENSE
-author = Jupyter Development Team
-author_email = [email protected]
-url = https://github.com/jupyterlab/notebook_shim
-platforms = Linux, Mac OS X, Windows
-keywords = ipython, jupyter
-classifiers =
- Intended Audience :: Developers
- Intended Audience :: System Administrators
- Intended Audience :: Science/Research
- License :: OSI Approved :: BSD License
- Programming Language :: Python
- Programming Language :: Python :: 3.7
- Programming Language :: Python :: 3.8
- Programming Language :: Python :: 3.9
- Programming Language :: Python :: 3.10
-
-[options]
-zip_safe = False
-include_package_data = True
-packages = find:
-python_requires = >=3.7
-install_requires =
- jupyter_server~=1.8
-
-[options.data_files]
-etc/jupyter/jupyter_server_config.d =
- jupyter_server_config.d/notebook_shim.json
-
-[options.extras_require]
-test =
- pytest
- pytest-tornasync
- pytest-console-scripts
-
-[options.packages.find]
-exclude = ['docs*']
-
-[flake8]
-ignore = E, C, W, F401, F403, F811, F841, E402, I100, I101, D400
-builtins = c, get_config
-exclude =
- .cache,
- .github,
- docs,
- setup.py
-
-[egg_info]
-tag_build =
-tag_date = 0
-
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/notebook_shim-0.1.0/setup.py
new/notebook_shim-0.2.0/setup.py
--- old/notebook_shim-0.1.0/setup.py 2022-02-10 20:11:34.000000000 +0100
+++ new/notebook_shim-0.2.0/setup.py 1970-01-01 01:00:00.000000000 +0100
@@ -1,2 +0,0 @@
-from setuptools import setup
-setup()