textproc/py-markups: Convert to USE_PYTHON=pep517

- Bump PORTREVISION for dependency and package change
This commit is contained in:
Po-Chuan Hsieh 2023-06-06 02:40:17 +08:00
parent f9098a1117
commit 96ce98e85d
No known key found for this signature in database
GPG key ID: 9A4BD10F002DD04B
3 changed files with 15 additions and 7 deletions

View file

@ -1,5 +1,6 @@
PORTNAME= markups
PORTVERSION= 4.0.0
PORTREVISION= 1
CATEGORIES= textproc python
MASTER_SITES= PYPI
PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
@ -12,6 +13,8 @@ WWW= https://github.com/retext-project/pymarkups
LICENSE= BSD3CLAUSE
LICENSE_FILE= ${WRKSRC}/LICENSE
BUILD_DEPENDS= ${PYTHON_PKGNAMEPREFIX}setuptools>=61.2:devel/py-setuptools@${PY_FLAVOR} \
${PYTHON_PKGNAMEPREFIX}wheel>=0:devel/py-wheel@${PY_FLAVOR}
RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}python-markdown-math>=0:textproc/py-python-markdown-math@${PY_FLAVOR}
TEST_DEPENDS= asciidoc>=0:textproc/asciidoc \
${PYTHON_PKGNAMEPREFIX}docutils>=0,1:textproc/py-docutils@${PY_FLAVOR} \
@ -23,11 +26,8 @@ TEST_DEPENDS= asciidoc>=0:textproc/asciidoc \
${PYTHON_PKGNAMEPREFIX}textile>=0:www/py-textile@${PY_FLAVOR}
USES= python:3.9+
USE_PYTHON= autoplist concurrent distutils unittest
USE_PYTHON= autoplist concurrent pep517 unittest
NO_ARCH= yes
post-patch:
@${CP} ${FILESDIR}/setup.py ${WRKSRC}/
.include <bsd.port.mk>

View file

@ -0,0 +1,11 @@
--- pyproject.toml.orig 2023-01-16 19:07:22 UTC
+++ pyproject.toml
@@ -3,7 +3,7 @@ requires = ["setuptools>=61.2"]
build-backend = "setuptools.build_meta"
[project]
-name = "Markups"
+name = "markups"
description = "A wrapper around various text markups"
readme = "README.rst"
authors = [{name = "Dmitry Shachnev", email = "mitya57@gmail.com"}]

View file

@ -1,3 +0,0 @@
from setuptools import setup
setup()