From nobody Mon Oct 17 03:54:10 2022 X-Original-To: dev-commits-ports-main@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4MrNQp359lz4fhcK; Mon, 17 Oct 2022 03:54:10 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4MrNQp2Jp7z40Js; Mon, 17 Oct 2022 03:54:10 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1665978850; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=BIrd94c3AIN4Dqb+y5pheW1apXgXL2OIolEvCJJaQgg=; b=WkwsjjcP23W8TuJYmBry3Bpl6c0V7lft14ipUNFpOLco0dUASzt269kxjc1/aTkZP881+L rryXSr1MoaAY4PCfGiM6g/FtkX4MOGpSUOirbUubVH+rtXFhN0797ibMdTdECr8TB5/Xdw AxUmHDKiMLDmDdNGZxgIrylturRaDM5BQ3aRgHW+nB6vFXwoke3G8RzCbitjUc8lxZMri7 5OCptRBHxWWQa9ju2mXfxV42DrnoVPAzCKqbsSHBJrnr1KKGN3CphoSolrwosEKaQNACo7 lsMzVorl76llqLN9DId7ie8QlbtSA5O2ELV2C0HZhtZUBqW7N/+/RJIVgHDrYA== Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 4MrNQp1KHDzhCv; Mon, 17 Oct 2022 03:54:10 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.16.1/8.16.1) with ESMTP id 29H3sAjp032587; Mon, 17 Oct 2022 03:54:10 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 29H3sARC032586; Mon, 17 Oct 2022 03:54:10 GMT (envelope-from git) Date: Mon, 17 Oct 2022 03:54:10 GMT Message-Id: <202210170354.29H3sARC032586@gitrepo.freebsd.org> To: ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org From: Li-Wen Hsu Subject: git: 3b00134bc22b - main - Add math/py-reals: Lightweight python3 library for arithmetic with real numbers List-Id: Commits to the main branch of the FreeBSD ports repository List-Archive: https://lists.freebsd.org/archives/dev-commits-ports-main List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-dev-commits-ports-main@freebsd.org X-BeenThere: dev-commits-ports-main@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: lwhsu X-Git-Repository: ports X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: 3b00134bc22b77bd5575047ef79c07f761cf9c9f Auto-Submitted: auto-generated ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1665978850; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=BIrd94c3AIN4Dqb+y5pheW1apXgXL2OIolEvCJJaQgg=; b=czj7rmBBchdH99lPMJGA04p0ZT7Vi1uyHErAoAIjZ205vqSqwCNs5qeUeDuCWGqY1t788l agVDm9+Iwi7DTb6mDcb0GybfJNWOr9xvoFNaF1JgxFVQil+gUYZcFOKUOJG9wntClM0zFk zjKeoOBKPaOVFk8JbQ44jHJrnAjfMQPfWLlC4ni3t6RO01Hm/8mqGWQaXJk38OVi5rPRY9 g+R9sOvqzyDTBEKx2CkUkpSmpvgQ34awdcFjC+HDNxhwXS0Zy9Lj49G6ypHyxl4A/gHSve ZQ25V0y0wg9BbEasna7f5nOzWV2iZLeUjd7VFJADtPcvxzIV8ptgLI3JlWTTTg== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1665978850; a=rsa-sha256; cv=none; b=WkgMIJH6USe+a1GitVuPyTNqB50xsluchV/7WHjhan935jASBk8ICrcy3XYpvZGMLYnbAS QcclAgZThP5F5mI4RFeU54wvRWfNiZcXbQ20fdTTJPNxLQ2WmPrvze9SdofvNJA6vS/5Hz nxTbWL6Szks/nVgjlNu/t7MAsKSIkwbMyH8lpz3qGWtKxWUU73HdODCNioS6BiRGS9E1De 1DzqM3klOBBemfMajl2WBsFrAfe2opUXfD++ZANlIqDHfDpLzDhXuYgqziRS5OVGq79EJG +FdvyS3GkzDs8zq/k7pUhwjlumykRzAHBPp04RS3sEMF2JBEe0mLM/Q0wjVOSg== ARC-Authentication-Results: i=1; mx1.freebsd.org; none X-ThisMailContainsUnwantedMimeParts: N The branch main has been updated by lwhsu: URL: https://cgit.FreeBSD.org/ports/commit/?id=3b00134bc22b77bd5575047ef79c07f761cf9c9f commit 3b00134bc22b77bd5575047ef79c07f761cf9c9f Author: Li-Wen Hsu AuthorDate: 2022-10-17 03:51:16 +0000 Commit: Li-Wen Hsu CommitDate: 2022-10-17 03:51:16 +0000 Add math/py-reals: Lightweight python3 library for arithmetic with real numbers --- math/Makefile | 1 + math/py-reals/Makefile | 19 +++++++++++++++++++ math/py-reals/distinfo | 3 +++ math/py-reals/pkg-descr | 15 +++++++++++++++ 4 files changed, 38 insertions(+) diff --git a/math/Makefile b/math/Makefile index a2dbf805a23c..b0342747c9a8 100644 --- a/math/Makefile +++ b/math/Makefile @@ -968,6 +968,7 @@ SUBDIR += py-qdldl SUBDIR += py-quadprog SUBDIR += py-random2 + SUBDIR += py-reals SUBDIR += py-rectangle-packer SUBDIR += py-roman SUBDIR += py-rpy2 diff --git a/math/py-reals/Makefile b/math/py-reals/Makefile new file mode 100644 index 000000000000..49e1cc9089cc --- /dev/null +++ b/math/py-reals/Makefile @@ -0,0 +1,19 @@ +PORTNAME= reals +PORTVERSION= 0.0.4 +CATEGORIES= math python +MASTER_SITES= CHEESESHOP +PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX} + +MAINTAINER= lwhsu@FreeBSD.org +COMMENT= Lightweight python3 library for arithmetic with real numbers +WWW= https://github.com/rubenvannieuwpoort/reals + +LICENSE= MIT +LICENSE_FILE= ${WRKSRC}/LICENSE + +USES= python:3.10+ +USE_PYTHON= autoplist distutils + +NO_ARCH= yes + +.include diff --git a/math/py-reals/distinfo b/math/py-reals/distinfo new file mode 100644 index 000000000000..bf6959a08743 --- /dev/null +++ b/math/py-reals/distinfo @@ -0,0 +1,3 @@ +TIMESTAMP = 1665974950 +SHA256 (reals-0.0.4.tar.gz) = ce6f23006e2d47685273d5f33ac829037d6912339f1b2f704f1524e926f826dc +SIZE (reals-0.0.4.tar.gz) = 15407 diff --git a/math/py-reals/pkg-descr b/math/py-reals/pkg-descr new file mode 100644 index 000000000000..0e74b3acf81e --- /dev/null +++ b/math/py-reals/pkg-descr @@ -0,0 +1,15 @@ +Reals is a lightweight Python library for arbitrary precision arithmetic. It +allows you to compute approximations to an arbitrary degree of precision, and, +contrary to most other libraries, guarantees that all digits it displays are +correct. It works by using interval arithmetic and continued fractions. The +bulk of this code is based on Bill Gosper's notes on continued fractions in +which he presents algorithms for doing arithmetic on continued fractions. + +The reals library is characterized by: + + * Correctness; the reals library uses interval arithmetic to ensure that all + the digits are correct. + * Calculations are done in a streaming way; the result of previous + calculations can be re-used. + * Uses no external libraries. + * Focus on usability.