Skip to content

Commit

Permalink
devel/py-pint: Update to 0.22
Browse files Browse the repository at this point in the history
- Update WWW
- Convert to USE_PYTHON=pep517

Changes:	https://github.com/hgrecco/pint/blob/master/CHANGES
  • Loading branch information
sunpoet committed Jun 5, 2023
1 parent e0c79cc commit 66bd7e6
Show file tree
Hide file tree
Showing 3 changed files with 21 additions and 10 deletions.
16 changes: 9 additions & 7 deletions devel/py-pint/Makefile
@@ -1,26 +1,28 @@
PORTNAME= pint
PORTVERSION= 0.20.1
PORTVERSION= 0.22
CATEGORIES= devel python
MASTER_SITES= PYPI
PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
DISTNAME= Pint-${PORTVERSION}

MAINTAINER= sunpoet@FreeBSD.org
COMMENT= Physical quantities module
WWW= https://github.com/hgrecco/pint
WWW= https://pint.readthedocs.io/en/stable/ \
https://github.com/hgrecco/pint

LICENSE= BSD3CLAUSE
LICENSE_FILE= ${WRKSRC}/LICENSE

BUILD_DEPENDS= ${PYTHON_PKGNAMEPREFIX}setuptools_scm>=0:devel/py-setuptools_scm@${PY_FLAVOR}
BUILD_DEPENDS= ${PYTHON_PKGNAMEPREFIX}setuptools>=61:devel/py-setuptools@${PY_FLAVOR} \
${PYTHON_PKGNAMEPREFIX}setuptools_scm>=3.4.3:devel/py-setuptools_scm@${PY_FLAVOR} \
${PYTHON_PKGNAMEPREFIX}wheel>=0:devel/py-wheel@${PY_FLAVOR}
RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}typing-extensions>=0:devel/py-typing-extensions@${PY_FLAVOR}

USES= python:3.8+ shebangfix
USE_PYTHON= autoplist concurrent distutils
USES= python:3.9+
USE_PYTHON= autoplist concurrent pep517

NO_ARCH= yes

SHEBANG_FILES= pint/pint-convert

OPTIONS_DEFINE= NUMPY UNCERTAINTIES
NUMPY_DESC= Automatic conversion of units
UNCERTAINTIES_DESC= Handle quantities with uncertainties
Expand Down
6 changes: 3 additions & 3 deletions devel/py-pint/distinfo
@@ -1,3 +1,3 @@
TIMESTAMP = 1669057805
SHA256 (Pint-0.20.1.tar.gz) = 387cf04078dc7dfe4a708033baad54ab61d82ab06c4ee3d4922b1e45d5626067
SIZE (Pint-0.20.1.tar.gz) = 316180
TIMESTAMP = 1685792270
SHA256 (Pint-0.22.tar.gz) = 2d139f6abbcf3016cad7d3cec05707fe908ac4f99cf59aedfd6ee667b7a64433
SIZE (Pint-0.22.tar.gz) = 342281
9 changes: 9 additions & 0 deletions devel/py-pint/files/patch-pyproject.toml
@@ -0,0 +1,9 @@
--- pyproject.toml.orig 2023-05-25 16:42:53 UTC
+++ pyproject.toml
@@ -1,5 +1,5 @@
[project]
-name = "Pint"
+name = "pint"
authors = [
{name="Hernan E. Grecco", email="hernan.grecco@gmail.com"}
]

0 comments on commit 66bd7e6

Please sign in to comment.