git: ff6ed0ec6dec - main - astro/py-metar: Update to 2.0.1

Po-Chuan Hsieh <[email protected]>
Newsgroups gmane.os.freebsd.devel.cvs.ports
Message-ID <[email protected]>
The branch main has been updated by sunpoet:

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

commit ff6ed0ec6deca1ea4d66ed36662f764e5d181c30
Author:     Po-Chuan Hsieh <[email protected]>
AuthorDate: 2026-08-19 12:25:03 +0000
Commit:     Po-Chuan Hsieh <[email protected]>
CommitDate: 2026-08-19 12:55:24 +0000

    astro/py-metar: Update to 2.0.1
    
    Changes:        https://github.com/python-metar/python-metar/releases
---
 astro/py-metar/Makefile                   |  6 +++---
 astro/py-metar/distinfo                   |  6 +++---
 astro/py-metar/files/patch-pyproject.toml | 11 +++++++++++
 3 files changed, 17 insertions(+), 6 deletions(-)

diff --git a/astro/py-metar/Makefile b/astro/py-metar/Makefile
index ffa0a32c01d3..39bf67066c93 100644
--- a/astro/py-metar/Makefile
+++ b/astro/py-metar/Makefile
@@ -1,6 +1,5 @@
 PORTNAME=	metar
-PORTVERSION=	1.11.0
-PORTREVISION=	1
+PORTVERSION=	2.0.1
 CATEGORIES=	astro python
 MASTER_SITES=	PYPI
 PKGNAMEPREFIX=	${PYTHON_PKGNAMEPREFIX}
@@ -13,7 +12,8 @@ WWW=		https://github.com/python-metar/python-metar
 LICENSE=	BSD2CLAUSE
 LICENSE_FILE=	${WRKSRC}/LICENSE
 
-BUILD_DEPENDS=	${PYTHON_PKGNAMEPREFIX}setuptools>=0:devel/py-setuptools@${PY_FLAVOR} \
+BUILD_DEPENDS=	${PYTHON_PKGNAMEPREFIX}setuptools>=61:devel/py-setuptools@${PY_FLAVOR} \
+		${PYTHON_PKGNAMEPREFIX}setuptools-scm>=8:devel/py-setuptools-scm@${PY_FLAVOR} \
 		${PYTHON_PKGNAMEPREFIX}wheel>=0:devel/py-wheel@${PY_FLAVOR}
 
 USES=		python
diff --git a/astro/py-metar/distinfo b/astro/py-metar/distinfo
index 59c48f6e294d..c9000490983c 100644
--- a/astro/py-metar/distinfo
+++ b/astro/py-metar/distinfo
@@ -1,3 +1,3 @@
-TIMESTAMP = 1689398819
-SHA256 (metar-1.11.0.tar.gz) = 0e40e86eb03fdfafef71b14d74349e88e208bd4dc15e8734b3afcf129125378b
-SIZE (metar-1.11.0.tar.gz) = 213777
+TIMESTAMP = 1784005064
+SHA256 (metar-2.0.1.tar.gz) = 2f096e101aaf8e952bedf2d5c327a1589081e50fe42e33af72a006e56c47b913
+SIZE (metar-2.0.1.tar.gz) = 2570630
diff --git a/astro/py-metar/files/patch-pyproject.toml b/astro/py-metar/files/patch-pyproject.toml
new file mode 100644
index 000000000000..63d570e02191
--- /dev/null
+++ b/astro/py-metar/files/patch-pyproject.toml
@@ -0,0 +1,11 @@
+--- pyproject.toml.orig	2026-03-20 15:34:30 UTC
++++ pyproject.toml
+@@ -35,7 +35,7 @@ Repository = "https://github.com/python-metar/python-m
+ Repository = "https://github.com/python-metar/python-metar/"
+ 
+ [build-system]
+-requires = ["setuptools>=64", "setuptools_scm>=8"]
++requires = ["setuptools>=61", "setuptools_scm>=8"]
+ build-backend = "setuptools.build_meta"
+ 
+ [project.optional-dependencies]
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.