Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 21 Mar 2023 19:30:09 GMT
From:      Po-Chuan Hsieh <sunpoet@FreeBSD.org>
To:        ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org
Subject:   git: f29d64d8a46b - main - textproc/py-hashids: Convert to USE_PYTHON=pep517
Message-ID:  <202303211930.32LJU9Fv038039@gitrepo.freebsd.org>

next in thread | raw e-mail | index | archive | help
The branch main has been updated by sunpoet:

URL: https://cgit.FreeBSD.org/ports/commit/?id=f29d64d8a46ba1d0bab465d39d39519f0c641317

commit f29d64d8a46ba1d0bab465d39d39519f0c641317
Author:     Po-Chuan Hsieh <sunpoet@FreeBSD.org>
AuthorDate: 2023-03-21 18:48:12 +0000
Commit:     Po-Chuan Hsieh <sunpoet@FreeBSD.org>
CommitDate: 2023-03-21 19:21:19 +0000

    textproc/py-hashids: Convert to USE_PYTHON=pep517
    
    - Bump PORTREVISION for dependency and package change
---
 textproc/py-hashids/Makefile       |  8 ++++----
 textproc/py-hashids/files/setup.py | 18 ------------------
 2 files changed, 4 insertions(+), 22 deletions(-)

diff --git a/textproc/py-hashids/Makefile b/textproc/py-hashids/Makefile
index 9abb834e15e6..96029bf521d8 100644
--- a/textproc/py-hashids/Makefile
+++ b/textproc/py-hashids/Makefile
@@ -1,5 +1,6 @@
 PORTNAME=	hashids
 PORTVERSION=	1.3.1
+PORTREVISION=	1
 CATEGORIES=	textproc python
 MASTER_SITES=	PYPI
 PKGNAMEPREFIX=	${PYTHON_PKGNAMEPREFIX}
@@ -11,12 +12,11 @@ WWW=		https://github.com/davidaurelio/hashids-python
 LICENSE=	MIT
 LICENSE_FILE=	${WRKSRC}/LICENSE
 
+BUILD_DEPENDS=	${PYTHON_PKGNAMEPREFIX}flit-core>=2<4:devel/py-flit-core@${PY_FLAVOR}
+
 USES=		python:3.5+
-USE_PYTHON=	autoplist concurrent distutils pytest
+USE_PYTHON=	autoplist concurrent pep517 pytest
 
 NO_ARCH=	yes
 
-post-patch:
-	@${SED} -e 's|%%PORTVERSION%%|${PORTVERSION}|' ${FILESDIR}/setup.py > ${WRKSRC}/setup.py
-
 .include <bsd.port.mk>
diff --git a/textproc/py-hashids/files/setup.py b/textproc/py-hashids/files/setup.py
deleted file mode 100644
index ede9026d3886..000000000000
--- a/textproc/py-hashids/files/setup.py
+++ /dev/null
@@ -1,18 +0,0 @@
-#!/usr/bin/env python
-# setup.py generated by flit for tools that don't yet use PEP 517
-
-from distutils.core import setup
-
-extras_require = \
-{'test': ['pytest >=2.1.0']}
-
-setup(name='hashids',
-      version='%%PORTVERSION%%',
-      description='Implements the hashids algorithm in python. For more information, visit http://hashids.org/',
-      author='David Aurelio',
-      author_email='dev@david-aurelio.com',
-      url='https://hashids.org/python/',
-      py_modules=['hashids'],
-      extras_require=extras_require,
-      python_requires='>=2.7',
-     )



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202303211930.32LJU9Fv038039>