diff options
author | adam <adam@pkgsrc.org> | 2022-11-06 18:18:37 +0000 |
---|---|---|
committer | adam <adam@pkgsrc.org> | 2022-11-06 18:18:37 +0000 |
commit | 3c9ef9431129f5d451cf27170069887538bf4880 (patch) | |
tree | 4e830bb4b38f46900d5a617d38ff3425858014c4 | |
parent | db79c6cce4fc9926d0cd91e5f9bc52941aff8706 (diff) | |
download | pkgsrc-3c9ef9431129f5d451cf27170069887538bf4880.tar.gz |
py-tempora: updated to 5.0.2
v5.0.2
======
- Refreshed project.
- Enrolled with Tidelift.
v5.0.1
======
- Refreshed project.
v5.0.0
======
- Removed deprecated ``divide_*`` functions and ``Parser``
class.
- Require Python 3.7 or later.
- Fixed error reporting in parse_timedelta.
v4.1.2
======
- Docs now build without warnings.
v4.1.1
======
- Fixed issue where digits were picked up in the unit when
adjacent to the last unit.
v4.1.0
======
- Added support for more formats in ``parse_timedelta``.
- ``parse_timedelta`` now supports formats emitted by
``timeit``, including honoring nanoseconds at the
microsecond resolution.
v4.0.2
======
- Refreshed package metadata.
v4.0.1
======
- Refreshed package metadata.
v4.0.0
======
- Removed ``strptime`` function in favor of
`datetime.datetime.strptime <https://docs.python.org/3/library/datetime.html#datetime.datetime.strptime>`_. If passing
a ``tzinfo`` parameter, instead invoke `.replace(tzinfo=...)`
on the result.
- Deprecated ``divide_timedelta`` and ``divide_timedelta_float``
now that Python supports this functionality natively.
- Deprecated ``Parser`` class. The
`dateutil.parser <https://dateutil.readthedocs.io/en/stable/parser.html>`_
provides more sophistication.
-rw-r--r-- | time/py-tempora/ALTERNATIVES | 2 | ||||
-rw-r--r-- | time/py-tempora/Makefile | 33 | ||||
-rw-r--r-- | time/py-tempora/PLIST | 26 | ||||
-rw-r--r-- | time/py-tempora/distinfo | 8 |
4 files changed, 30 insertions, 39 deletions
diff --git a/time/py-tempora/ALTERNATIVES b/time/py-tempora/ALTERNATIVES index b7f0e4c7bb6..5247e79b7a8 100644 --- a/time/py-tempora/ALTERNATIVES +++ b/time/py-tempora/ALTERNATIVES @@ -1 +1 @@ -bin/calc-prorate @PREFIX@/bin/calc-prorate@PYVERSSUFFIX@ +bin/calc-prorate @PREFIX@/bin/calc-prorate-@PYVERSSUFFIX@ diff --git a/time/py-tempora/Makefile b/time/py-tempora/Makefile index 382a0ebf44f..fc703e4bb48 100644 --- a/time/py-tempora/Makefile +++ b/time/py-tempora/Makefile @@ -1,8 +1,7 @@ -# $NetBSD: Makefile,v 1.17 2022/05/12 08:20:36 wiz Exp $ +# $NetBSD: Makefile,v 1.18 2022/11/06 18:18:37 adam Exp $ -DISTNAME= tempora-1.14.1 +DISTNAME= tempora-5.0.2 PKGNAME= ${PYPKGPREFIX}-${DISTNAME} -PKGREVISION= 2 CATEGORIES= time python MASTER_SITES= ${MASTER_SITE_PYPI:=t/tempora/} @@ -11,32 +10,24 @@ HOMEPAGE= https://github.com/jaraco/tempora COMMENT= Objects and routines pertaining to date and time LICENSE= mit -DEPENDS+= ${PYPKGPREFIX}-jaraco.functools-[0-9]*:../../devel/py-jaraco.functools +BUILD_DEPENDS+= ${PYPKGPREFIX}-setuptools_scm>=3.4.1:../../devel/py-setuptools_scm +DEPENDS+= ${PYPKGPREFIX}-jaraco.functools>=1.20:../../devel/py-jaraco.functools DEPENDS+= ${PYPKGPREFIX}-pytz-[0-9]*:../../time/py-pytz -DEPENDS+= ${PYPKGPREFIX}-six-[0-9]*:../../lang/py-six +TEST_DEPENDS+= ${PYPKGPREFIX}-test-[0-9]*:../../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}-test-sugar>=0.9.1:../../devel/py-test-sugar - -PYTHON_VERSIONED_DEPENDENCIES+= test:test -PYTHON_VERSIONED_DEPENDENCIES+= setuptools_scm:build - -.include "../../lang/python/pyversion.mk" - -.if ${_PYTHON_VERSION} != 27 -# freezegun is only available for python 3 -TEST_DEPENDS+= ${PYPKGPREFIX}-freezegun-[0-9]*:../../devel/py-freezegun -.endif +TEST_DEPENDS+= ${PYPKGPREFIX}-test-freezegun-[0-9]*:../../devel/py-test-freezegun USE_LANGUAGES= # none -USE_PKG_RESOURCES= yes +PYTHON_VERSIONS_INCOMPATIBLE= 27 post-install: - cd ${DESTDIR}${PREFIX}/bin && ${MV} calc-prorate calc-prorate${PYVERSSUFFIX} || ${TRUE} + cd ${DESTDIR}${PREFIX}/bin && \ + ${MV} calc-prorate calc-prorate-${PYVERSSUFFIX} || ${TRUE} do-test: - cd ${WRKSRC}/tests && pytest-${PYVERSSUFFIX} + cd ${WRKSRC} && ${SETENV} ${TEST_ENV} pytest-${PYVERSSUFFIX} -.include "../../lang/python/egg.mk" -.include "../../lang/python/versioned_dependencies.mk" +.include "../../lang/python/wheel.mk" .include "../../mk/bsd.pkg.mk" diff --git a/time/py-tempora/PLIST b/time/py-tempora/PLIST index b90f5ca6097..757b6128d5d 100644 --- a/time/py-tempora/PLIST +++ b/time/py-tempora/PLIST @@ -1,23 +1,23 @@ -@comment $NetBSD: PLIST,v 1.7 2018/11/15 10:07:38 adam Exp $ -bin/calc-prorate${PYVERSSUFFIX} -${PYSITELIB}/${EGG_INFODIR}/PKG-INFO -${PYSITELIB}/${EGG_INFODIR}/SOURCES.txt -${PYSITELIB}/${EGG_INFODIR}/dependency_links.txt -${PYSITELIB}/${EGG_INFODIR}/entry_points.txt -${PYSITELIB}/${EGG_INFODIR}/requires.txt -${PYSITELIB}/${EGG_INFODIR}/top_level.txt +@comment $NetBSD: PLIST,v 1.8 2022/11/06 18:18:37 adam Exp $ +bin/calc-prorate-${PYVERSSUFFIX} +${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}/entry_points.txt +${PYSITELIB}/${WHEEL_INFODIR}/top_level.txt ${PYSITELIB}/tempora/__init__.py ${PYSITELIB}/tempora/__init__.pyc -${PYSITELIB}/tempora/__init__.pyo ${PYSITELIB}/tempora/schedule.py ${PYSITELIB}/tempora/schedule.pyc -${PYSITELIB}/tempora/schedule.pyo ${PYSITELIB}/tempora/tests/test_schedule.py ${PYSITELIB}/tempora/tests/test_schedule.pyc -${PYSITELIB}/tempora/tests/test_schedule.pyo +${PYSITELIB}/tempora/tests/test_timing.py +${PYSITELIB}/tempora/tests/test_timing.pyc ${PYSITELIB}/tempora/timing.py ${PYSITELIB}/tempora/timing.pyc -${PYSITELIB}/tempora/timing.pyo ${PYSITELIB}/tempora/utc.py ${PYSITELIB}/tempora/utc.pyc -${PYSITELIB}/tempora/utc.pyo diff --git a/time/py-tempora/distinfo b/time/py-tempora/distinfo index 302a12b7cd5..defa3f7a947 100644 --- a/time/py-tempora/distinfo +++ b/time/py-tempora/distinfo @@ -1,5 +1,5 @@ -$NetBSD: distinfo,v 1.11 2021/10/26 11:24:35 nia Exp $ +$NetBSD: distinfo,v 1.12 2022/11/06 18:18:37 adam Exp $ -BLAKE2s (tempora-1.14.1.tar.gz) = ec7cd3353af361d755092570591e3149ff20ab65329eca84503d0f0b422223eb -SHA512 (tempora-1.14.1.tar.gz) = 4ecd5430d4d90959b0985908a1e4f239a56ce0026cd315ef6b8c204b645caccb135db76bb2ca9cb95bc65bdf337b61e7c31514eb9c85036771469b6a058edfbb -Size (tempora-1.14.1.tar.gz) = 19383 bytes +BLAKE2s (tempora-5.0.2.tar.gz) = 66f2974c50d71afe9b05a28453bc3c274db193f9a5c7a45cf431794fc97b99c7 +SHA512 (tempora-5.0.2.tar.gz) = d0fe086b92e21622444b941c583e3432420b1826e60aa4b90bab31907a98b4989dd21ca99b5554e965f87e23c9d65d9bce8e434d801985f99f187b7dad2a715a +Size (tempora-5.0.2.tar.gz) = 19530 bytes |