git: fb9a10d1c7cf - main - textproc/py-roman-numerals-py: New Port; Manipulate Roman numerals Required dependency for py-sphinx-8.2.0 update:
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Thu, 20 Feb 2025 23:28:09 UTC
The branch main has been updated by fuz:
URL: https://cgit.FreeBSD.org/ports/commit/?id=fb9a10d1c7cfc0dcfbe3c3adf3b0dbd53de5168d
commit fb9a10d1c7cfc0dcfbe3c3adf3b0dbd53de5168d
Author: Alastair Hogge <agh@riseup.net>
AuthorDate: 2025-02-19 10:12:02 +0000
Commit: Robert Clausecker <fuz@FreeBSD.org>
CommitDate: 2025-02-20 23:27:25 +0000
textproc/py-roman-numerals-py: New Port; Manipulate Roman numerals Required dependency for py-sphinx-8.2.0 update:
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
---
textproc/Makefile | 1 +
textproc/py-roman-numerals-py/Makefile | 25 +++++++++++++++++++++++++
textproc/py-roman-numerals-py/distinfo | 3 +++
textproc/py-roman-numerals-py/pkg-descr | 14 ++++++++++++++
4 files changed, 43 insertions(+)
diff --git a/textproc/Makefile b/textproc/Makefile
index d43852aebce5..bc61dd3c2cc0 100644
--- a/textproc/Makefile
+++ b/textproc/Makefile
@@ -1591,6 +1591,7 @@
SUBDIR += py-rich-cli
SUBDIR += py-rich-rst
SUBDIR += py-rnc2rng
+ SUBDIR += py-roman-numerals-py
SUBDIR += py-rst2ansi
SUBDIR += py-rst2html5
SUBDIR += py-scour
diff --git a/textproc/py-roman-numerals-py/Makefile b/textproc/py-roman-numerals-py/Makefile
new file mode 100644
index 000000000000..600928543033
--- /dev/null
+++ b/textproc/py-roman-numerals-py/Makefile
@@ -0,0 +1,25 @@
+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>
diff --git a/textproc/py-roman-numerals-py/distinfo b/textproc/py-roman-numerals-py/distinfo
new file mode 100644
index 000000000000..06ba6cf39cf2
--- /dev/null
+++ b/textproc/py-roman-numerals-py/distinfo
@@ -0,0 +1,3 @@
+TIMESTAMP = 1739958114
+SHA256 (roman_numerals_py-3.0.0.tar.gz) = 91199c4373658c03d87d9fe004f4a5120a20f6cb192be745c2377cce274ef41c
+SIZE (roman_numerals_py-3.0.0.tar.gz) = 8970
diff --git a/textproc/py-roman-numerals-py/pkg-descr b/textproc/py-roman-numerals-py/pkg-descr
new file mode 100644
index 000000000000..0a9b4e17b1db
--- /dev/null
+++ b/textproc/py-roman-numerals-py/pkg-descr
@@ -0,0 +1,14 @@
+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.