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.diff -r1.1 -r1.2 pkgsrc/time/py-tempora/ALTERNATIVES
(adam)
@@ -1,42 +1,33 @@ | @@ -1,42 +1,33 @@ | |||
1 | # $NetBSD: Makefile,v 1.17 2022/05/12 08:20:36 wiz Exp $ | 1 | # $NetBSD: Makefile,v 1.18 2022/11/06 18:18:37 adam Exp $ | |
2 | 2 | |||
3 | DISTNAME= tempora-1.14.1 | 3 | DISTNAME= tempora-5.0.2 | |
4 | PKGNAME= ${PYPKGPREFIX}-${DISTNAME} | 4 | PKGNAME= ${PYPKGPREFIX}-${DISTNAME} | |
5 | PKGREVISION= 2 | |||
6 | CATEGORIES= time python | 5 | CATEGORIES= time python | |
7 | MASTER_SITES= ${MASTER_SITE_PYPI:=t/tempora/} | 6 | MASTER_SITES= ${MASTER_SITE_PYPI:=t/tempora/} | |
8 | 7 | |||
9 | MAINTAINER= pkgsrc-users@NetBSD.org | 8 | MAINTAINER= pkgsrc-users@NetBSD.org | |
10 | HOMEPAGE= https://github.com/jaraco/tempora | 9 | HOMEPAGE= https://github.com/jaraco/tempora | |
11 | COMMENT= Objects and routines pertaining to date and time | 10 | COMMENT= Objects and routines pertaining to date and time | |
12 | LICENSE= mit | 11 | LICENSE= mit | |
13 | 12 | |||
14 | DEPENDS+= ${PYPKGPREFIX}-jaraco.functools-[0-9]*:../../devel/py-jaraco.functools | 13 | BUILD_DEPENDS+= ${PYPKGPREFIX}-setuptools_scm>=3.4.1:../../devel/py-setuptools_scm | |
14 | DEPENDS+= ${PYPKGPREFIX}-jaraco.functools>=1.20:../../devel/py-jaraco.functools | |||
15 | DEPENDS+= ${PYPKGPREFIX}-pytz-[0-9]*:../../time/py-pytz | 15 | DEPENDS+= ${PYPKGPREFIX}-pytz-[0-9]*:../../time/py-pytz | |
16 | DEPENDS+= ${PYPKGPREFIX}-six-[0-9]*:../../lang/py-six | 16 | TEST_DEPENDS+= ${PYPKGPREFIX}-test-[0-9]*:../../devel/py-test | |
17 | TEST_DEPENDS+= ${PYPKGPREFIX}-test-cov-[0-9]*:../../devel/py-test-cov | |||
17 | TEST_DEPENDS+= ${PYPKGPREFIX}-test-flake8-[0-9]*:../../devel/py-test-flake8 | 18 | TEST_DEPENDS+= ${PYPKGPREFIX}-test-flake8-[0-9]*:../../devel/py-test-flake8 | |
18 | TEST_DEPENDS+= ${PYPKGPREFIX}-test-sugar>=0.9.1:../../devel/py-test-sugar | 19 | TEST_DEPENDS+= ${PYPKGPREFIX}-test-freezegun-[0-9]*:../../devel/py-test-freezegun | |
19 | ||||
20 | PYTHON_VERSIONED_DEPENDENCIES+= test:test | |||
21 | PYTHON_VERSIONED_DEPENDENCIES+= setuptools_scm:build | |||
22 | ||||
23 | .include "../../lang/python/pyversion.mk" | |||
24 | ||||
25 | .if ${_PYTHON_VERSION} != 27 | |||
26 | # freezegun is only available for python 3 | |||
27 | TEST_DEPENDS+= ${PYPKGPREFIX}-freezegun-[0-9]*:../../devel/py-freezegun | |||
28 | .endif | |||
29 | 20 | |||
30 | USE_LANGUAGES= # none | 21 | USE_LANGUAGES= # none | |
31 | 22 | |||
32 | USE_PKG_RESOURCES= yes | 23 | PYTHON_VERSIONS_INCOMPATIBLE= 27 | |
33 | 24 | |||
34 | post-install: | 25 | post-install: | |
35 | cd ${DESTDIR}${PREFIX}/bin && ${MV} calc-prorate calc-prorate${PYVERSSUFFIX} || ${TRUE} | 26 | cd ${DESTDIR}${PREFIX}/bin && \ | |
27 | ${MV} calc-prorate calc-prorate-${PYVERSSUFFIX} || ${TRUE} | |||
36 | 28 | |||
37 | do-test: | 29 | do-test: | |
38 | cd ${WRKSRC}/tests && pytest-${PYVERSSUFFIX} | 30 | cd ${WRKSRC} && ${SETENV} ${TEST_ENV} pytest-${PYVERSSUFFIX} | |
39 | 31 | |||
40 | .include "../../lang/python/egg.mk" | 32 | .include "../../lang/python/wheel.mk" | |
41 | .include "../../lang/python/versioned_dependencies.mk" | |||
42 | .include "../../mk/bsd.pkg.mk" | 33 | .include "../../mk/bsd.pkg.mk" |
@@ -1,23 +1,23 @@ | @@ -1,23 +1,23 @@ | |||
1 | @comment $NetBSD: PLIST,v 1.7 2018/11/15 10:07:38 adam Exp $ | 1 | @comment $NetBSD: PLIST,v 1.8 2022/11/06 18:18:37 adam Exp $ | |
2 | bin/calc-prorate${PYVERSSUFFIX} | 2 | bin/calc-prorate-${PYVERSSUFFIX} | |
3 | ${PYSITELIB}/${EGG_INFODIR}/PKG-INFO | 3 | ${PYSITELIB}/${WHEEL_INFODIR}/INSTALLER | |
4 | ${PYSITELIB}/${EGG_INFODIR}/SOURCES.txt | 4 | ${PYSITELIB}/${WHEEL_INFODIR}/LICENSE | |
5 | ${PYSITELIB}/${EGG_INFODIR}/dependency_links.txt | 5 | ${PYSITELIB}/${WHEEL_INFODIR}/METADATA | |
6 | ${PYSITELIB}/${EGG_INFODIR}/entry_points.txt | 6 | ${PYSITELIB}/${WHEEL_INFODIR}/RECORD | |
7 | ${PYSITELIB}/${EGG_INFODIR}/requires.txt | 7 | ${PYSITELIB}/${WHEEL_INFODIR}/REQUESTED | |
8 | ${PYSITELIB}/${EGG_INFODIR}/top_level.txt | 8 | ${PYSITELIB}/${WHEEL_INFODIR}/WHEEL | |
9 | ${PYSITELIB}/${WHEEL_INFODIR}/direct_url.json | |||
10 | ${PYSITELIB}/${WHEEL_INFODIR}/entry_points.txt | |||
11 | ${PYSITELIB}/${WHEEL_INFODIR}/top_level.txt | |||
9 | ${PYSITELIB}/tempora/__init__.py | 12 | ${PYSITELIB}/tempora/__init__.py | |
10 | ${PYSITELIB}/tempora/__init__.pyc | 13 | ${PYSITELIB}/tempora/__init__.pyc | |
11 | ${PYSITELIB}/tempora/__init__.pyo | |||
12 | ${PYSITELIB}/tempora/schedule.py | 14 | ${PYSITELIB}/tempora/schedule.py | |
13 | ${PYSITELIB}/tempora/schedule.pyc | 15 | ${PYSITELIB}/tempora/schedule.pyc | |
14 | ${PYSITELIB}/tempora/schedule.pyo | |||
15 | ${PYSITELIB}/tempora/tests/test_schedule.py | 16 | ${PYSITELIB}/tempora/tests/test_schedule.py | |
16 | ${PYSITELIB}/tempora/tests/test_schedule.pyc | 17 | ${PYSITELIB}/tempora/tests/test_schedule.pyc | |
17 | ${PYSITELIB}/tempora/tests/test_schedule.pyo | 18 | ${PYSITELIB}/tempora/tests/test_timing.py | |
19 | ${PYSITELIB}/tempora/tests/test_timing.pyc | |||
18 | ${PYSITELIB}/tempora/timing.py | 20 | ${PYSITELIB}/tempora/timing.py | |
19 | ${PYSITELIB}/tempora/timing.pyc | 21 | ${PYSITELIB}/tempora/timing.pyc | |
20 | ${PYSITELIB}/tempora/timing.pyo | |||
21 | ${PYSITELIB}/tempora/utc.py | 22 | ${PYSITELIB}/tempora/utc.py | |
22 | ${PYSITELIB}/tempora/utc.pyc | 23 | ${PYSITELIB}/tempora/utc.pyc | |
23 | ${PYSITELIB}/tempora/utc.pyo |
@@ -1,5 +1,5 @@ | @@ -1,5 +1,5 @@ | |||
1 | $NetBSD: distinfo,v 1.11 2021/10/26 11:24:35 nia Exp $ | 1 | $NetBSD: distinfo,v 1.12 2022/11/06 18:18:37 adam Exp $ | |
2 | 2 | |||
3 | BLAKE2s (tempora-1.14.1.tar.gz) = ec7cd3353af361d755092570591e3149ff20ab65329eca84503d0f0b422223eb | 3 | BLAKE2s (tempora-5.0.2.tar.gz) = 66f2974c50d71afe9b05a28453bc3c274db193f9a5c7a45cf431794fc97b99c7 | |
4 | SHA512 (tempora-1.14.1.tar.gz) = 4ecd5430d4d90959b0985908a1e4f239a56ce0026cd315ef6b8c204b645caccb135db76bb2ca9cb95bc65bdf337b61e7c31514eb9c85036771469b6a058edfbb | 4 | SHA512 (tempora-5.0.2.tar.gz) = d0fe086b92e21622444b941c583e3432420b1826e60aa4b90bab31907a98b4989dd21ca99b5554e965f87e23c9d65d9bce8e434d801985f99f187b7dad2a715a | |
5 | Size (tempora-1.14.1.tar.gz) = 19383 bytes | 5 | Size (tempora-5.0.2.tar.gz) = 19530 bytes |