New Upstream Release - jupyter-server-mathjax

Ready changes

Summary

Merged new upstream version: 0.2.6 (was: 0.2.3).

Resulting package

Built on 2023-02-25T17:02 (took 6m50s)

The resulting binary packages can be installed (if you have the apt repository enabled) by running one of:

apt install -t fresh-releases python3-jupyter-server-mathjax

Diff

diff --git a/.github/workflows/pythonpackage.yml b/.github/workflows/pythonpackage.yml
index 988cd14..9dfa568 100644
--- a/.github/workflows/pythonpackage.yml
+++ b/.github/workflows/pythonpackage.yml
@@ -16,16 +16,18 @@ jobs:
       fail-fast: false
       matrix:
         os: [ubuntu, macos, windows]
-        python-version: ['3.6', '3.7', '3.8', '3.9', 'pypy3']
+        python-version: ['3.7', '3.8', '3.9', '3.10', 'pypy-3.8']
         exclude:
+        - os: macos
+          python-version: pypy-3.8
         - os: windows
-          python-version: pypy3
+          python-version: pypy-3.8
 
     steps:
-    - uses: actions/checkout@v1
+    - uses: actions/checkout@v2
 
     - name: Set up Python ${{ matrix.python-version }}
-      uses: actions/setup-python@v1
+      uses: actions/setup-python@v2
       with:
         python-version: ${{ matrix.python-version }}
 
@@ -39,7 +41,7 @@ jobs:
         echo "::set-output name=dir::$(pip cache dir)"
 
     - name: Cache pip
-      uses: actions/cache@v1
+      uses: actions/cache@v2
       with:
         path: ${{ steps.pip-cache.outputs.dir }}
         key: ${{ runner.os }}-pip-${{ matrix.python-version }}-${{ hashFiles('setup.py') }}
diff --git a/MANIFEST.in b/MANIFEST.in
index ec7b37e..14dcfad 100644
--- a/MANIFEST.in
+++ b/MANIFEST.in
@@ -8,4 +8,4 @@ include pytest.ini
 include package.json
 include copyAssets.js
 
-graft tests
+graft jupyter_server_mathjax/static
diff --git a/README.md b/README.md
index 80a0cf4..f1c2c50 100644
--- a/README.md
+++ b/README.md
@@ -19,3 +19,33 @@ To test the installation, you can run Jupyter Server and visit the `/static/jupy
 ```sh
 > jupyter server
 ```
+
+## Maintenance Notes
+
+To install an editable install locally for development, first clone the repository locally,
+then run:
+
+```sh
+`pip install -e .[test]`
+```
+
+Note that the editable install will not install the data file that
+automatically configures the extension for use. To manually enable it, run:
+
+```sh
+jupyter server extension enable --py jupyter_server_mathjax
+```
+
+To build for distribution, use the `build` package:
+
+```sh
+pip install build
+python -m build
+```
+
+Then release using twine:
+
+```sh
+twine check dist/*
+twine check dist/*
+```
diff --git a/copyAssets.js b/copyAssets.js
index 0a7493f..72a37ea 100644
--- a/copyAssets.js
+++ b/copyAssets.js
@@ -24,7 +24,7 @@ const include = [
 
 const re_include = [
   ["jax", "output", `[^${rps}]+.js$`],
-  ["jax", "output", "autoload", ".*"],
+  ["jax", "output", "HTML-CSS", "autoload", ".*"],
   ["localization", ".*"],
   ["fonts", "HTML-CSS", "STIX-Web", "woff", ".*"],
   ["extensions", ".*"],
diff --git a/debian/changelog b/debian/changelog
index d13fca5..00b4ad2 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -1,3 +1,9 @@
+jupyter-server-mathjax (0.2.6-1) UNRELEASED; urgency=low
+
+  * New upstream release.
+
+ -- Debian Janitor <janitor@jelmer.uk>  Sat, 25 Feb 2023 16:56:04 -0000
+
 jupyter-server-mathjax (0.2.3-2) unstable; urgency=medium
 
   * [c574a35] drop autopkgtest-pkg-python in favor of upstream testsuite
diff --git a/jupyter_server_mathjax/__version__.py b/jupyter_server_mathjax/__version__.py
index 4d0f4d9..30a7262 100644
--- a/jupyter_server_mathjax/__version__.py
+++ b/jupyter_server_mathjax/__version__.py
@@ -1,2 +1,2 @@
-version_info = (0, 2, 3)
+version_info = (0, 2, 6)
 __version__ = ".".join(map(str, version_info))
diff --git a/jupyter_server_mathjax/app.py b/jupyter_server_mathjax/app.py
index 3a3a874..0722960 100644
--- a/jupyter_server_mathjax/app.py
+++ b/jupyter_server_mathjax/app.py
@@ -8,8 +8,10 @@ from tornado.web import RedirectHandler
 
 from jupyter_server.extension.application import ExtensionApp
 from jupyter_server.utils import url_path_join
-from jupyter_server.transutils import _
-
+try:
+    from jupyter_server.transutils import _i18n
+except ImportError:
+    from jupyter_server.transutils import _ as _i18n
 
 STATIC_ASSETS_PATH = Path(__file__).parent / "static"
 
@@ -19,7 +21,7 @@ class DeprecatedRedirectHandler(RedirectHandler):
         import warnings
 
         warnings.warn(
-            "Redirecting old Notebook MathJax URL to new one. This will be removed in a future release.",
+            _i18n("Redirecting old Notebook MathJax URL to new one. This will be removed in a future release."),
             PendingDeprecationWarning,
         )
         super().get(*args, **kwargs)
@@ -37,12 +39,12 @@ class MathJaxExtension(ExtensionApp):
     mathjax_config = Unicode(
         "TeX-AMS-MML_HTMLorMML-full,Safe",
         config=True,
-        help=_("""The MathJax.js configuration file that is to be used."""),
+        help=_i18n("""The MathJax.js configuration file that is to be used."""),
     )
 
     @observe("mathjax_config")
     def _update_mathjax_config(self, change):
-        self.log.info(_("Using MathJax configuration file: %s"), change["new"])
+        self.log.info(_i18n("Using MathJax configuration file: %s"), change["new"])
 
     def initialize_settings(self):
         # Add settings specific to this extension to the
diff --git a/pyproject.toml b/pyproject.toml
index 5f3635b..edddc1a 100644
--- a/pyproject.toml
+++ b/pyproject.toml
@@ -1,4 +1,3 @@
 [build-system]
-# Minimum requirements for the build system to execute.
-requires = ["setuptools", "wheel", "jupyter_packaging"]
+requires = ["setuptools", "wheel", "jupyter_packaging>=0.10,<2"]
 build-backend = "setuptools.build_meta"
diff --git a/setup.cfg b/setup.cfg
index 8899f0a..32ba6fc 100644
--- a/setup.cfg
+++ b/setup.cfg
@@ -1,3 +1,43 @@
+[metadata]
+name = jupyter_server_mathjax
+description = MathJax resources as a Jupyter Server Extension.
+long_description = file: README.md
+long_description_content_type = text/markdown
+author = Jupyter Development Team
+author_email = jupyter@googlegroups.com
+url = http://jupyter.org
+platforms = Linux, Mac OS X, Windows
+keywords = ipython, jupyter, jupyter-server
+license = BSD 3-Clause License
+classifiers =
+    Framework :: Jupyter
+    Intended Audience :: Developers
+    Intended Audience :: System Administrators
+    Intended Audience :: Science/Research
+    License :: OSI Approved :: BSD License
+    Programming Language :: Python
+    Programming Language :: Python :: 3
+    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
+python_requires = >=3.7
+packages = find:
+install_requires =
+    jupyter_server >= 1.1
+
+[options.extras_require]
+test = jupyter_server[test]; pytest
+
+[options.package_data]
+jupyter_server_mathjax = static/**/*
+
+[options.data_files]
+etc/jupyter/jupyter_server_config.d = jupyter_server_config.d/*.json
 
 [manifix]
 known-excludes =
@@ -10,4 +50,3 @@ known-excludes =
     package-lock.json
     *.egg-info/**/*
     .vscode/**/*
-    jupyter_server_mathjax/static/**/*
diff --git a/setup.py b/setup.py
index df36605..0033efc 100644
--- a/setup.py
+++ b/setup.py
@@ -2,26 +2,18 @@
 # Distributed under the terms of the Modified BSD License.
 
 from pathlib import Path
-from setuptools import find_packages, setup
+from setuptools import setup
 from jupyter_packaging import (
-    combine_commands,
-    create_cmdclass,
-    ensure_targets,
+    wrap_installers,
+    npm_builder,
     get_version,
-    install_npm,
 )
 
 
 NAME = "jupyter_server_mathjax"
-
 here = Path(__file__).absolute().parent
-project_slug = NAME.lower().replace("-", "_").replace(" ", "_")
 version = get_version(here / NAME / "__version__.py")
 
-
-with open("README.md", "r") as fh:
-    long_description = fh.read()
-
 jstargets = [
     here.joinpath(NAME, "static", "MathJax.js"),
     # if we are distributing MathJax, we need to include its license:
@@ -29,57 +21,16 @@ jstargets = [
 ]
 
 # Handle datafiles
-cmdclass = create_cmdclass(
-    "js",
-    data_files_spec=[
-        ("etc/jupyter/jupyter_server_config.d", "jupyter_server_config.d", "*.json")
-    ],
-    package_data_spec={NAME: ["static/**/*"]},
-)
-
-cmdclass["js"] = combine_commands(
-    install_npm(here),
-    ensure_targets(jstargets),
+builder = npm_builder(here)
+cmdclass = wrap_installers(
+    pre_develop=builder,
+    pre_dist=builder,
+    ensured_targets=jstargets
 )
 
 setup_args = dict(
-    name=NAME,
-    description="MathJax resources as a Jupyter Server Extension.",
-    long_description=long_description,
-    long_description_content_type="text/markdown",
     version=version,
-    packages=find_packages(exclude=["tests*"]),
-    author="Jupyter Development Team",
-    author_email="jupyter@googlegroups.com",
-    url="http://jupyter.org",
-    license="BSD",
-    platforms="Linux, Mac OS X, Windows",
-    keywords=["ipython", "jupyter", "jupyter-server"],
-    classifiers=[
-        "Intended Audience :: Developers",
-        "Intended Audience :: System Administrators",
-        "Intended Audience :: Science/Research",
-        "License :: OSI Approved :: BSD License",
-        "Programming Language :: Python",
-        "Programming Language :: Python :: 3",
-        "Programming Language :: Python :: 3.6",
-        "Programming Language :: Python :: 3.7",
-        "Programming Language :: Python :: 3.8",
-        "Programming Language :: Python :: 3.9",
-    ],
     cmdclass=cmdclass,
-    zip_safe=False,
-    python_requires=">=3.6",
-    include_package_data=True,
-    install_requires=[
-        "jupyter_server~=1.1",
-    ],
-    extras_require={
-        "test": [
-            "jupyter_server[test]",
-            "pytest",
-        ],
-    },
 )
 
 if __name__ == "__main__":

Debdiff

[The following lists of changes regard files as different if they have different names, permissions or owners.]

Files in second set of .debs but not in first

-rw-r--r--  root/root   /usr/etc/jupyter/jupyter_server_config.d/jupyter_server_mathjax.json
-rw-r--r--  root/root   /usr/lib/python3/dist-packages/jupyter_server_mathjax-0.2.6.egg-info/PKG-INFO
-rw-r--r--  root/root   /usr/lib/python3/dist-packages/jupyter_server_mathjax-0.2.6.egg-info/dependency_links.txt
-rw-r--r--  root/root   /usr/lib/python3/dist-packages/jupyter_server_mathjax-0.2.6.egg-info/not-zip-safe
-rw-r--r--  root/root   /usr/lib/python3/dist-packages/jupyter_server_mathjax-0.2.6.egg-info/requires.txt
-rw-r--r--  root/root   /usr/lib/python3/dist-packages/jupyter_server_mathjax-0.2.6.egg-info/top_level.txt

Files in first set of .debs but not in second

-rw-r--r--  root/root   /usr/lib/python3/dist-packages/jupyter_server_mathjax-0.2.3.egg-info/PKG-INFO
-rw-r--r--  root/root   /usr/lib/python3/dist-packages/jupyter_server_mathjax-0.2.3.egg-info/dependency_links.txt
-rw-r--r--  root/root   /usr/lib/python3/dist-packages/jupyter_server_mathjax-0.2.3.egg-info/not-zip-safe
-rw-r--r--  root/root   /usr/lib/python3/dist-packages/jupyter_server_mathjax-0.2.3.egg-info/requires.txt
-rw-r--r--  root/root   /usr/lib/python3/dist-packages/jupyter_server_mathjax-0.2.3.egg-info/top_level.txt

No differences were encountered in the control files

More details

Full run details