git: 77d8b715a37d - main - devel/py-nbformat: Update to 5.6.1
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Mon, 03 Oct 2022 17:16:22 UTC
The branch main has been updated by sunpoet:
URL: https://cgit.FreeBSD.org/ports/commit/?id=77d8b715a37d7a54106888c7875c37394df7d883
commit 77d8b715a37d7a54106888c7875c37394df7d883
Author: Po-Chuan Hsieh <sunpoet@FreeBSD.org>
AuthorDate: 2022-10-03 17:07:53 +0000
Commit: Po-Chuan Hsieh <sunpoet@FreeBSD.org>
CommitDate: 2022-10-03 17:11:08 +0000
devel/py-nbformat: Update to 5.6.1
Changes: https://github.com/jupyter/nbformat/blob/main/docs/changelog.rst
---
devel/py-nbformat/Makefile | 10 ++++-
devel/py-nbformat/distinfo | 6 +--
devel/py-nbformat/files/setup.py | 95 +++++++++++++++++++++++-----------------
3 files changed, 67 insertions(+), 44 deletions(-)
diff --git a/devel/py-nbformat/Makefile b/devel/py-nbformat/Makefile
index 54b6f43e0da9..00e2125f50fa 100644
--- a/devel/py-nbformat/Makefile
+++ b/devel/py-nbformat/Makefile
@@ -1,5 +1,5 @@
PORTNAME= nbformat
-PORTVERSION= 5.5.0
+PORTVERSION= 5.6.1
CATEGORIES= devel python
MASTER_SITES= CHEESESHOP
PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
@@ -24,7 +24,13 @@ USE_PYTHON= autoplist concurrent distutils pytest
NO_ARCH= yes
+.include <bsd.port.pre.mk>
+
+.if ${PYTHON_REL} < 30800
+RUN_DEPENDS+= ${PYTHON_PKGNAMEPREFIX}importlib-metadata>=3.6:devel/py-importlib-metadata@${PY_FLAVOR}
+.endif
+
post-patch:
@${SED} -e 's|%%PORTVERSION%%|${PORTVERSION}|' ${FILESDIR}/setup.py > ${WRKSRC}/setup.py
-.include <bsd.port.mk>
+.include <bsd.port.post.mk>
diff --git a/devel/py-nbformat/distinfo b/devel/py-nbformat/distinfo
index 29815b2d7de2..2cf679a1eff2 100644
--- a/devel/py-nbformat/distinfo
+++ b/devel/py-nbformat/distinfo
@@ -1,3 +1,3 @@
-TIMESTAMP = 1663673074
-SHA256 (nbformat-5.5.0.tar.gz) = 9ebe30e6c3b3e5b47d39ff0a3897a1acf523d2bfafcb4e2d04cdb70f8a66c507
-SIZE (nbformat-5.5.0.tar.gz) = 141188
+TIMESTAMP = 1664768204
+SHA256 (nbformat-5.6.1.tar.gz) = 146b5b9969391387c2089256359f5da7c718b1d8a88ba814320273ea410e646e
+SIZE (nbformat-5.6.1.tar.gz) = 136804
diff --git a/devel/py-nbformat/files/setup.py b/devel/py-nbformat/files/setup.py
index f11243529652..cd3b8fa09126 100644
--- a/devel/py-nbformat/files/setup.py
+++ b/devel/py-nbformat/files/setup.py
@@ -1,40 +1,57 @@
-#!/usr/bin/env python
-# setup.py generated by flit for tools that don't yet use PEP 517
+# -*- coding: utf-8 -*-
+from setuptools import setup
-from distutils.core import setup
-
-packages = \
-['nbformat',
- 'nbformat.corpus',
- 'nbformat.corpus.tests',
- 'nbformat.v1',
- 'nbformat.v2',
- 'nbformat.v3',
- 'nbformat.v4']
-
-package_data = \
-{'': ['*']}
-
-install_requires = \
-['fastjsonschema', 'jsonschema>=2.6', 'jupyter_core', 'traitlets>=5.1']
-
-extras_require = \
-{'test': ['check-manifest', 'testpath', 'pytest', 'pre-commit', 'pep440']}
-
-entry_points = \
-{'console_scripts': ['jupyter-trust = '
- 'nbformat.sign:TrustNotebookApp.launch_instance']}
-
-setup(name='nbformat',
- version='%%PORTVERSION%%',
- description='The Jupyter Notebook format',
- author=None,
- author_email='Jupyter Development Team <jupyter@googlegroups.com>',
- url=None,
- packages=packages,
- package_data=package_data,
- install_requires=install_requires,
- extras_require=extras_require,
- entry_points=entry_points,
- python_requires='>=3.7',
- )
+setup(
+ name='nbformat',
+ version='%%PORTVERSION%%',
+ description='The Jupyter Notebook format',
+ long_description='This package contains the base implementation of the Jupyter Notebook format,\nand Python APIs for working with notebooks.',
+ author_email='Jupyter Development Team <jupyter@googlegroups.com>',
+ classifiers=[
+ '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.7',
+ 'Programming Language :: Python :: 3.8',
+ 'Programming Language :: Python :: 3.9',
+ 'Programming Language :: Python :: 3.10',
+ ],
+ install_requires=[
+ 'fastjsonschema',
+ 'importlib-metadata>=3.6; python_version < "3.8"',
+ 'jsonschema>=2.6',
+ 'jupyter-core',
+ 'traitlets>=5.1',
+ ],
+ extras_require={
+ 'test': [
+ 'check-manifest',
+ 'pep440',
+ 'pre-commit',
+ 'pytest',
+ 'testpath',
+ ],
+ },
+ entry_points={
+ 'console_scripts': [
+ 'jupyter-trust = nbformat.sign:TrustNotebookApp.launch_instance',
+ ],
+ },
+ packages=[
+ 'nbformat',
+ 'nbformat.corpus',
+ 'nbformat.corpus.tests',
+ 'nbformat.v1',
+ 'nbformat.v2',
+ 'nbformat.v3',
+ 'nbformat.v4',
+ 'tests',
+ 'tests.v1',
+ 'tests.v2',
+ 'tests.v3',
+ 'tests.v4',
+ ],
+)