git: c133ff175829 - main - devel/py-platformdirs: Update to 2.6.2
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Mon, 30 Jan 2023 13:09:28 UTC
The branch main has been updated by sunpoet:
URL: https://cgit.FreeBSD.org/ports/commit/?id=c133ff175829a6ee254812a2fd0b7e33758bf609
commit c133ff175829a6ee254812a2fd0b7e33758bf609
Author: Po-Chuan Hsieh <sunpoet@FreeBSD.org>
AuthorDate: 2023-01-30 12:31:51 +0000
Commit: Po-Chuan Hsieh <sunpoet@FreeBSD.org>
CommitDate: 2023-01-30 12:59:56 +0000
devel/py-platformdirs: Update to 2.6.2
Changes: https://github.com/platformdirs/platformdirs/releases
---
devel/py-platformdirs/Makefile | 10 ++++++++--
devel/py-platformdirs/distinfo | 6 +++---
devel/py-platformdirs/files/setup.py | 12 +++++++-----
3 files changed, 18 insertions(+), 10 deletions(-)
diff --git a/devel/py-platformdirs/Makefile b/devel/py-platformdirs/Makefile
index eb5acb4eaa6f..69177d9a4b97 100644
--- a/devel/py-platformdirs/Makefile
+++ b/devel/py-platformdirs/Makefile
@@ -1,5 +1,5 @@
PORTNAME= platformdirs
-PORTVERSION= 2.5.4
+PORTVERSION= 2.6.2
CATEGORIES= devel python
MASTER_SITES= PYPI
PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
@@ -16,8 +16,14 @@ USE_PYTHON= autoplist concurrent distutils
NO_ARCH= yes
+.include <bsd.port.pre.mk>
+
+.if ${PYTHON_REL} < 30800
+RUN_DEPENDS+= ${PYTHON_PKGNAMEPREFIX}typing-extensions>=4.4:devel/py-typing-extensions@${PY_FLAVOR}
+.endif
+
post-patch:
@${RM} ${WRKSRC}/pyproject.toml
@${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-platformdirs/distinfo b/devel/py-platformdirs/distinfo
index 6f98a5b836fe..d7d0699e2115 100644
--- a/devel/py-platformdirs/distinfo
+++ b/devel/py-platformdirs/distinfo
@@ -1,3 +1,3 @@
-TIMESTAMP = 1669057815
-SHA256 (platformdirs-2.5.4.tar.gz) = 1006647646d80f16130f052404c6b901e80ee4ed6bef6792e1f238a8969106f7
-SIZE (platformdirs-2.5.4.tar.gz) = 20843
+TIMESTAMP = 1674589858
+SHA256 (platformdirs-2.6.2.tar.gz) = e1fea1fe471b9ff8332e229df3cb7de4f53eeea4998d3b6bfff542115e998bd2
+SIZE (platformdirs-2.6.2.tar.gz) = 14260
diff --git a/devel/py-platformdirs/files/setup.py b/devel/py-platformdirs/files/setup.py
index 8b4acb24c1e3..f6f33e2d931e 100644
--- a/devel/py-platformdirs/files/setup.py
+++ b/devel/py-platformdirs/files/setup.py
@@ -24,15 +24,19 @@ setup(
'Programming Language :: Python :: Implementation :: PyPy',
'Topic :: Software Development :: Libraries :: Python Modules',
],
+ install_requires=[
+ 'typing-extensions>=4.4; python_version < "3.8"',
+ ],
extras_require={
'docs': [
- 'furo>=2022.9.29',
+ 'furo>=2022.12.7',
'proselint>=0.13',
- 'sphinx-autodoc-typehints>=1.19.4',
+ 'sphinx-autodoc-typehints>=1.19.5',
'sphinx>=5.3',
],
'test': [
'appdirs==1.4.4',
+ 'covdefaults>=2.2.2',
'pytest-cov>=4',
'pytest-mock>=3.10',
'pytest>=7.2',
@@ -41,7 +45,5 @@ setup(
packages=[
'platformdirs',
],
- package_dir={
- '': 'src'
- },
+ package_dir={'': 'src'},
)