Re: git: a06fe6e39ada - main - devel/py-jsonschema: Update version 3.2.0=>4.1.2
Date: Mon, 01 Nov 2021 14:49:25 UTC
On Sat, Oct 30, 2021 at 4:05 AM Muhammad Moinur Rahman <bofh@freebsd.org> wrote: > The branch main has been updated by bofh: > > URL: > https://cgit.FreeBSD.org/ports/commit/?id=a06fe6e39adaf76f178798640c57888705cbf40a > > commit a06fe6e39adaf76f178798640c57888705cbf40a > Author: Muhammad Moinur Rahman <bofh@FreeBSD.org> > AuthorDate: 2021-10-29 20:01:27 +0000 > Commit: Muhammad Moinur Rahman <bofh@FreeBSD.org> > CommitDate: 2021-10-29 20:05:33 +0000 > > devel/py-jsonschema: Update version 3.2.0=>4.1.2 > FYI, it breaks devel/py-warlock, science/py-asdf and www/py-quilt3. These 3 ports require jsonschema 3.* (Note the <4 in RUN_DEPENDS). I've committed the fix. devel/py-warlock/Makefile:RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}jsonschema>=0.7<4:devel/py-jsonschema@${PY_FLAVOR} \ science/py-asdf/Makefile: ${PYTHON_PKGNAMEPREFIX}jsonschema>=3.0.2<4:devel/py-jsonschema@${PY_FLAVOR} \ www/py-quilt3/Makefile: ${PYTHON_PKGNAMEPREFIX}jsonschema>=3.0<4:devel/py-jsonschema@${PY_FLAVOR} \ > - Add TEST framework for python > > Relnotes: https://github.com/Julian/jsonschema/releases/tag/v4.1.2 > --- > devel/py-jsonschema/Makefile | 9 ++++++--- > devel/py-jsonschema/distinfo | 6 +++--- > devel/py-jsonschema/files/patch-setup.py | 9 +++++++++ > 3 files changed, 18 insertions(+), 6 deletions(-) > > diff --git a/devel/py-jsonschema/Makefile b/devel/py-jsonschema/Makefile > index 9f8c1869f66d..a6ea659a7c14 100644 > --- a/devel/py-jsonschema/Makefile > +++ b/devel/py-jsonschema/Makefile > @@ -1,7 +1,7 @@ > # Created by: Muhammad Moinur Rahman <bofh@FreeBSD.org> > > PORTNAME= jsonschema > -PORTVERSION= 3.2.0 > +PORTVERSION= 4.1.2 > CATEGORIES= devel python > MASTER_SITES= CHEESESHOP > PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX} > @@ -10,16 +10,19 @@ MAINTAINER= bofh@FreeBSD.org > COMMENT= JSON Schema validation for Python > > LICENSE= MIT > +LICENSE_FILE= ${WRKSRC}/COPYING > > -BUILD_DEPENDS= ${PYTHON_PKGNAMEPREFIX}vcversioner>0:devel/py-vcversioner@${PY_FLAVOR} > \ > - > ${PYTHON_PKGNAMEPREFIX}setuptools_scm>=1.7:devel/py-setuptools_scm@ > ${PY_FLAVOR} > RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}attrs>=17.4.0:devel/py-attrs@${PY_FLAVOR} > \ > > ${PYTHON_PKGNAMEPREFIX}importlib-metadata>=0:devel/py-importlib-metadata@${PY_FLAVOR} > \ > > ${PYTHON_PKGNAMEPREFIX}pyrsistent>=0.14.0:devel/py-pyrsistent@${PY_FLAVOR} > +TEST_DEPENDS= ${PYTHON_PKGNAMEPREFIX}tox>0:devel/py-tox@${PY_FLAVOR} > > USES= python:3.6+ > USE_PYTHON= autoplist concurrent distutils > > NO_ARCH= yes > > +do-test: > + cd ${TEST_WRKSRC} && ${SETENV} ${TEST_ENV} ${PYTHON_CMD} -m tox > + > .include <bsd.port.mk> > diff --git a/devel/py-jsonschema/distinfo b/devel/py-jsonschema/distinfo > index 431625a78d1a..0b918c318ebb 100644 > --- a/devel/py-jsonschema/distinfo > +++ b/devel/py-jsonschema/distinfo > @@ -1,3 +1,3 @@ > -TIMESTAMP = 1574528023 > -SHA256 (jsonschema-3.2.0.tar.gz) = > c8a85b28d377cc7737e46e2d9f2b4f44ee3c0e1deac6bf46ddefc7187d30797a > -SIZE (jsonschema-3.2.0.tar.gz) = 167226 > +TIMESTAMP = 1635534166 > +SHA256 (jsonschema-4.1.2.tar.gz) = > 5c1a282ee6b74235057421fd0f766ac5f2972f77440927f6471c9e8493632fac > +SIZE (jsonschema-4.1.2.tar.gz) = 310016 > diff --git a/devel/py-jsonschema/files/patch-setup.py > b/devel/py-jsonschema/files/patch-setup.py > new file mode 100644 > index 000000000000..227f59f8fe78 > --- /dev/null > +++ b/devel/py-jsonschema/files/patch-setup.py > @@ -0,0 +1,9 @@ > +--- setup.py.orig 2021-10-29 19:19:35 UTC > ++++ setup.py > +@@ -0,0 +1,6 @@ > ++#!/usr/bin/env python > ++ > ++import setuptools > ++ > ++if __name__ == "__main__": > ++ setuptools.setup() >