diff options
Diffstat (limited to 'math/py-conway-polynomials')
-rw-r--r-- | math/py-conway-polynomials/Makefile | 31 | ||||
-rw-r--r-- | math/py-conway-polynomials/distinfo | 3 | ||||
-rw-r--r-- | math/py-conway-polynomials/pkg-descr | 14 |
3 files changed, 48 insertions, 0 deletions
diff --git a/math/py-conway-polynomials/Makefile b/math/py-conway-polynomials/Makefile new file mode 100644 index 000000000000..2d48fdfced10 --- /dev/null +++ b/math/py-conway-polynomials/Makefile @@ -0,0 +1,31 @@ +PORTNAME= conway-polynomials +DISTVERSION= 0.10 +CATEGORIES= math python +MASTER_SITES= PYPI +PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX} +DISTNAME= ${PORTNAME:S/-/_/}-${PORTVERSION} + +MAINTAINER= yuri@FreeBSD.org +COMMENT= Python interface to Frank Lubeck's Conway polynomial database +WWW= https://github.com/sagemath/conway-polynomials + +LICENSE= GPLv3+ +LICENSE_FILE= ${WRKSRC}/LICENSE + +BUILD_DEPENDS= ${PY_SETUPTOOLS} \ + ${PYTHON_PKGNAMEPREFIX}wheel>0:devel/py-wheel@${PY_FLAVOR} + +USES= python +USE_PYTHON= pep517 autoplist pytest + +TEST_ENV= ${MAKE_ENV} PYTHONPATH=${STAGEDIR}${PYTHONPREFIX_SITELIBDIR} + +NO_ARCH= yes + +do-test: + @cd ${TEST_WRKSRC} && \ + ${SETENV} ${TEST_ENV} ${PYTHON_CMD} -m pytest --doctest-modules --doctest-glob='*.rst' ${WRKSRC}/README.rst ${WRKSRC}/src/conway_polynomials/__init__.py + +# tests as of 0.10: 2 passed in 2.99s + +.include <bsd.port.mk> diff --git a/math/py-conway-polynomials/distinfo b/math/py-conway-polynomials/distinfo new file mode 100644 index 000000000000..ea87f25007b9 --- /dev/null +++ b/math/py-conway-polynomials/distinfo @@ -0,0 +1,3 @@ +TIMESTAMP = 1759482386 +SHA256 (conway_polynomials-0.10.tar.gz) = 4f619f64f81a3eb16c4e26c5a284feeec27a6f4aad647643e79af289801ae0f3 +SIZE (conway_polynomials-0.10.tar.gz) = 307447 diff --git a/math/py-conway-polynomials/pkg-descr b/math/py-conway-polynomials/pkg-descr new file mode 100644 index 000000000000..1a43461d9c06 --- /dev/null +++ b/math/py-conway-polynomials/pkg-descr @@ -0,0 +1,14 @@ +Python interface to Frank Luebeck's Conway polynomial database. + +Frank Luebeck maintains a list of pre-computed Conway polynomial coefficients. +These are used in several computer algebra systems such as GAP and SageMath +to provide quick access to those Conway polynomials. + +The package consists of a single module containing a single function that +returns a dict of dicts, conway_polynomials.database(). The dictionary's +format is {p: {n: coefficients}}, where p represents your prime and n your +degree. The tuple of coefficients is returned in ascending order; that is, +the first coefficient (at index zero) is for the constant (degree zero) term. + +This package is an evolution of the SageMath conway_polynomials package +and is maintained by the same team of developers. |