pkgsrc-WIP-changes archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

py-mdformat: Fix PLIST and incorrect wheel use



Module Name:	pkgsrc-wip
Committed By:	Leonardo Taccari <leot%NetBSD.org@localhost>
Pushed By:	leot
Date:		Thu Jan 11 15:46:41 2024 +0100
Changeset:	e2b28310729df38b579522f45fa6e3b28828a34e

Modified Files:
	py-mdformat/Makefile
	py-mdformat/PLIST

Log Message:
py-mdformat: Fix PLIST and incorrect wheel use

Add needed TOOL_DEPENDS for most wheel.mk users.
Kudos to <gutteridge> for documenting that!

py-tomli is needed only for Python < 3.11, mark that accordingly!

Also update PLIST with actual reality... I have no idea why this is
different than the past... maybe it depends on Python version? (I have
only tested with 3.11 right now)

To see a diff of this commit:
https://wip.pkgsrc.org/cgi-bin/gitweb.cgi?p=pkgsrc-wip.git;a=commitdiff;h=e2b28310729df38b579522f45fa6e3b28828a34e

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

diffstat:
 py-mdformat/Makefile |  7 ++++++-
 py-mdformat/PLIST    | 19 ++++++++++++++++---
 2 files changed, 22 insertions(+), 4 deletions(-)

diffs:
diff --git a/py-mdformat/Makefile b/py-mdformat/Makefile
index 79f5153e41..e092700481 100644
--- a/py-mdformat/Makefile
+++ b/py-mdformat/Makefile
@@ -10,7 +10,8 @@ HOMEPAGE=	https://mdformat.rtfd.io/
 COMMENT=	CommonMark compliant Markdown formatter
 LICENSE=	mit
 
-DEPENDS+=	${PYPKGPREFIX}-tomli>=1.1.0:../../textproc/py-tomli
+TOOL_DEPENDS+=	${PYPKGPREFIX}-setuptools-[0-9]*:../../devel/py-setuptools
+TOOL_DEPENDS+=	${PYPKGPREFIX}-wheel-[0-9]*:../../devel/py-wheel
 DEPENDS+=	${PYPKGPREFIX}-markdown-it-py>=1.0.0:../../textproc/py-markdown-it-py
 
 PYTHON_VERSIONS_INCOMPATIBLE=	27
@@ -21,6 +22,10 @@ PYTHON_VERSIONS_INCOMPATIBLE=	27
 DEPENDS+=	${PYPKGPREFIX}-importlib-metadata>=3.6.0:../../devel/py-importlib-metadata
 .endif
 
+.if ${PYTHON_VERSION} < 311
+DEPENDS+=	${PYPKGPREFIX}-tomli>=1.1.0:../../textproc/py-tomli
+.endif
+
 USE_LANGUAGES=	# none
 
 post-install:
diff --git a/py-mdformat/PLIST b/py-mdformat/PLIST
index dcf61207db..eedeae4f46 100644
--- a/py-mdformat/PLIST
+++ b/py-mdformat/PLIST
@@ -1,44 +1,57 @@
 @comment $NetBSD$
 bin/mdformat${PYVERSSUFFIX}
-${PYSITELIB}/${WHEEL_INFODIR}/INSTALLER
 ${PYSITELIB}/${WHEEL_INFODIR}/LICENSE
 ${PYSITELIB}/${WHEEL_INFODIR}/METADATA
 ${PYSITELIB}/${WHEEL_INFODIR}/RECORD
-${PYSITELIB}/${WHEEL_INFODIR}/REQUESTED
 ${PYSITELIB}/${WHEEL_INFODIR}/WHEEL
-${PYSITELIB}/${WHEEL_INFODIR}/direct_url.json
 ${PYSITELIB}/${WHEEL_INFODIR}/entry_points.txt
 ${PYSITELIB}/${WHEEL_INFODIR}/top_level.txt
 ${PYSITELIB}/mdformat/__init__.py
 ${PYSITELIB}/mdformat/__init__.pyc
+${PYSITELIB}/mdformat/__init__.pyo
 ${PYSITELIB}/mdformat/__main__.py
 ${PYSITELIB}/mdformat/__main__.pyc
+${PYSITELIB}/mdformat/__main__.pyo
 ${PYSITELIB}/mdformat/_api.py
 ${PYSITELIB}/mdformat/_api.pyc
+${PYSITELIB}/mdformat/_api.pyo
 ${PYSITELIB}/mdformat/_cli.py
 ${PYSITELIB}/mdformat/_cli.pyc
+${PYSITELIB}/mdformat/_cli.pyo
 ${PYSITELIB}/mdformat/_compat.py
 ${PYSITELIB}/mdformat/_compat.pyc
+${PYSITELIB}/mdformat/_compat.pyo
 ${PYSITELIB}/mdformat/_conf.py
 ${PYSITELIB}/mdformat/_conf.pyc
+${PYSITELIB}/mdformat/_conf.pyo
 ${PYSITELIB}/mdformat/_util.py
 ${PYSITELIB}/mdformat/_util.pyc
+${PYSITELIB}/mdformat/_util.pyo
 ${PYSITELIB}/mdformat/codepoints/__init__.py
 ${PYSITELIB}/mdformat/codepoints/__init__.pyc
+${PYSITELIB}/mdformat/codepoints/__init__.pyo
 ${PYSITELIB}/mdformat/codepoints/_unicode_punctuation.py
 ${PYSITELIB}/mdformat/codepoints/_unicode_punctuation.pyc
+${PYSITELIB}/mdformat/codepoints/_unicode_punctuation.pyo
 ${PYSITELIB}/mdformat/codepoints/_unicode_whitespace.py
 ${PYSITELIB}/mdformat/codepoints/_unicode_whitespace.pyc
+${PYSITELIB}/mdformat/codepoints/_unicode_whitespace.pyo
 ${PYSITELIB}/mdformat/plugins.py
 ${PYSITELIB}/mdformat/plugins.pyc
+${PYSITELIB}/mdformat/plugins.pyo
 ${PYSITELIB}/mdformat/py.typed
 ${PYSITELIB}/mdformat/renderer/__init__.py
 ${PYSITELIB}/mdformat/renderer/__init__.pyc
+${PYSITELIB}/mdformat/renderer/__init__.pyo
 ${PYSITELIB}/mdformat/renderer/_context.py
 ${PYSITELIB}/mdformat/renderer/_context.pyc
+${PYSITELIB}/mdformat/renderer/_context.pyo
 ${PYSITELIB}/mdformat/renderer/_tree.py
 ${PYSITELIB}/mdformat/renderer/_tree.pyc
+${PYSITELIB}/mdformat/renderer/_tree.pyo
 ${PYSITELIB}/mdformat/renderer/_util.py
 ${PYSITELIB}/mdformat/renderer/_util.pyc
+${PYSITELIB}/mdformat/renderer/_util.pyo
 ${PYSITELIB}/mdformat/renderer/typing.py
 ${PYSITELIB}/mdformat/renderer/typing.pyc
+${PYSITELIB}/mdformat/renderer/typing.pyo


Home | Main Index | Thread Index | Old Index