Friday, August 06, 2021

Re: www/py-itsdangerous to 1.1.0

On 2021/08/02 15:45, Lucas Raab wrote:
> On Mon, Aug 02, 2021 at 10:31:59AM -0400, Kurt Mosiejczuk wrote:
> > On Sun, Aug 01, 2021 at 08:44:18PM -0500, Lucas Raab wrote:
> > > Hello,
> >
> > > Here's an initial update to www/py-itsdangerous to 1.1.0. This isn't
> > > the latest version, but flask, itsdangerous, werkzeug, click, et al
> > > all saw major version bumps this past spring. My thought was to
> > > take a conservative approach to these and start out with
> > > everything-but-the-latest to see how things go. Bad approach or
> > > other thoughts?
> >
> > > www/py-flask doesn't show any differences in failed tests than before
> > > and www/py-httpbin doesn't report any errors (and uses flask to boot).
> > > Couple quick tests with flask projects didn't reveal anything untoward,
> > > but anyone else report differently? Look good otherwise?
> >
> > > Changelog: https://itsdangerous.palletsprojects.com/en/2.0.x/changes/
> >
> > > General announcement of the latest version of the palletsprojects
> > > suite: https://palletsprojects.com/blog/flask-2-0-released/
> >
> > This doesn't apply to -current. It's based on the 6.9 release version
> > I'm guessing, or your ports tree is out of date.
> >
> > --Kurt
> >
> > > Thanks,
> > > Lucas
> >
> Ugh, I accidentally submitted an old patch I'd worked on previously,
> promptly forgot about, and then saved with the too-similar name of
> itsdangerous.diff vs py-itsdangerous.diff. sigh :)
>
> Correct one this time...

> diff 3e02295ba284f65e3d71d326edbe2cbad4e7b573 /usr/ports
> blob - 34802b254d64f2185d2f334a282b8860bc7a74e8
> file + www/py-itsdangerous/Makefile
> --- www/py-itsdangerous/Makefile
> +++ www/py-itsdangerous/Makefile
> @@ -2,8 +2,7 @@
>
> COMMENT = helpers to pass trusted data to untrusted environments
>
> -MODPY_EGG_VERSION = 0.24
> -REVISION = 9
> +MODPY_EGG_VERSION = 1.1.0
> DISTNAME = itsdangerous-${MODPY_EGG_VERSION}
> PKGNAME = py-${DISTNAME}
>
> @@ -15,17 +14,22 @@ HOMEPAGE = http://pythonhosted.org/itsdangerous/
> PERMIT_PACKAGE = Yes
>
> MODPY_PI = Yes
> +MODPY_PYTEST = Yes
>
> MODULES = lang/python
>
> MODPY_SETUPTOOLS = Yes
>
> -BUILD_DEPENDS = textproc/py-sphinx,python3>=4.0.2
> +BUILD_DEPENDS = textproc/py-sphinx,python3>=4.0.2 \
> + textproc/py-pallets-sphinx-themes

So it's dependent of py-pallets-sphinx-themes import

Missing ,python3 or ${MODPY_FLAVOR} on BUILD_DEPENDS for the sphinx
stuff. (I hardcoded py-sphinx,python3 when this was a py2+3 port,
as sphinx was going 3-only; that can now be changed to ${MODPY_FLAVOR}
as well).

With that fixed, ok when py-pallets-sphinx-themes is imported.


>
> +TEST_DEPENDS = devel/py-freezegun${MODPY_FLAVOR}
> +
> FLAVORS = python3
> FLAVOR = python3
>
> -MAKE_ENV += PYTHONPATH=${WRKSRC}
> +USE_GMAKE= Yes
> +MAKE_ENV += PYTHONPATH=${WRKSRC}/src
>
> post-build:
> @cd ${WRKSRC}/docs && ${SETENV} ${MAKE_ENV} ${MAKE_PROGRAM} html
> blob - 129b2407734a91cf2bdfd2613a74926a02b500fa
> file + www/py-itsdangerous/distinfo
> --- www/py-itsdangerous/distinfo
> +++ www/py-itsdangerous/distinfo
> @@ -1,2 +1,2 @@
> -SHA256 (itsdangerous-0.24.tar.gz) = y7P8+NPjPfhhcJ7K+J2eZinP8KIXvChI8bQc0w02BRk=
> -SIZE (itsdangerous-0.24.tar.gz) = 46541
> +SHA256 (itsdangerous-1.1.0.tar.gz) = MhsDPQfypBNtPsdi6snxahDM1g9TwMka+QIXrOe6Hxk=
> +SIZE (itsdangerous-1.1.0.tar.gz) = 53219
> blob - 67411cf9c17ce57c71a663eed38816e71ef40551
> file + www/py-itsdangerous/patches/patch-docs_conf_py
> --- www/py-itsdangerous/patches/patch-docs_conf_py
> +++ www/py-itsdangerous/patches/patch-docs_conf_py
> @@ -2,14 +2,15 @@ $OpenBSD: patch-docs_conf_py,v 1.1 2016/04/16 19:06:26
>
> Prevent build from calling out to the internet.
>
> ---- docs/conf.py.orig Fri Apr 15 21:29:34 2016
> -+++ docs/conf.py Fri Apr 15 21:29:43 2016
> -@@ -26,7 +26,7 @@ sys.path.append(os.path.abspath('..'))
> +Index: docs/conf.py
> +--- docs/conf.py.orig
> ++++ docs/conf.py
> +@@ -11,7 +11,7 @@ release, version = get_version("itsdangerous")
> + # General --------------------------------------------------------------
>
> - # Add any Sphinx extension module names here, as strings. They can be extensions
> - # coming with Sphinx (named 'sphinx.ext.*') or your custom ones.
> --extensions = ['sphinx.ext.autodoc', 'sphinx.ext.intersphinx']
> -+extensions = ['sphinx.ext.autodoc']
> + master_doc = "index"
> +-extensions = ["sphinx.ext.autodoc", "sphinx.ext.intersphinx", "pallets_sphinx_themes"]
> ++extensions = ["sphinx.ext.autodoc", "pallets_sphinx_themes"]
> + intersphinx_mapping = {"python": ("https://docs.python.org/3/", None)}
>
> - # Add any paths that contain templates here, relative to this directory.
> - templates_path = ['_templates']
> + # HTML -----------------------------------------------------------------
> blob - ca418bf64f46e8cfad13c2258e56cafa665cb3a7
> file + /dev/null
> --- www/py-itsdangerous/patches/patch-setup_py
> +++ /dev/null
> @@ -1,11 +0,0 @@
> -$OpenBSD: patch-setup_py,v 1.1 2015/09/23 11:26:05 jca Exp $
> ---- setup.py.orig Wed Sep 23 13:19:05 2015
> -+++ setup.py Wed Sep 23 13:19:45 2015
> -@@ -11,6 +11,7 @@ setup(
> - version='0.24',
> - url='http://github.com/mitsuhiko/itsdangerous',
> - py_modules=['itsdangerous'],
> -+ test_suite='tests',
> - description='Various helpers to pass trusted data to '
> - 'untrusted environments and back.',
> - zip_safe=False,
> blob - 669df6c1e3b9fe05d6f002cea5afa5b779e60b54
> file + www/py-itsdangerous/pkg/PLIST
> --- www/py-itsdangerous/pkg/PLIST
> +++ www/py-itsdangerous/pkg/PLIST
> @@ -1,35 +1,78 @@
> @comment $OpenBSD: PLIST,v 1.8 2021/07/06 16:55:34 daniel Exp $
> @pkgpath www/py-itsdangerous
> -lib/python${MODPY_VERSION}/site-packages/${MODPY_PYCACHE}itsdangerous.${MODPY_PYC_MAGIC_TAG}pyc
> +lib/python${MODPY_VERSION}/site-packages/itsdangerous/
> lib/python${MODPY_VERSION}/site-packages/itsdangerous-${MODPY_EGG_VERSION}-py${MODPY_VERSION}.egg-info/
> lib/python${MODPY_VERSION}/site-packages/itsdangerous-${MODPY_EGG_VERSION}-py${MODPY_VERSION}.egg-info/PKG-INFO
> lib/python${MODPY_VERSION}/site-packages/itsdangerous-${MODPY_EGG_VERSION}-py${MODPY_VERSION}.egg-info/SOURCES.txt
> lib/python${MODPY_VERSION}/site-packages/itsdangerous-${MODPY_EGG_VERSION}-py${MODPY_VERSION}.egg-info/dependency_links.txt
> -lib/python${MODPY_VERSION}/site-packages/itsdangerous-${MODPY_EGG_VERSION}-py${MODPY_VERSION}.egg-info/not-zip-safe
> lib/python${MODPY_VERSION}/site-packages/itsdangerous-${MODPY_EGG_VERSION}-py${MODPY_VERSION}.egg-info/top_level.txt
> -lib/python${MODPY_VERSION}/site-packages/itsdangerous.py
> +lib/python${MODPY_VERSION}/site-packages/itsdangerous/__init__.py
> +${MODPY_COMMENT}lib/python${MODPY_VERSION}/site-packages/itsdangerous/${MODPY_PYCACHE}/
> +lib/python${MODPY_VERSION}/site-packages/itsdangerous/${MODPY_PYCACHE}__init__.${MODPY_PYC_MAGIC_TAG}pyc
> +lib/python${MODPY_VERSION}/site-packages/itsdangerous/${MODPY_PYCACHE}_compat.${MODPY_PYC_MAGIC_TAG}pyc
> +lib/python${MODPY_VERSION}/site-packages/itsdangerous/${MODPY_PYCACHE}_json.${MODPY_PYC_MAGIC_TAG}pyc
> +lib/python${MODPY_VERSION}/site-packages/itsdangerous/${MODPY_PYCACHE}encoding.${MODPY_PYC_MAGIC_TAG}pyc
> +lib/python${MODPY_VERSION}/site-packages/itsdangerous/${MODPY_PYCACHE}exc.${MODPY_PYC_MAGIC_TAG}pyc
> +lib/python${MODPY_VERSION}/site-packages/itsdangerous/${MODPY_PYCACHE}jws.${MODPY_PYC_MAGIC_TAG}pyc
> +lib/python${MODPY_VERSION}/site-packages/itsdangerous/${MODPY_PYCACHE}serializer.${MODPY_PYC_MAGIC_TAG}pyc
> +lib/python${MODPY_VERSION}/site-packages/itsdangerous/${MODPY_PYCACHE}signer.${MODPY_PYC_MAGIC_TAG}pyc
> +lib/python${MODPY_VERSION}/site-packages/itsdangerous/${MODPY_PYCACHE}timed.${MODPY_PYC_MAGIC_TAG}pyc
> +lib/python${MODPY_VERSION}/site-packages/itsdangerous/${MODPY_PYCACHE}url_safe.${MODPY_PYC_MAGIC_TAG}pyc
> +lib/python${MODPY_VERSION}/site-packages/itsdangerous/_compat.py
> +lib/python${MODPY_VERSION}/site-packages/itsdangerous/_json.py
> +lib/python${MODPY_VERSION}/site-packages/itsdangerous/encoding.py
> +lib/python${MODPY_VERSION}/site-packages/itsdangerous/exc.py
> +lib/python${MODPY_VERSION}/site-packages/itsdangerous/jws.py
> +lib/python${MODPY_VERSION}/site-packages/itsdangerous/serializer.py
> +lib/python${MODPY_VERSION}/site-packages/itsdangerous/signer.py
> +lib/python${MODPY_VERSION}/site-packages/itsdangerous/timed.py
> +lib/python${MODPY_VERSION}/site-packages/itsdangerous/url_safe.py
> share/doc/${MODPY_PY_PREFIX}itsdangerous/
> +share/doc/${MODPY_PY_PREFIX}itsdangerous/404.html
> +share/doc/${MODPY_PY_PREFIX}itsdangerous/_images/
> +share/doc/${MODPY_PY_PREFIX}itsdangerous/_images/itsdangerous-logo.png
> share/doc/${MODPY_PY_PREFIX}itsdangerous/_sources/
> +share/doc/${MODPY_PY_PREFIX}itsdangerous/_sources/changes.rst.txt
> +share/doc/${MODPY_PY_PREFIX}itsdangerous/_sources/encoding.rst.txt
> +share/doc/${MODPY_PY_PREFIX}itsdangerous/_sources/exceptions.rst.txt
> share/doc/${MODPY_PY_PREFIX}itsdangerous/_sources/index.rst.txt
> +share/doc/${MODPY_PY_PREFIX}itsdangerous/_sources/jws.rst.txt
> +share/doc/${MODPY_PY_PREFIX}itsdangerous/_sources/license.rst.txt
> +share/doc/${MODPY_PY_PREFIX}itsdangerous/_sources/serializer.rst.txt
> +share/doc/${MODPY_PY_PREFIX}itsdangerous/_sources/signer.rst.txt
> +share/doc/${MODPY_PY_PREFIX}itsdangerous/_sources/timed.rst.txt
> +share/doc/${MODPY_PY_PREFIX}itsdangerous/_sources/url_safe.rst.txt
> share/doc/${MODPY_PY_PREFIX}itsdangerous/_static/
> share/doc/${MODPY_PY_PREFIX}itsdangerous/_static/basic.css
> share/doc/${MODPY_PY_PREFIX}itsdangerous/_static/doctools.js
> share/doc/${MODPY_PY_PREFIX}itsdangerous/_static/documentation_options.js
> share/doc/${MODPY_PY_PREFIX}itsdangerous/_static/file.png
> -share/doc/${MODPY_PY_PREFIX}itsdangerous/_static/flasky.css
> -share/doc/${MODPY_PY_PREFIX}itsdangerous/_static/itsdangerous.png
> +share/doc/${MODPY_PY_PREFIX}itsdangerous/_static/flask.css
> +share/doc/${MODPY_PY_PREFIX}itsdangerous/_static/itsdangerous-logo-sidebar.png
> +share/doc/${MODPY_PY_PREFIX}itsdangerous/_static/itsdangerous-logo.png
> share/doc/${MODPY_PY_PREFIX}itsdangerous/_static/jquery-3.5.1.js
> share/doc/${MODPY_PY_PREFIX}itsdangerous/_static/jquery.js
> share/doc/${MODPY_PY_PREFIX}itsdangerous/_static/language_data.js
> share/doc/${MODPY_PY_PREFIX}itsdangerous/_static/minus.png
> share/doc/${MODPY_PY_PREFIX}itsdangerous/_static/plus.png
> +share/doc/${MODPY_PY_PREFIX}itsdangerous/_static/pocoo.css
> share/doc/${MODPY_PY_PREFIX}itsdangerous/_static/pygments.css
> share/doc/${MODPY_PY_PREFIX}itsdangerous/_static/searchtools.js
> share/doc/${MODPY_PY_PREFIX}itsdangerous/_static/underscore-1.13.1.js
> share/doc/${MODPY_PY_PREFIX}itsdangerous/_static/underscore.js
> +share/doc/${MODPY_PY_PREFIX}itsdangerous/_static/version_warning_offset.js
> +share/doc/${MODPY_PY_PREFIX}itsdangerous/changes.html
> +share/doc/${MODPY_PY_PREFIX}itsdangerous/encoding.html
> +share/doc/${MODPY_PY_PREFIX}itsdangerous/exceptions.html
> share/doc/${MODPY_PY_PREFIX}itsdangerous/genindex.html
> share/doc/${MODPY_PY_PREFIX}itsdangerous/index.html
> +share/doc/${MODPY_PY_PREFIX}itsdangerous/jws.html
> +share/doc/${MODPY_PY_PREFIX}itsdangerous/license.html
> share/doc/${MODPY_PY_PREFIX}itsdangerous/objects.inv
> share/doc/${MODPY_PY_PREFIX}itsdangerous/py-modindex.html
> share/doc/${MODPY_PY_PREFIX}itsdangerous/search.html
> share/doc/${MODPY_PY_PREFIX}itsdangerous/searchindex.js
> +share/doc/${MODPY_PY_PREFIX}itsdangerous/serializer.html
> +share/doc/${MODPY_PY_PREFIX}itsdangerous/signer.html
> +share/doc/${MODPY_PY_PREFIX}itsdangerous/timed.html
> +share/doc/${MODPY_PY_PREFIX}itsdangerous/url_safe.html

No comments:

Post a Comment