mirror of
https://git.freebsd.org/ports.git
synced 2025-04-28 09:36:41 -04:00
A library for manipulating well-formed Roman numerals. Integers between 1 and 3,999 (inclusive) are supported. Numbers beyond this range will return an OutOfRangeError. The classical system of roman numerals requires that the same character may not appear more than thrice consecutively, meaning that 'MMMCMXCIX' (3,999) is the largest well-formed Roman numeral. The smallest is 'I' (1), as there is no symbol for zero in Roman numerals. Both upper- and lower-case formatting of roman numerals are supported, and likewise for parsing strings, although the entire string must be of the same case. Numerals that do not adhere to the classical form are rejected with an InvalidRomanNumeralError. https://pypi.org/project/roman-numerals-py/ PR: 284897
25 lines
709 B
Makefile
25 lines
709 B
Makefile
PORTNAME= roman-numerals-py
|
|
DISTVERSION= 3.0.0
|
|
CATEGORIES= textproc python
|
|
MASTER_SITES= PYPI
|
|
PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
|
|
DISTNAME= ${PORTNAME:S/-/_/g}-${PORTVERSION}
|
|
|
|
MAINTAINER= agh@riseup.net
|
|
COMMENT= Manipulate well-formed Roman numerals
|
|
WWW= https://pypi.org/project/roman-numerals-py/
|
|
|
|
LICENSE= BSD0CLAUSE CC0-1.0
|
|
LICENSE_COMB= multi
|
|
LICENSE_FILE= ${WRKSRC}/LICENCE.rst
|
|
|
|
TEST_DEPENDS= ${PYTHON_PKGNAMEPREFIX}pytest>=8:devel/py-pytest@${PY_FLAVOR}
|
|
|
|
USES= python
|
|
USE_PYTHON= autoplist concurrent pep517 pytest
|
|
PEP517_BUILD_DEPEND= ${PYTHON_PKGNAMEPREFIX}flit-core>=3.7<4:devel/py-flit-core@${PY_FLAVOR}
|
|
PEP517_BUILD_CMD= ${PYTHON_CMD} -m flit_core.wheel
|
|
|
|
NO_ARCH= yes
|
|
|
|
.include <bsd.port.mk>
|