From nobody Sun Nov 03 13:25:09 2024 X-Original-To: dev-commits-ports-all@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 4XhFhP6Bzgz5c6Cc; Sun, 03 Nov 2024 13:25:09 +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 "R10" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4XhFhP5f5vz4s1s; Sun, 3 Nov 2024 13:25:09 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1730640309; 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=hfLExYNgA4/zBKs4nlJoJ4n1nZRWFyWSIw0FMo3bIcs=; b=xfzYHSMoMcaQZc7NQQLHZCN3xuhnabT07VmE6q5qXWT2x6bZaUPSOd+xgy3J+vQru7p/GH Ukk+y2gF6bM6suMdBamj1K05hBGOBvcZODIgZVBI7Cc5fjbgqFfGBI3+lRr24pTs7hJtx+ g8QHxRdx4JNTETFyF8zbsfCcXUorOl/S59dvVggmT1ZcsDyF6YI665IN+EJ9YZxllkCCDk ke7z6xmGNREtEFlSnejI1R+5jSxBx73lFciZS4pnXFmxaIORpMB6jB2R6zYPXPGIorBwE4 i1Rs0LbBIEQhI+3aAzU1zwHfz/kU09omFdhPdi6+4kAD6Jx2TPdw4mUugLq/+g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1730640309; 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=hfLExYNgA4/zBKs4nlJoJ4n1nZRWFyWSIw0FMo3bIcs=; b=PoR0IuFjRTk6iocpGScC72k7uRmmd6FkOZRO7GYZ6JFp2XLY9JDtupq5k87kEkn+bPu4z9 T1/jWTpb5SZrMr3hsoIZad81JnUpQYlbTobc9At6WRt8G2DF0FMxS+MRelEVVWnplP0GRH +y6bFtO0vxhyUHBxgspQ8OLcURAGvOqYE1wamWH1WeHDDx0od6PlgazrCog5ZqeGm1ndHw jXST/GpEYLR5sZ1XZevpn6TEhv9dwy9dGUEwYEHbHPphSwosLYVFEtBU25eWVg7OWpf0AO P8krBx1ZTtoXoT1EHUjjAtm/pE+ALoqG7+O3WuxPiZMQFmtinlGesBAGDkxhYw== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1730640309; a=rsa-sha256; cv=none; b=MyxuDq13kQoM3CCe5tmmy95uEklWUDZmy/Sep/qbewUbNnOAQSbx8LB8d22HtBZCU7q0C2 bUcNeYHlpFr0Z1cv7715/AaDyIWWz/MnsNNyDfzG7m+NOqyTIjS4ulyNJ9F5R/r1xvWGn/ uF+NRKike1vOOnkqDp+s3UXV9UI12ZHHR1LT9SBiunO3Zi63T5Yanar5fUx65byYbeC7sQ XliNpGyMwd66u06K3MwxCPLCNe6HdoRh/7XCROtHTzZvuuEJZOrGSM6ZLSa+tjRFEMeXHy izT8IeS8xFyrQCLJjWG6s2ZpGQUwVivVdzdM04hqwdsylgByz3qax/KxBagfIA== 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 4XhFhP52Hzzqps; Sun, 3 Nov 2024 13:25:09 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.18.1/8.18.1) with ESMTP id 4A3DP95B017674; Sun, 3 Nov 2024 13:25:09 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.18.1/8.18.1/Submit) id 4A3DP9Xp017671; Sun, 3 Nov 2024 13:25:09 GMT (envelope-from git) Date: Sun, 3 Nov 2024 13:25:09 GMT Message-Id: <202411031325.4A3DP9Xp017671@gitrepo.freebsd.org> To: ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org From: Po-Chuan Hsieh Subject: git: f452d7b439d3 - main - math/py-pyreadstat: Add py-pyreadstat 1.2.8 List-Id: Commit messages for all branches of the ports repository List-Archive: https://lists.freebsd.org/archives/dev-commits-ports-all List-Help: List-Post: List-Subscribe: List-Unsubscribe: X-BeenThere: dev-commits-ports-all@freebsd.org Sender: owner-dev-commits-ports-all@FreeBSD.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: sunpoet X-Git-Repository: ports X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: f452d7b439d3ecb03464b87ccffc21a1b407e724 Auto-Submitted: auto-generated The branch main has been updated by sunpoet: URL: https://cgit.FreeBSD.org/ports/commit/?id=f452d7b439d3ecb03464b87ccffc21a1b407e724 commit f452d7b439d3ecb03464b87ccffc21a1b407e724 Author: Po-Chuan Hsieh AuthorDate: 2024-11-03 13:20:44 +0000 Commit: Po-Chuan Hsieh CommitDate: 2024-11-03 13:20:44 +0000 math/py-pyreadstat: Add py-pyreadstat 1.2.8 pyreadstat is a python package to read and write sas (sas7bdat, sas7bcat, xport), spps (sav, zsav, por) and stata (dta) data files into/from pandas dataframes. --- math/Makefile | 1 + math/py-pyreadstat/Makefile | 25 +++++++++++++++++++++++++ math/py-pyreadstat/distinfo | 3 +++ math/py-pyreadstat/files/patch-setup.py | 14 ++++++++++++++ math/py-pyreadstat/pkg-descr | 3 +++ 5 files changed, 46 insertions(+) diff --git a/math/Makefile b/math/Makefile index 04d118dcd1e7..e96538f03292 100644 --- a/math/Makefile +++ b/math/Makefile @@ -1055,6 +1055,7 @@ SUBDIR += py-pyodesys SUBDIR += py-pyprobables SUBDIR += py-pyreadr + SUBDIR += py-pyreadstat SUBDIR += py-pyrr SUBDIR += py-pysmt SUBDIR += py-pystan diff --git a/math/py-pyreadstat/Makefile b/math/py-pyreadstat/Makefile new file mode 100644 index 000000000000..bfdc74a27146 --- /dev/null +++ b/math/py-pyreadstat/Makefile @@ -0,0 +1,25 @@ +PORTNAME= pyreadstat +PORTVERSION= 1.2.8 +CATEGORIES= math python +MASTER_SITES= PYPI +PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX} + +MAINTAINER= sunpoet@FreeBSD.org +COMMENT= Read and Write SAS, SPSS and Stata files into/from pandas data frames +WWW= https://ofajardo.github.io/pyreadstat_documentation/_build/html/ \ + https://github.com/Roche/pyreadstat + +LICENSE= APACHE20 +LICENSE_FILE= ${WRKSRC}/LICENSE + +BUILD_DEPENDS= ${PYTHON_PKGNAMEPREFIX}setuptools>=0:devel/py-setuptools@${PY_FLAVOR} \ + ${PYTHON_PKGNAMEPREFIX}wheel>=0:devel/py-wheel@${PY_FLAVOR} +RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}pandas>=1.2.0,1:math/py-pandas@${PY_FLAVOR} + +USES= python +USE_PYTHON= autoplist concurrent cython pep517 + +post-install: + ${FIND} ${STAGEDIR}${PYTHON_SITELIBDIR} -name '*.so' -exec ${STRIP_CMD} {} + + +.include diff --git a/math/py-pyreadstat/distinfo b/math/py-pyreadstat/distinfo new file mode 100644 index 000000000000..f8963473ffb1 --- /dev/null +++ b/math/py-pyreadstat/distinfo @@ -0,0 +1,3 @@ +TIMESTAMP = 1730540890 +SHA256 (pyreadstat-1.2.8.tar.gz) = ced3f261659f10d23843e36ec3ad6699fcac9a863820e53c6fb4b6c1abcf9e94 +SIZE (pyreadstat-1.2.8.tar.gz) = 560144 diff --git a/math/py-pyreadstat/files/patch-setup.py b/math/py-pyreadstat/files/patch-setup.py new file mode 100644 index 000000000000..ee04a6d9cc21 --- /dev/null +++ b/math/py-pyreadstat/files/patch-setup.py @@ -0,0 +1,14 @@ +--- setup.py.orig 2024-10-18 20:21:39 UTC ++++ setup.py +@@ -26,11 +26,6 @@ if PY_MAJOR_VERSION < 3 and os.name == 'nt': + if PY_MAJOR_VERSION < 3 and os.name == 'nt': + raise Exception("Python 2 is not supported on Windows.") + +-cyver = int(Cython.__version__.split(".")[0]) +-if cyver < 3: +- msg = "Cython version 3 or newer required" +- raise Exception(msg) +- + ext = '.pyx' + + diff --git a/math/py-pyreadstat/pkg-descr b/math/py-pyreadstat/pkg-descr new file mode 100644 index 000000000000..9c725249ba40 --- /dev/null +++ b/math/py-pyreadstat/pkg-descr @@ -0,0 +1,3 @@ +pyreadstat is a python package to read and write sas (sas7bdat, sas7bcat, +xport), spps (sav, zsav, por) and stata (dta) data files into/from pandas +dataframes.