Re: git: 9bccc8a106f5 - main - math/py-networkx: Update to 3.2

From: Po-Chuan Hsieh <sunpoet_at_freebsd.org>
Date: Fri, 03 Nov 2023 16:42:07 UTC
Hello,

On Wed, Nov 1, 2023 at 3:34 AM Wen Heping <wen@freebsd.org> wrote:

> The branch main has been updated by wen:
>
> URL:
> https://cgit.FreeBSD.org/ports/commit/?id=9bccc8a106f5f2f618b5adc5eb62ea54edb3486a
>
> commit 9bccc8a106f5f2f618b5adc5eb62ea54edb3486a
> Author:     Wen Heping <wen@FreeBSD.org>
> AuthorDate: 2023-11-01 09:32:04 +0000
> Commit:     Wen Heping <wen@FreeBSD.org>
> CommitDate: 2023-11-01 09:33:09 +0000
>
>     math/py-networkx: Update to 3.2
>

FYI, it breaks pytype.
See
https://pkg-status.freebsd.org/beefy16/data/132amd64-default/9218fd8f40f2/logs/pytype-py39-2023.5.8.log

Regards,
sunpoet


> ---
>  math/py-networkx/Makefile             | 12 +++++----
>  math/py-networkx/distinfo             |  6 ++---
>  math/py-networkx/files/patch-setup.py | 47
> -----------------------------------
>  3 files changed, 10 insertions(+), 55 deletions(-)
>
> diff --git a/math/py-networkx/Makefile b/math/py-networkx/Makefile
> index f115a901f124..6dcb079b0ad0 100644
> --- a/math/py-networkx/Makefile
> +++ b/math/py-networkx/Makefile
> @@ -1,6 +1,5 @@
>  PORTNAME=      networkx
> -DISTVERSION=   3.1
> -PORTREVISION=  1
> +DISTVERSION=   3.2
>  PORTEPOCH=     1
>  CATEGORIES=    math python
>  MASTER_SITES=  PYPI
> @@ -12,15 +11,18 @@ WWW=                https://networkx.github.io/
>
>  LICENSE=       BSD3CLAUSE
>
> -RUN_DEPENDS:=  ${PYTHON_PKGNAMEPREFIX}decorator>=4.3.0:devel/py-decorator@
> ${PY_FLAVOR}
> +BUILD_DEPENDS= ${PYTHON_PKGNAMEPREFIX}setuptools>=0:devel/py-setuptools@${PY_FLAVOR}
> \
> +               ${PYTHON_PKGNAMEPREFIX}wheel>0:devel/py-wheel@${PY_FLAVOR}
> +#RUN_DEPENDS=  ${PYTHON_PKGNAMEPREFIX}decorator>=4.3.0:devel/py-decorator@
> ${PY_FLAVOR}
>
>  USES=          cpe python shebangfix
> -USE_PYTHON=    autoplist concurrent distutils pytest
> +USE_PYTHON=    autoplist concurrent pep517 pytest
> +
>  SHEBANG_GLOB=  *.py
>  NO_ARCH=       yes
>  CPE_VENDOR=    python
>
> -PLIST_SUB+=    PYTHON_MAJOR_VER=${PYTHON_MAJOR_VER}
> +#PLIST_SUB+=   PYTHON_MAJOR_VER=${PYTHON_MAJOR_VER}
>
>  OPTIONS_DEFINE=        EXAMPLES GDAL LXML PANDAS PYDOT YAML
>  OPTIONS_GROUP= MATRIX RENDER
> diff --git a/math/py-networkx/distinfo b/math/py-networkx/distinfo
> index b3d643572dca..0307c250a5ad 100644
> --- a/math/py-networkx/distinfo
> +++ b/math/py-networkx/distinfo
> @@ -1,3 +1,3 @@
> -TIMESTAMP = 1681555373
> -SHA256 (networkx-3.1.tar.gz) =
> de346335408f84de0eada6ff9fafafff9bcda11f0a0dfaa931133debb146ab61
> -SIZE (networkx-3.1.tar.gz) = 2021691
> +TIMESTAMP = 1698752274
> +SHA256 (networkx-3.2.tar.gz) =
> bda29edf392d9bfa5602034c767d28549214ec45f620081f0b74dc036a1fbbc1
> +SIZE (networkx-3.2.tar.gz) = 2072917
> diff --git a/math/py-networkx/files/patch-setup.py
> b/math/py-networkx/files/patch-setup.py
> deleted file mode 100644
> index 1d28af3e2856..000000000000
> --- a/math/py-networkx/files/patch-setup.py
> +++ /dev/null
> @@ -1,47 +0,0 @@
> ---- setup.py.orig      2023-02-20 13:03:51 UTC
> -+++ setup.py
> -@@ -92,36 +92,6 @@ packages = [
> -     "networkx.utils",
> - ]
> -
> --docdirbase = "share/doc/networkx-%s" % version
> --# add basic documentation
> --data = [(docdirbase, glob("*.txt"))]
> --# add examples
> --for d in [
> --    ".",
> --    "advanced",
> --    "algorithms",
> --    "basic",
> --    "3d_drawing",
> --    "drawing",
> --    "graph",
> --    "javascript",
> --    "jit",
> --    "pygraphviz",
> --    "subclass",
> --]:
> --    dd = os.path.join(docdirbase, "examples", d)
> --    pp = os.path.join("examples", d)
> --    data.append((dd, glob(os.path.join(pp, "*.txt"))))
> --    data.append((dd, glob(os.path.join(pp, "*.py"))))
> --    data.append((dd, glob(os.path.join(pp, "*.bz2"))))
> --    data.append((dd, glob(os.path.join(pp, "*.gz"))))
> --    data.append((dd, glob(os.path.join(pp, "*.mbox"))))
> --    data.append((dd, glob(os.path.join(pp, "*.edgelist"))))
> --# add js force examples
> --dd = os.path.join(docdirbase, "examples", "javascript/force")
> --pp = os.path.join("examples", "javascript/force")
> --data.append((dd, glob(os.path.join(pp, "*"))))
> --
> - # add the tests subpackage(s)
> - package_data = {
> -     "networkx": ["tests/*.py"],
> -@@ -185,7 +155,6 @@ if __name__ == "__main__":
> -         project_urls=project_urls,
> -         classifiers=classifiers,
> -         packages=packages,
> --        data_files=data,
> -         package_data=package_data,
> -         install_requires=install_requires,
> -         extras_require=extras_require,
>
>