pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/devel/py-jupyter_core py-jupyter_core: updated to 5.0.0



details:   https://anonhg.NetBSD.org/pkgsrc/rev/f77e133dd78d
branches:  trunk
changeset: 388528:f77e133dd78d
user:      adam <adam%pkgsrc.org@localhost>
date:      Tue Nov 22 10:18:06 2022 +0000

description:
py-jupyter_core: updated to 5.0.0

5.0.0

Major Changes

Prefer Environment Level Configuration

We now make the assumption that if we are running in a virtual environment, we should prioritize the environment-level `sys.prefix` over the user-level paths. Users can opt out of this behavior by 
setting `JUPYTER_PREFER_ENV_PATH`, which takes precedence over our autodetection.

Migrate to Standard Platform Directories

In version 5, we introduce a `JUPYTER_PLATFORM_DIRS` environment variable to opt in to using more appropriate platform-specific directories.  We raise a deprecation warning if the variable is not 
set.  In version 6,  `JUPYTER_PLATFORM_DIRS` will be opt-out.  In version 7, we will remove the environment variable checks and old directory logic.

Drop Support for Python 3.7

We are dropping support for Python 3.7 ahead of its official end of life, to reduce maintenance burden as we add support for Python 3.11.

Enhancements made

- Use platformdirs for path locations
- Try to detect if we are in a virtual environment and change path precedence accordingly

Bugs fixed

- Add current working directory as first config path
- Fix inclusion of jupyter file and check in CI

Maintenance and upkeep improvements

- Bump github/codeql-action from 1 to 2
- Bump actions/checkout from 2 to 3
- Add dependabot
- Adopt jupyter releaser
- Add more typing
- Require Python 3.8+
- Use hatch backend
- Switch to flit build backend
- is_hidden: Use normalized paths

Documentation

- Update broken link to `Contributing` guide

diffstat:

 devel/py-jupyter_core/Makefile                             |  15 +++-
 devel/py-jupyter_core/PLIST                                |  42 +++-----------
 devel/py-jupyter_core/distinfo                             |  10 +-
 devel/py-jupyter_core/patches/patch-jupyter__core_paths.py |  20 +++---
 4 files changed, 34 insertions(+), 53 deletions(-)

diffs (200 lines):

diff -r 277319a3416e -r f77e133dd78d devel/py-jupyter_core/Makefile
--- a/devel/py-jupyter_core/Makefile    Tue Nov 22 10:16:00 2022 +0000
+++ b/devel/py-jupyter_core/Makefile    Tue Nov 22 10:18:06 2022 +0000
@@ -1,6 +1,6 @@
-# $NetBSD: Makefile,v 1.19 2022/04/19 11:34:27 adam Exp $
+# $NetBSD: Makefile,v 1.20 2022/11/22 10:18:06 adam Exp $
 
-DISTNAME=      jupyter_core-4.10.0
+DISTNAME=      jupyter_core-5.0.0
 PKGNAME=       ${PYPKGPREFIX}-${DISTNAME}
 CATEGORIES=    devel python
 MASTER_SITES=  ${MASTER_SITE_PYPI:=j/jupyter_core/}
@@ -10,16 +10,19 @@
 COMMENT=       Jupyter core package
 LICENSE=       modified-bsd
 
-DEPENDS+=      ${PYPKGPREFIX}-traitlets>=4.1.0:../../devel/py-traitlets
+DEPENDS+=      ${PYPKGPREFIX}-platformdirs-[0-9]*:../../misc/py-platformdirs
+DEPENDS+=      ${PYPKGPREFIX}-traitlets-[0-9]*:../../devel/py-traitlets
 TEST_DEPENDS+= ${PYPKGPREFIX}-test-[0-9]*:../../devel/py-test
 TEST_DEPENDS+= ${PYPKGPREFIX}-test-cov-[0-9]*:../../devel/py-test-cov
 TEST_DEPENDS+= ${PYPKGPREFIX}-test-timeout-[0-9]*:../../devel/py-test-timeout
 
 USE_LANGUAGES= # none
 
+USE_PKG_RESOURCES=     yes
+
 PYTHON_VERSIONS_INCOMPATIBLE=  27
 
-USE_PKG_RESOURCES=     yes
+REPLACE_PYTHON+=       jupyter_core/troubleshoot.py
 
 SUBST_CLASSES+=                        fix-prefix
 SUBST_STAGE.fix-prefix=                pre-configure
@@ -28,6 +31,7 @@
 SUBST_VARS.fix-prefix=         PREFIX
 
 post-install:
+       ${RM} -f ${DESTDIR}${PREFIX}/${PYSITELIB}/jupyter_core/paths.py.orig
        cd ${DESTDIR}${PREFIX}/bin && \
        ${MV} jupyter jupyter-${PYVERSSUFFIX} && \
        ${MV} jupyter-migrate jupyter-migrate-${PYVERSSUFFIX} && \
@@ -36,5 +40,6 @@
 do-test:
        cd ${WRKSRC}/jupyter_core && ${SETENV} ${TEST_ENV} pytest-${PYVERSSUFFIX}
 
-.include "../../lang/python/egg.mk"
+.include "../../lang/python/application.mk"
+.include "../../lang/python/wheel.mk"
 .include "../../mk/bsd.pkg.mk"
diff -r 277319a3416e -r f77e133dd78d devel/py-jupyter_core/PLIST
--- a/devel/py-jupyter_core/PLIST       Tue Nov 22 10:16:00 2022 +0000
+++ b/devel/py-jupyter_core/PLIST       Tue Nov 22 10:18:06 2022 +0000
@@ -1,94 +1,70 @@
-@comment $NetBSD: PLIST,v 1.4 2022/04/19 11:34:27 adam Exp $
+@comment $NetBSD: PLIST,v 1.5 2022/11/22 10:18:06 adam Exp $
 bin/jupyter-${PYVERSSUFFIX}
 bin/jupyter-migrate-${PYVERSSUFFIX}
 bin/jupyter-troubleshoot-${PYVERSSUFFIX}
-${PYSITELIB}/${EGG_INFODIR}/PKG-INFO
-${PYSITELIB}/${EGG_INFODIR}/SOURCES.txt
-${PYSITELIB}/${EGG_INFODIR}/dependency_links.txt
-${PYSITELIB}/${EGG_INFODIR}/entry_points.txt
-${PYSITELIB}/${EGG_INFODIR}/requires.txt
-${PYSITELIB}/${EGG_INFODIR}/top_level.txt
+${PYSITELIB}/${WHEEL_INFODIR}/INSTALLER
+${PYSITELIB}/${WHEEL_INFODIR}/METADATA
+${PYSITELIB}/${WHEEL_INFODIR}/RECORD
+${PYSITELIB}/${WHEEL_INFODIR}/REQUESTED
+${PYSITELIB}/${WHEEL_INFODIR}/WHEEL
+${PYSITELIB}/${WHEEL_INFODIR}/direct_url.json
+${PYSITELIB}/${WHEEL_INFODIR}/entry_points.txt
+${PYSITELIB}/${WHEEL_INFODIR}/licenses/COPYING.md
 ${PYSITELIB}/jupyter.py
 ${PYSITELIB}/jupyter.pyc
-${PYSITELIB}/jupyter.pyo
 ${PYSITELIB}/jupyter_core/__init__.py
 ${PYSITELIB}/jupyter_core/__init__.pyc
-${PYSITELIB}/jupyter_core/__init__.pyo
 ${PYSITELIB}/jupyter_core/__main__.py
 ${PYSITELIB}/jupyter_core/__main__.pyc
-${PYSITELIB}/jupyter_core/__main__.pyo
 ${PYSITELIB}/jupyter_core/application.py
 ${PYSITELIB}/jupyter_core/application.pyc
-${PYSITELIB}/jupyter_core/application.pyo
 ${PYSITELIB}/jupyter_core/command.py
 ${PYSITELIB}/jupyter_core/command.pyc
-${PYSITELIB}/jupyter_core/command.pyo
 ${PYSITELIB}/jupyter_core/migrate.py
 ${PYSITELIB}/jupyter_core/migrate.pyc
-${PYSITELIB}/jupyter_core/migrate.pyo
 ${PYSITELIB}/jupyter_core/paths.py
 ${PYSITELIB}/jupyter_core/paths.pyc
-${PYSITELIB}/jupyter_core/paths.pyo
 ${PYSITELIB}/jupyter_core/py.typed
 ${PYSITELIB}/jupyter_core/tests/__init__.py
 ${PYSITELIB}/jupyter_core/tests/__init__.pyc
-${PYSITELIB}/jupyter_core/tests/__init__.pyo
 ${PYSITELIB}/jupyter_core/tests/dotipython/nbextensions/myext.js
 ${PYSITELIB}/jupyter_core/tests/dotipython/profile_default/ipython_config.py
 ${PYSITELIB}/jupyter_core/tests/dotipython/profile_default/ipython_config.pyc
-${PYSITELIB}/jupyter_core/tests/dotipython/profile_default/ipython_config.pyo
 ${PYSITELIB}/jupyter_core/tests/dotipython/profile_default/ipython_console_config.py
 ${PYSITELIB}/jupyter_core/tests/dotipython/profile_default/ipython_console_config.pyc
-${PYSITELIB}/jupyter_core/tests/dotipython/profile_default/ipython_console_config.pyo
 ${PYSITELIB}/jupyter_core/tests/dotipython/profile_default/ipython_kernel_config.py
 ${PYSITELIB}/jupyter_core/tests/dotipython/profile_default/ipython_kernel_config.pyc
-${PYSITELIB}/jupyter_core/tests/dotipython/profile_default/ipython_kernel_config.pyo
 ${PYSITELIB}/jupyter_core/tests/dotipython/profile_default/ipython_nbconvert_config.py
 ${PYSITELIB}/jupyter_core/tests/dotipython/profile_default/ipython_nbconvert_config.pyc
-${PYSITELIB}/jupyter_core/tests/dotipython/profile_default/ipython_nbconvert_config.pyo
 ${PYSITELIB}/jupyter_core/tests/dotipython/profile_default/ipython_notebook_config.py
 ${PYSITELIB}/jupyter_core/tests/dotipython/profile_default/ipython_notebook_config.pyc
-${PYSITELIB}/jupyter_core/tests/dotipython/profile_default/ipython_notebook_config.pyo
 ${PYSITELIB}/jupyter_core/tests/dotipython/profile_default/static/custom/custom.css
 ${PYSITELIB}/jupyter_core/tests/dotipython/profile_default/static/custom/custom.js
 ${PYSITELIB}/jupyter_core/tests/dotipython_empty/profile_default/ipython_config.py
 ${PYSITELIB}/jupyter_core/tests/dotipython_empty/profile_default/ipython_config.pyc
-${PYSITELIB}/jupyter_core/tests/dotipython_empty/profile_default/ipython_config.pyo
 ${PYSITELIB}/jupyter_core/tests/dotipython_empty/profile_default/ipython_console_config.py
 ${PYSITELIB}/jupyter_core/tests/dotipython_empty/profile_default/ipython_console_config.pyc
-${PYSITELIB}/jupyter_core/tests/dotipython_empty/profile_default/ipython_console_config.pyo
 ${PYSITELIB}/jupyter_core/tests/dotipython_empty/profile_default/ipython_kernel_config.py
 ${PYSITELIB}/jupyter_core/tests/dotipython_empty/profile_default/ipython_kernel_config.pyc
-${PYSITELIB}/jupyter_core/tests/dotipython_empty/profile_default/ipython_kernel_config.pyo
 ${PYSITELIB}/jupyter_core/tests/dotipython_empty/profile_default/ipython_nbconvert_config.py
 ${PYSITELIB}/jupyter_core/tests/dotipython_empty/profile_default/ipython_nbconvert_config.pyc
-${PYSITELIB}/jupyter_core/tests/dotipython_empty/profile_default/ipython_nbconvert_config.pyo
 ${PYSITELIB}/jupyter_core/tests/dotipython_empty/profile_default/ipython_notebook_config.py
 ${PYSITELIB}/jupyter_core/tests/dotipython_empty/profile_default/ipython_notebook_config.pyc
-${PYSITELIB}/jupyter_core/tests/dotipython_empty/profile_default/ipython_notebook_config.pyo
 ${PYSITELIB}/jupyter_core/tests/dotipython_empty/profile_default/static/custom/custom.css
 ${PYSITELIB}/jupyter_core/tests/dotipython_empty/profile_default/static/custom/custom.js
 ${PYSITELIB}/jupyter_core/tests/mocking.py
 ${PYSITELIB}/jupyter_core/tests/mocking.pyc
-${PYSITELIB}/jupyter_core/tests/mocking.pyo
 ${PYSITELIB}/jupyter_core/tests/test_application.py
 ${PYSITELIB}/jupyter_core/tests/test_application.pyc
-${PYSITELIB}/jupyter_core/tests/test_application.pyo
 ${PYSITELIB}/jupyter_core/tests/test_command.py
 ${PYSITELIB}/jupyter_core/tests/test_command.pyc
-${PYSITELIB}/jupyter_core/tests/test_command.pyo
 ${PYSITELIB}/jupyter_core/tests/test_migrate.py
 ${PYSITELIB}/jupyter_core/tests/test_migrate.pyc
-${PYSITELIB}/jupyter_core/tests/test_migrate.pyo
 ${PYSITELIB}/jupyter_core/tests/test_paths.py
 ${PYSITELIB}/jupyter_core/tests/test_paths.pyc
-${PYSITELIB}/jupyter_core/tests/test_paths.pyo
 ${PYSITELIB}/jupyter_core/troubleshoot.py
 ${PYSITELIB}/jupyter_core/troubleshoot.pyc
-${PYSITELIB}/jupyter_core/troubleshoot.pyo
 ${PYSITELIB}/jupyter_core/utils/__init__.py
 ${PYSITELIB}/jupyter_core/utils/__init__.pyc
-${PYSITELIB}/jupyter_core/utils/__init__.pyo
 ${PYSITELIB}/jupyter_core/version.py
 ${PYSITELIB}/jupyter_core/version.pyc
-${PYSITELIB}/jupyter_core/version.pyo
diff -r 277319a3416e -r f77e133dd78d devel/py-jupyter_core/distinfo
--- a/devel/py-jupyter_core/distinfo    Tue Nov 22 10:16:00 2022 +0000
+++ b/devel/py-jupyter_core/distinfo    Tue Nov 22 10:18:06 2022 +0000
@@ -1,6 +1,6 @@
-$NetBSD: distinfo,v 1.14 2022/04/19 11:34:27 adam Exp $
+$NetBSD: distinfo,v 1.15 2022/11/22 10:18:06 adam Exp $
 
-BLAKE2s (jupyter_core-4.10.0.tar.gz) = 3b86b32689fd0282ef0964818a8daac28dd2cb35a8c7dd47104b9e56ef21b9c2
-SHA512 (jupyter_core-4.10.0.tar.gz) = b11257aa6239d2cc51b63c4ae696b5e2862fd824f662875a9e2b663a84b86aec14aa21baae6e5c720155f2be37fd40925b913503e002401eee442d6d3258704d
-Size (jupyter_core-4.10.0.tar.gz) = 76535 bytes
-SHA1 (patch-jupyter__core_paths.py) = 6e4b61b6d261a56f8111f0f878031366112eadc8
+BLAKE2s (jupyter_core-5.0.0.tar.gz) = 90cf8d0ec8c648035f08413ef2950e4ddf672aacb30af33ad0fbb5e99bd8c775
+SHA512 (jupyter_core-5.0.0.tar.gz) = a587b5a0e6ceb85a842670121fe78f93a232dbdc56412c7b32b415054cf06b6028a8f4669b7e7c8a702ebbbf4873962ae4cbff2b3636f8abb75ec0ae6bdeb64d
+Size (jupyter_core-5.0.0.tar.gz) = 78285 bytes
+SHA1 (patch-jupyter__core_paths.py) = 77720329c9613abde9576244ac17b101bfded070
diff -r 277319a3416e -r f77e133dd78d devel/py-jupyter_core/patches/patch-jupyter__core_paths.py
--- a/devel/py-jupyter_core/patches/patch-jupyter__core_paths.py        Tue Nov 22 10:16:00 2022 +0000
+++ b/devel/py-jupyter_core/patches/patch-jupyter__core_paths.py        Tue Nov 22 10:18:06 2022 +0000
@@ -1,14 +1,14 @@
-$NetBSD: patch-jupyter__core_paths.py,v 1.2 2022/04/19 11:34:27 adam Exp $
+$NetBSD: patch-jupyter__core_paths.py,v 1.3 2022/11/22 10:18:06 adam Exp $
 
 Enable Jupyter to discover kernels installed by pkgsrc packages.
 
---- jupyter_core/paths.py.orig 2022-04-18 10:53:22.000000000 +0000
+--- jupyter_core/paths.py.orig 2020-02-02 00:00:00.000000000 +0000
 +++ jupyter_core/paths.py
-@@ -131,6 +131,7 @@ if os.name == "nt":
-         SYSTEM_JUPYTER_PATH = [os.path.join(sys.prefix, "share", "jupyter")]
- else:
-     SYSTEM_JUPYTER_PATH = [
-+        "@PREFIX@/share/jupyter",
-         "/usr/local/share/jupyter",
-         "/usr/share/jupyter",
-     ]
+@@ -188,6 +188,7 @@ else:
+             SYSTEM_JUPYTER_PATH = [os.path.join(sys.prefix, "share", "jupyter")]
+     else:
+         SYSTEM_JUPYTER_PATH = [
++            "@PREFIX@/share/jupyter",
+             "/usr/local/share/jupyter",
+             "/usr/share/jupyter",
+         ]



Home | Main Index | Thread Index | Old Index