git: 09031e4eed79 - main - databases/py-aiomysql: Update to 0.1.0

From: Po-Chuan Hsieh <sunpoet_at_FreeBSD.org>
Date: Fri, 13 May 2022 11:45:27 UTC
The branch main has been updated by sunpoet:

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

commit 09031e4eed79e048dc86793614b2823f6867df60
Author:     Po-Chuan Hsieh <sunpoet@FreeBSD.org>
AuthorDate: 2022-05-13 11:30:32 +0000
Commit:     Po-Chuan Hsieh <sunpoet@FreeBSD.org>
CommitDate: 2022-05-13 11:39:23 +0000

    databases/py-aiomysql: Update to 0.1.0
    
    Changes:        https://github.com/aio-libs/aiomysql/releases
---
 databases/py-aiomysql/Makefile             | 10 +++++++---
 databases/py-aiomysql/distinfo             |  6 +++---
 databases/py-aiomysql/files/patch-setup.py | 11 -----------
 databases/py-aiomysql/files/setup.py       |  3 +++
 4 files changed, 13 insertions(+), 17 deletions(-)

diff --git a/databases/py-aiomysql/Makefile b/databases/py-aiomysql/Makefile
index f11523e8c8f6..5efc81eb47a0 100644
--- a/databases/py-aiomysql/Makefile
+++ b/databases/py-aiomysql/Makefile
@@ -1,7 +1,7 @@
 # Created by: Po-Chuan Hsieh <sunpoet@FreeBSD.org>
 
 PORTNAME=	aiomysql
-PORTVERSION=	0.0.22
+PORTVERSION=	0.1.0
 CATEGORIES=	databases python
 MASTER_SITES=	CHEESESHOP
 PKGNAMEPREFIX=	${PYTHON_PKGNAMEPREFIX}
@@ -12,11 +12,15 @@ COMMENT=	MySQL driver for asyncio
 LICENSE=	MIT
 LICENSE_FILE=	${WRKSRC}/LICENSE
 
-RUN_DEPENDS=	${PYTHON_PKGNAMEPREFIX}pymysql>=0.9:databases/py-pymysql@${PY_FLAVOR}
+BUILD_DEPENDS=	${PYTHON_PKGNAMEPREFIX}setuptools_scm>=6.4:devel/py-setuptools_scm@${PY_FLAVOR}
+RUN_DEPENDS=	${PYTHON_PKGNAMEPREFIX}pymysql>=1.0:databases/py-pymysql@${PY_FLAVOR}
 
-USES=		python
+USES=		python:3.7+
 USE_PYTHON=	autoplist concurrent distutils
 
 NO_ARCH=	yes
 
+post-patch:
+	@${CP} ${FILESDIR}/setup.py ${WRKSRC}/
+
 .include <bsd.port.mk>
diff --git a/databases/py-aiomysql/distinfo b/databases/py-aiomysql/distinfo
index 891166e91b91..b08e198ff1dc 100644
--- a/databases/py-aiomysql/distinfo
+++ b/databases/py-aiomysql/distinfo
@@ -1,3 +1,3 @@
-TIMESTAMP = 1637072932
-SHA256 (aiomysql-0.0.22.tar.gz) = 9bcf8f26d22e550f75cabd635fa19a55c45f835eea008275960cb37acadd622a
-SIZE (aiomysql-0.0.22.tar.gz) = 38938
+TIMESTAMP = 1652122615
+SHA256 (aiomysql-0.1.0.tar.gz) = ef04453a3a3ecbd670f813e09d3944d15845b572b34caef3ff715c0140e1ae21
+SIZE (aiomysql-0.1.0.tar.gz) = 113954
diff --git a/databases/py-aiomysql/files/patch-setup.py b/databases/py-aiomysql/files/patch-setup.py
deleted file mode 100644
index 56904b48871d..000000000000
--- a/databases/py-aiomysql/files/patch-setup.py
+++ /dev/null
@@ -1,11 +0,0 @@
---- setup.py.orig	2020-11-26 16:45:41 UTC
-+++ setup.py
-@@ -4,7 +4,7 @@ import sys
- from setuptools import setup, find_packages
- 
- 
--install_requires = ['PyMySQL>=0.9,<=0.9.3']
-+install_requires = ['PyMySQL>=0.9']
- 
- PY_VER = sys.version_info
- 
diff --git a/databases/py-aiomysql/files/setup.py b/databases/py-aiomysql/files/setup.py
new file mode 100644
index 000000000000..606849326a40
--- /dev/null
+++ b/databases/py-aiomysql/files/setup.py
@@ -0,0 +1,3 @@
+from setuptools import setup
+
+setup()