git: cc3163788765 - main - textproc/py-mkdocs-material-extensions: Update to 1.1.1
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Tue, 20 Dec 2022 13:48:47 UTC
The branch main has been updated by kai: URL: https://cgit.FreeBSD.org/ports/commit/?id=cc31637887657eaf02ecf49f2373e7635692ced2 commit cc31637887657eaf02ecf49f2373e7635692ced2 Author: Kai Knoblich <kai@FreeBSD.org> AuthorDate: 2022-12-20 13:43:26 +0000 Commit: Kai Knoblich <kai@FreeBSD.org> CommitDate: 2022-12-20 13:43:26 +0000 textproc/py-mkdocs-material-extensions: Update to 1.1.1 Changelogs since 1.0.3: https://github.com/facelessuser/mkdocs-material-extensions/releases/tag/1.1.1 https://github.com/facelessuser/mkdocs-material-extensions/releases/tag/1.1 --- textproc/py-mkdocs-material-extensions/Makefile | 12 +++++-- textproc/py-mkdocs-material-extensions/distinfo | 6 ++-- .../files/patch-setup.py | 39 ++++++++++++++++++++++ 3 files changed, 52 insertions(+), 5 deletions(-) diff --git a/textproc/py-mkdocs-material-extensions/Makefile b/textproc/py-mkdocs-material-extensions/Makefile index 008bc3318737..ce102519a6f7 100644 --- a/textproc/py-mkdocs-material-extensions/Makefile +++ b/textproc/py-mkdocs-material-extensions/Makefile @@ -1,8 +1,9 @@ PORTNAME= mkdocs-material-extensions -DISTVERSION= 1.0.3 +DISTVERSION= 1.1.1 CATEGORIES= textproc python MASTER_SITES= CHEESESHOP PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX} +DISTNAME= mkdocs_material_extensions-${DISTVERSION} MAINTAINER= kai@FreeBSD.org COMMENT= Markdown extension resources for MkDocs for Material @@ -11,9 +12,16 @@ WWW= https://github.com/facelessuser/mkdocs-material-extensions LICENSE= MIT LICENSE_FILE= ${WRKSRC}/LICENSE.md -USES= python:3.6+ +USES= python:3.7+ USE_PYTHON= autoplist distutils NO_ARCH= yes +# Avoid that pyproject.toml is read during setup otherwise build fails +post-extract: + @${MV} ${WRKSRC}/pyproject.toml ${WRKSRC}/pyproject.toml.dist + +post-patch: + @${REINPLACE_CMD} -e 's/%%DISTVERSION%%/${DISTVERSION}/' ${WRKSRC}/setup.py + .include <bsd.port.mk> diff --git a/textproc/py-mkdocs-material-extensions/distinfo b/textproc/py-mkdocs-material-extensions/distinfo index 1c24aa70d0ef..de482b6d3bd1 100644 --- a/textproc/py-mkdocs-material-extensions/distinfo +++ b/textproc/py-mkdocs-material-extensions/distinfo @@ -1,3 +1,3 @@ -TIMESTAMP = 1641745761 -SHA256 (mkdocs-material-extensions-1.0.3.tar.gz) = bfd24dfdef7b41c312ede42648f9eb83476ea168ec163b613f9abd12bbfddba2 -SIZE (mkdocs-material-extensions-1.0.3.tar.gz) = 11722 +TIMESTAMP = 1671533479 +SHA256 (mkdocs_material_extensions-1.1.1.tar.gz) = 9c003da71e2cc2493d910237448c672e00cefc800d3d6ae93d2fc69979e3bd93 +SIZE (mkdocs_material_extensions-1.1.1.tar.gz) = 11131 diff --git a/textproc/py-mkdocs-material-extensions/files/patch-setup.py b/textproc/py-mkdocs-material-extensions/files/patch-setup.py new file mode 100644 index 000000000000..5e5f58b78ef7 --- /dev/null +++ b/textproc/py-mkdocs-material-extensions/files/patch-setup.py @@ -0,0 +1,39 @@ +Generated via adding + +[tool.hatch.build.targets.sdist] +support-legacy = true + +to setup.py and then run "hatchling build". + +--- setup.py.orig 2022-12-20 11:05:40 UTC ++++ setup.py +@@ -0,0 +1,29 @@ ++# -*- coding: utf-8 -*- ++from setuptools import setup ++ ++setup( ++ name='mkdocs-material-extensions', ++ version='%%DISTVERSION%%', ++ description='Extension pack for Python Markdown and MkDocs Material.', ++ long_description="", ++ author_email='Isaac Muse <Isaac.Muse@gmail.com>', ++ classifiers=[ ++ 'Development Status :: 5 - Production/Stable', ++ 'Environment :: Console', ++ 'Intended Audience :: Developers', ++ 'License :: OSI Approved :: MIT License', ++ 'Operating System :: OS Independent', ++ 'Programming Language :: Python :: 3', ++ 'Programming Language :: Python :: 3.7', ++ 'Programming Language :: Python :: 3.8', ++ 'Programming Language :: Python :: 3.9', ++ 'Programming Language :: Python :: 3.10', ++ 'Topic :: Internet :: WWW/HTTP :: Dynamic Content', ++ 'Topic :: Software Development :: Libraries :: Python Modules', ++ 'Topic :: Text Processing :: Filters', ++ 'Topic :: Text Processing :: Markup :: HTML', ++ ], ++ packages=[ ++ 'materialx', ++ ], ++)