pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/lang/py-inflect py-inflect: updated to 6.0.2



details:   https://anonhg.NetBSD.org/pkgsrc/rev/d043cf252a68
branches:  trunk
changeset: 387773:d043cf252a68
user:      adam <adam%pkgsrc.org@localhost>
date:      Sun Nov 06 18:08:15 2022 +0000

description:
py-inflect: updated to 6.0.2

v6.0.2
======
* Require pydantic 1.9.1 to avoid ``ValueError``.

v6.0.1
======
* Minor tweaks and packaging refresh.

v6.0.0
======
* ``compare`` methods now validate their inputs
  and will raise a more meaningful exception if an
  empty string or None is passed. This expectation is now
  documented.

* Many public methods now perform validation on arguments.
  An empty string is no longer allowed for words or text.
  Callers are expected to pass non-empty text or trap
  the validation errors that are raised. The exceptions
  raised are ``pydantic.error_wrappers.ValidationError``,
  which are currently a subclass of ``ValueError``, but since
  that
  `may change <https://pydantic-docs.helpmanual.io/usage/validation_decorator/#validation-exception>`_,
  tests check for a generic ``Exception``.

diffstat:

 lang/py-inflect/DESCR    |   2 +-
 lang/py-inflect/Makefile |  26 ++++++++++++++------------
 lang/py-inflect/PLIST    |  21 ++++++++++++---------
 lang/py-inflect/distinfo |   8 ++++----
 4 files changed, 31 insertions(+), 26 deletions(-)

diffs (89 lines):

diff -r 88794eec4f90 -r d043cf252a68 lang/py-inflect/DESCR
--- a/lang/py-inflect/DESCR     Sun Nov 06 17:21:41 2022 +0000
+++ b/lang/py-inflect/DESCR     Sun Nov 06 18:08:15 2022 +0000
@@ -1,3 +1,3 @@
 This python module provides plural inflections, singular noun
-inflections, "a"/"a"” selection for English words, and manipulation
+inflections, "a"/"a" selection for English words, and manipulation
 of numbers as words.
diff -r 88794eec4f90 -r d043cf252a68 lang/py-inflect/Makefile
--- a/lang/py-inflect/Makefile  Sun Nov 06 17:21:41 2022 +0000
+++ b/lang/py-inflect/Makefile  Sun Nov 06 18:08:15 2022 +0000
@@ -1,8 +1,7 @@
-# $NetBSD: Makefile,v 1.4 2022/01/25 09:05:11 wiz Exp $
+# $NetBSD: Makefile,v 1.5 2022/11/06 18:08:15 adam Exp $
 
-DISTNAME=      inflect-4.1.0
+DISTNAME=      inflect-6.0.2
 PKGNAME=       ${PYPKGPREFIX}-${DISTNAME}
-PKGREVISION=   1
 CATEGORIES=    lang python
 MASTER_SITES=  ${MASTER_SITE_PYPI:=i/inflect/}
 
@@ -11,16 +10,19 @@
 COMMENT=       Correctly generate plurals, ordinals, indefinite articles for English
 LICENSE=       mit
 
-PYTHON_VERSIONED_DEPENDENCIES+=        setuptools_scm:build
-
-.include "../../lang/python/pyversion.mk"
-
-.if ${_PYTHON_VERSION} < 38
-PYTHON_VERSIONED_DEPENDENCIES+=        importlib-metadata
-.endif
+BUILD_DEPENDS+=        ${PYPKGPREFIX}-setuptools_scm>=7.0.0:../../devel/py-setuptools_scm
+DEPENDS+=      ${PYPKGPREFIX}-pydantic>=1.9.1:../../devel/py-pydantic
+TEST_DEPENDS+= ${PYPKGPREFIX}-test>=6:../../devel/py-test
+TEST_DEPENDS+= ${PYPKGPREFIX}-test-cov-[0-9]*:../../devel/py-test-cov
+TEST_DEPENDS+= ${PYPKGPREFIX}-test-flake8-[0-9]*:../../devel/py-test-flake8
+TEST_DEPENDS+= ${PYPKGPREFIX}-pygments-[0-9]*:../../textproc/py-pygments
 
 USE_LANGUAGES= # none
 
-.include "../../lang/python/egg.mk"
-.include "../../lang/python/versioned_dependencies.mk"
+PYTHON_VERSIONS_INCOMPATIBLE=  27
+
+do-test:
+       cd ${WRKSRC} && ${SETENV} ${TEST_ENV} pytest-${PYVERSSUFFIX}
+
+.include "../../lang/python/wheel.mk"
 .include "../../mk/bsd.pkg.mk"
diff -r 88794eec4f90 -r d043cf252a68 lang/py-inflect/PLIST
--- a/lang/py-inflect/PLIST     Sun Nov 06 17:21:41 2022 +0000
+++ b/lang/py-inflect/PLIST     Sun Nov 06 18:08:15 2022 +0000
@@ -1,9 +1,12 @@
-@comment $NetBSD: PLIST,v 1.1 2020/03/12 07:12:05 wiz Exp $
-${PYSITELIB}/inflect.pyo
-${PYSITELIB}/inflect.pyc
-${PYSITELIB}/${EGG_INFODIR}/PKG-INFO
-${PYSITELIB}/${EGG_INFODIR}/SOURCES.txt
-${PYSITELIB}/${EGG_INFODIR}/dependency_links.txt
-${PYSITELIB}/${EGG_INFODIR}/requires.txt
-${PYSITELIB}/${EGG_INFODIR}/top_level.txt
-${PYSITELIB}/inflect.py
+@comment $NetBSD: PLIST,v 1.2 2022/11/06 18:08:15 adam Exp $
+${PYSITELIB}/${WHEEL_INFODIR}/INSTALLER
+${PYSITELIB}/${WHEEL_INFODIR}/LICENSE
+${PYSITELIB}/${WHEEL_INFODIR}/METADATA
+${PYSITELIB}/${WHEEL_INFODIR}/RECORD
+${PYSITELIB}/${WHEEL_INFODIR}/REQUESTED
+${PYSITELIB}/${WHEEL_INFODIR}/WHEEL
+${PYSITELIB}/${WHEEL_INFODIR}/direct_url.json
+${PYSITELIB}/${WHEEL_INFODIR}/top_level.txt
+${PYSITELIB}/inflect/__init__.py
+${PYSITELIB}/inflect/__init__.pyc
+${PYSITELIB}/inflect/py.typed
diff -r 88794eec4f90 -r d043cf252a68 lang/py-inflect/distinfo
--- a/lang/py-inflect/distinfo  Sun Nov 06 17:21:41 2022 +0000
+++ b/lang/py-inflect/distinfo  Sun Nov 06 18:08:15 2022 +0000
@@ -1,5 +1,5 @@
-$NetBSD: distinfo,v 1.3 2021/10/26 10:51:49 nia Exp $
+$NetBSD: distinfo,v 1.4 2022/11/06 18:08:15 adam Exp $
 
-BLAKE2s (inflect-4.1.0.tar.gz) = bfe734a579ec18457795ec5107dfcfea2566aca9a47632c243939a1cdf3cefe3
-SHA512 (inflect-4.1.0.tar.gz) = 9a2ba4777f01475390976f3ac28f046d39d1f86cfdafd161cc7c8d33526aca35d44e6598ccf2a0b68d3511a64b67ed0991b51c78bda8f279cd706fd29a3fa514
-Size (inflect-4.1.0.tar.gz) = 72200 bytes
+BLAKE2s (inflect-6.0.2.tar.gz) = b3b489e8584a9f09643c3ef41c7bdab47eaf8c32f6928f93b084b0ba32ff655d
+SHA512 (inflect-6.0.2.tar.gz) = ddb0439eeffbd21b3293208eb7e89f97fe556a3ba1e88de7e15d1c6bc5a59cdb25a224d7cfec5a010dd384728b15317c1dc752e3a8d4d95dd6eea8224a4f2877
+Size (inflect-6.0.2.tar.gz) = 70830 bytes


Home | Main Index | Thread Index | Old Index