Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 13 May 2024 14:21:47 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: 8341a0bc5366 - main - net/py-pysocks: Convert to USE_PYTHON=pep517
Message-ID:  <202405131421.44DELlbJ005902@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=8341a0bc53663316800f571ae465f031b1a5ac46

commit 8341a0bc53663316800f571ae465f031b1a5ac46
Author:     Po-Chuan Hsieh <sunpoet@FreeBSD.org>
AuthorDate: 2024-05-13 14:04:52 +0000
Commit:     Po-Chuan Hsieh <sunpoet@FreeBSD.org>
CommitDate: 2024-05-13 14:04:52 +0000

    net/py-pysocks: Convert to USE_PYTHON=pep517
    
    - Bump PORTREVISION for package change
---
 net/py-pysocks/Makefile             | 6 +++++-
 net/py-pysocks/files/patch-setup.py | 9 +++++++++
 2 files changed, 14 insertions(+), 1 deletion(-)

diff --git a/net/py-pysocks/Makefile b/net/py-pysocks/Makefile
index 094b0a4559e3..c5da0ce840ad 100644
--- a/net/py-pysocks/Makefile
+++ b/net/py-pysocks/Makefile
@@ -1,5 +1,6 @@
 PORTNAME=	pysocks
 PORTVERSION=	1.7.1
+PORTREVISION=	1
 CATEGORIES=	net python
 MASTER_SITES=	PYPI
 PKGNAMEPREFIX=	${PYTHON_PKGNAMEPREFIX}
@@ -12,8 +13,11 @@ WWW=		https://github.com/Anorov/PySocks
 LICENSE=	BSD3CLAUSE
 LICENSE_FILE=	${WRKSRC}/LICENSE
 
+BUILD_DEPENDS=	${PYTHON_PKGNAMEPREFIX}setuptools>=0:devel/py-setuptools@${PY_FLAVOR} \
+		${PYTHON_PKGNAMEPREFIX}wheel>=0:devel/py-wheel@${PY_FLAVOR}
+
 USES=		python
-USE_PYTHON=	autoplist concurrent distutils
+USE_PYTHON=	autoplist concurrent pep517
 
 NO_ARCH=	yes
 
diff --git a/net/py-pysocks/files/patch-setup.py b/net/py-pysocks/files/patch-setup.py
index afaa6c8319fc..cb0937116855 100644
--- a/net/py-pysocks/files/patch-setup.py
+++ b/net/py-pysocks/files/patch-setup.py
@@ -1,5 +1,14 @@
 --- setup.py.orig	2019-05-11 09:18:35 UTC
 +++ setup.py
+@@ -19,7 +19,7 @@ setup(
+     VERSION = re.compile(r'.*__version__ = "(.*?)"', re.S).match(f.read()).group(1)
+ 
+ setup(
+-    name="PySocks",
++    name="pysocks",
+     version=VERSION,
+     description="A Python SOCKS client module. See https://github.com/Anorov/PySocks for more information.",
+     long_description=long_description,
 @@ -32,12 +32,12 @@ setup(
      py_modules=["socks", "sockshandler"],
      install_requires=requirements,



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