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,30 +1,36 @@ PORTNAME= nbformat -PORTVERSION= 5.5.0 +PORTVERSION= 5.6.1 CATEGORIES= devel python MASTER_SITES= CHEESESHOP PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX} MAINTAINER= python@FreeBSD.org COMMENT= Jupyter Notebook format WWW= https://jupyter.org/ LICENSE= BSD3CLAUSE LICENSE_FILE= ${WRKSRC}/COPYING.md RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}fastjsonschema>=0:devel/py-fastjsonschema@${PY_FLAVOR} \ ${PYTHON_PKGNAMEPREFIX}jsonschema>=2.6:devel/py-jsonschema@${PY_FLAVOR} \ ${PYTHON_PKGNAMEPREFIX}jupyter-core>=0:devel/py-jupyter-core@${PY_FLAVOR} \ ${PYTHON_PKGNAMEPREFIX}sqlite3>=0:databases/py-sqlite3@${PY_FLAVOR} \ ${PYTHON_PKGNAMEPREFIX}traitlets>=5.1:devel/py-traitlets@${PY_FLAVOR} TEST_DEPENDS= ${PYTHON_PKGNAMEPREFIX}pytest-cov>=0:devel/py-pytest-cov@${PY_FLAVOR} \ ${PYTHON_PKGNAMEPREFIX}testpath>=0:devel/py-testpath@${PY_FLAVOR} USES= python:3.7+ USE_PYTHON= autoplist concurrent distutils pytest NO_ARCH= yes +.include + +.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 +.include 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 ', - 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 ', + 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', + ], +)