Skip to content
Snippets Groups Projects
Verified Commit f564516d authored by sunpoet's avatar sunpoet
Browse files

devel/py-ciso8601: Update to 2.3.1

- Change MASTER_SITES to PYPI
- Convert to USE_PYTHON=pep517
- Convert to USE_PYTHON=unittest
- Update pkg-descr

Changes:	https://github.com/closeio/ciso8601/releases
parent 5c14e8be
No related branches found
No related tags found
No related merge requests found
PORTNAME= ciso8601
DISTVERSIONPREFIX= v
DISTVERSION= 2.3.0
PORTVERSION= 2.3.1
CATEGORIES= devel python
MASTER_SITES= PYPI
PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
MAINTAINER= sunpoet@FreeBSD.org
......@@ -11,20 +11,14 @@ WWW= https://github.com/closeio/ciso8601
LICENSE= MIT
LICENSE_FILE= ${WRKSRC}/LICENSE
TEST_DEPENDS= ${PYTHON_PKGNAMEPREFIX}nose>=0:devel/py-nose@${PY_FLAVOR} \
${PYTHON_PKGNAMEPREFIX}pytz>=0:devel/py-pytz@${PY_FLAVOR} \
${PYTHON_PKGNAMEPREFIX}unittest2>=0:devel/py-unittest2@${PY_FLAVOR}
BUILD_DEPENDS= ${PYTHON_PKGNAMEPREFIX}setuptools>=0:devel/py-setuptools@${PY_FLAVOR} \
${PYTHON_PKGNAMEPREFIX}wheel>=0:devel/py-wheel@${PY_FLAVOR}
TEST_DEPENDS= ${PYTHON_PKGNAMEPREFIX}pytz>=0:devel/py-pytz@${PY_FLAVOR}
USES= python
USE_PYTHON= autoplist distutils
USE_GITHUB= yes
GH_ACCOUNT= closeio
USE_PYTHON= autoplist concurrent pep517 unittest
post-install:
@${STRIP_CMD} ${STAGEDIR}${PYTHONPREFIX_SITELIBDIR}/ciso8601*.so
do-test:
@cd ${WRKSRC} && ${PYTHON_CMD} -m nose -v
${FIND} ${STAGEDIR}${PYTHON_SITELIBDIR} -name '*.so' -exec ${STRIP_CMD} {} +
.include <bsd.port.mk>
TIMESTAMP = 1672648293
SHA256 (closeio-ciso8601-v2.3.0_GH0.tar.gz) = 37853b535ea4f94b35932de78417a2a363d8b1bac4db1dc36a2b4d811e69d304
SIZE (closeio-ciso8601-v2.3.0_GH0.tar.gz) = 46724
TIMESTAMP = 1726487346
SHA256 (ciso8601-2.3.1.tar.gz) = 3212c7ffe5d8080270548b5f2692ffd2039683b6628a8d2ad456122cc5793c4c
SIZE (ciso8601-2.3.1.tar.gz) = 31225
ciso8601 converts ISO 8601 or RFC 3339 date time strings into Python
datetime objects. Since it's written as a C module, it is much faster
than other Python libraries.
ciso8601 converts ISO 8601 or RFC 3339 date time strings into Python datetime
objects.
Note: ciso8601 doesn't support the entirety of the ISO 8601 spec,
only a popular subset.
Since it's written as a C module, it is much faster than other Python libraries.
ciso8601 only supports a subset of ISO 8601, but supports a superset of what is
supported by Python itself (datetime.fromisoformat), and supports the entirety
of the RFC 3339 specification.
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment