git: 1689d0ec90a5 - main - devel/py-flit-scm: Update to 1.7.0

From: Po-Chuan Hsieh <sunpoet_at_FreeBSD.org>
Date: Mon, 11 Jul 2022 13:53:15 UTC
The branch main has been updated by sunpoet:

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

commit 1689d0ec90a54fc77994897a839639758df17ad4
Author:     Po-Chuan Hsieh <sunpoet@FreeBSD.org>
AuthorDate: 2022-07-11 13:49:40 +0000
Commit:     Po-Chuan Hsieh <sunpoet@FreeBSD.org>
CommitDate: 2022-07-11 13:49:40 +0000

    devel/py-flit-scm: Update to 1.7.0
    
    Changes:        https://gitlab.com/WillDaSilva/flit_scm/-/releases
---
 devel/py-flit-scm/Makefile       | 13 +++++++++----
 devel/py-flit-scm/distinfo       |  6 +++---
 devel/py-flit-scm/files/setup.py |  6 +++++-
 3 files changed, 17 insertions(+), 8 deletions(-)

diff --git a/devel/py-flit-scm/Makefile b/devel/py-flit-scm/Makefile
index b2a380e4684f..334fc2f19397 100644
--- a/devel/py-flit-scm/Makefile
+++ b/devel/py-flit-scm/Makefile
@@ -1,7 +1,7 @@
 # Created by: Po-Chuan Hsieh <sunpoet@FreeBSD.org>
 
 PORTNAME=	flit-scm
-PORTVERSION=	1.6.2
+PORTVERSION=	1.7.0
 CATEGORIES=	devel python
 MASTER_SITES=	CHEESESHOP
 PKGNAMEPREFIX=	${PYTHON_PKGNAMEPREFIX}
@@ -14,15 +14,20 @@ LICENSE=	MIT
 LICENSE_FILE=	${WRKSRC}/LICENSE
 
 RUN_DEPENDS=	${PYTHON_PKGNAMEPREFIX}flit-core>=3.5<4:devel/py-flit-core@${PY_FLAVOR} \
-		${PYTHON_PKGNAMEPREFIX}setuptools_scm>=6.4<7:devel/py-setuptools_scm@${PY_FLAVOR} \
-		${PYTHON_PKGNAMEPREFIX}tomli>=0:textproc/py-tomli@${PY_FLAVOR}
+		${PYTHON_PKGNAMEPREFIX}setuptools_scm>=6.4:devel/py-setuptools_scm@${PY_FLAVOR}
 
 USES=		python:3.6+
 USE_PYTHON=	autoplist concurrent distutils
 
 NO_ARCH=	yes
 
+.include <bsd.port.pre.mk>
+
+.if ${PYTHON_REL} < 31100
+RUN_DEPENDS+=	${PYTHON_PKGNAMEPREFIX}tomli>=0:textproc/py-tomli@${PY_FLAVOR}
+.endif
+
 post-patch:
 	@${SED} -e 's|%%PORTVERSION%%|${PORTVERSION}|' ${FILESDIR}/setup.py > ${WRKSRC}/setup.py
 
-.include <bsd.port.mk>
+.include <bsd.port.post.mk>
diff --git a/devel/py-flit-scm/distinfo b/devel/py-flit-scm/distinfo
index b6ad8b2a9663..3288d943e923 100644
--- a/devel/py-flit-scm/distinfo
+++ b/devel/py-flit-scm/distinfo
@@ -1,3 +1,3 @@
-TIMESTAMP = 1655398644
-SHA256 (flit_scm-1.6.2.tar.gz) = 6feb1334be1f31616ffb6d54485fdcd2d86796db304e126a137510139e90745c
-SIZE (flit_scm-1.6.2.tar.gz) = 2364
+TIMESTAMP = 1657292492
+SHA256 (flit_scm-1.7.0.tar.gz) = 961bd6fb24f31bba75333c234145fff88e6de0a90fc0f7e5e7c79deca69f6bb2
+SIZE (flit_scm-1.7.0.tar.gz) = 2405
diff --git a/devel/py-flit-scm/files/setup.py b/devel/py-flit-scm/files/setup.py
index 6c55fe80a3b4..482fbc9e8ec9 100644
--- a/devel/py-flit-scm/files/setup.py
+++ b/devel/py-flit-scm/files/setup.py
@@ -10,7 +10,10 @@ package_data = \
 {'': ['*']}
 
 install_requires = \
-['flit-core~=3.5', 'setuptools_scm~=6.4', 'tomli']
+['flit-core~=3.5', 'setuptools_scm>=6.4']
+
+extras_require = \
+{":python_version < '3.11'": ['tomli']}
 
 setup(name='flit_scm',
       version='%%PORTVERSION%%',
@@ -21,5 +24,6 @@ setup(name='flit_scm',
       packages=packages,
       package_data=package_data,
       install_requires=install_requires,
+      extras_require=extras_require,
       python_requires='>=3.6',
      )