git: e467c0682f58 - main - devel/py-watchfiles: Update to 0.15.0

From: Po-Chuan Hsieh <sunpoet_at_FreeBSD.org>
Date: Tue, 21 Jun 2022 16:37:24 UTC
The branch main has been updated by sunpoet:

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

commit e467c0682f5833c9ef4e267e678f7558ee5bdee7
Author:     Po-Chuan Hsieh <sunpoet@FreeBSD.org>
AuthorDate: 2022-06-21 16:32:57 +0000
Commit:     Po-Chuan Hsieh <sunpoet@FreeBSD.org>
CommitDate: 2022-06-21 16:36:22 +0000

    devel/py-watchfiles: Update to 0.15.0
    
    - Use USES=dos2unix
    
    Changes:        https://github.com/samuelcolvin/watchfiles/releases
---
 devel/py-watchfiles/Makefile       |  9 ++++++---
 devel/py-watchfiles/distinfo       |  6 +++---
 devel/py-watchfiles/files/setup.py | 15 +++++++++++++++
 3 files changed, 24 insertions(+), 6 deletions(-)

diff --git a/devel/py-watchfiles/Makefile b/devel/py-watchfiles/Makefile
index becc2c8c3177..cdb594ff2d45 100644
--- a/devel/py-watchfiles/Makefile
+++ b/devel/py-watchfiles/Makefile
@@ -1,7 +1,7 @@
 # Created by: Po-Chuan Hsieh <sunpoet@FreeBSD.org>
 
 PORTNAME=	watchfiles
-PORTVERSION=	0.14.1
+PORTVERSION=	0.15.0
 CATEGORIES=	devel python
 MASTER_SITES=	CHEESESHOP
 PKGNAMEPREFIX=	${PYTHON_PKGNAMEPREFIX}
@@ -14,10 +14,13 @@ LICENSE_FILE=	${WRKSRC}/LICENSE
 
 RUN_DEPENDS=	${PYTHON_PKGNAMEPREFIX}anyio>=3.0.0<4:devel/py-anyio@${PY_FLAVOR}
 
-USES=		python:3.7+
+USES=		dos2unix python:3.7+
 USE_PYTHON=	autoplist concurrent distutils
 
-MAKE_ENV=	SKIP_RUST_EXTENSION=1
 NO_ARCH=	yes
 
+post-patch:
+	@${RM} ${WRKSRC}/pyproject.toml
+	@${SED} -e 's|%%PORTVERSION%%|${PORTVERSION}|' ${FILESDIR}/setup.py > ${WRKSRC}/setup.py
+
 .include <bsd.port.mk>
diff --git a/devel/py-watchfiles/distinfo b/devel/py-watchfiles/distinfo
index 3eb501203a60..aa4108f65fdb 100644
--- a/devel/py-watchfiles/distinfo
+++ b/devel/py-watchfiles/distinfo
@@ -1,3 +1,3 @@
-TIMESTAMP = 1655208194
-SHA256 (watchfiles-0.14.1.tar.gz) = babcc3a3502879224e33ba5f25adfbf37a4f22898977c2d96d0ed3eee99eca8a
-SIZE (watchfiles-0.14.1.tar.gz) = 18700
+TIMESTAMP = 1655561158
+SHA256 (watchfiles-0.15.0.tar.gz) = cab62510f990d195986302aa6a48ed636d685b099927049120d520c96069fa49
+SIZE (watchfiles-0.15.0.tar.gz) = 36227
diff --git a/devel/py-watchfiles/files/setup.py b/devel/py-watchfiles/files/setup.py
new file mode 100644
index 000000000000..61020f271381
--- /dev/null
+++ b/devel/py-watchfiles/files/setup.py
@@ -0,0 +1,15 @@
+from setuptools import setup
+
+setup(
+    name = 'watchfiles',
+    version = '%%PORTVERSION%%',
+    description = 'Simple, modern and high performance file watching and code reload in python.',
+    author = None,
+    author_email = 'Samuel Colvin <s@muelcolvin.com>',
+    url = 'https://github.com/samuelcolvin/watchfiles',
+    packages = ['watchfiles'],
+    package_data = {'': ['*']},
+    install_requires = ['anyio >= 3.0.0, <4'],
+    entry_points = {'console_scripts': ['watchfiles = watchfiles.cli:cli']},
+    python_requires = '>= 3.7',
+)