From nobody Fri Jul 21 06:38:48 2023 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 4R6fyw5Yw8z4nnmQ; Fri, 21 Jul 2023 06:38:48 +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 4R6fyw4gHFz3GwD; Fri, 21 Jul 2023 06:38:48 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1689921528; 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=EdYc2RLzbsvlQ8BnPOekU6uI60SYGaDl2g2tgRCUtco=; b=UTlpHnjD0Gl1EwM/mzQqci+2sW9T8P+i8UrE9+iAMgURFqX959AHBWHMn6Y6vHd5/OFQ50 JUMDzXK7MDn1QXrhbFYSxKMwdlbjV1gQ4+G4TNTekdSNkt/w6XfWE0ireArr7YCjCd3yCg pLZWsFqIC/dtytEQ25TUSe6LjKjlSFA21neBt9ID1yS5G5aXHEXO6hv10cY4hj5Riq1P2M KayiinXJxYL7tziBD4kt+aILdz48yx9w1G9XnYOSZKoKNI5eA7aPfOQfcWNmylnnKzjGQv BQx2bzqxXxwsO4ItTHk7Z2YuPvzaXuDeaurvYy+h761lg/hCIzeKfstiCXaFqQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1689921528; 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=EdYc2RLzbsvlQ8BnPOekU6uI60SYGaDl2g2tgRCUtco=; b=lbH7ci5istG6ef7VuKBTrR0MM3g9VyLfGiK/MmbwO5Vnj9S0H8uBEMuBggOtYLDdWrCkmr H3N6ZzbZgE2D/ub35CokRd4VZOirfbwa3naCDhJ8RK8/izHpbtUBi/KB6Gy8Kr2kd3lCwu J4G555os4rAJ16vfrmQHOyjLVlGrv+gyfL0HcrXIPnJLym6zMoMIp1eMyydO6QENIRbIYD vRfVzx0eqQkKJtYmOD80ojillUiqm9TCP0GZG3pulWX7bQ0raXHwcpUVp4dMXnmiAva5Ax JrNziQbvsY5MTQ2z4isnfloQYYH7uhq368FiRApveB3Y82gKyKoJ2EO7cZldGg== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1689921528; a=rsa-sha256; cv=none; b=t8Y+MFLTFqCnizCQsLk1iUjsyw07VwLQGDhAxJy5EM/fji9E1+PPRHHGJyKcuKXhb/bx4L xonBBzz7CPRfCfAZdRxBLm1qIVFVUPg37Tdjnzpd92jjZR9vS5JFMnkpWhrWWDTd25lWON tLF9TEn4JxtXS1a6gOTjJ3ZZl7my1jykvFMDdidUPocF3iMXxjNGM1767W3L4lchdbj3lI kZfnZTBH9te+Z3u4DO63di5k1z8JZFGuYb1Js94NmTdPvNyUUFeyOJiF4Ch7P92b3lmTf5 RXiNRveRxHNXFG0TJnY6dWtPKCSLsH2r6ppGCiNkuDJkQzLVysnq/2EmSM8+DA== 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 4R6fyw3n2Yz12Rw; Fri, 21 Jul 2023 06:38:48 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.17.1/8.17.1) with ESMTP id 36L6cmb9014044; Fri, 21 Jul 2023 06:38:48 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.17.1/8.17.1/Submit) id 36L6cmos014043; Fri, 21 Jul 2023 06:38:48 GMT (envelope-from git) Date: Fri, 21 Jul 2023 06:38:48 GMT Message-Id: <202307210638.36L6cmos014043@gitrepo.freebsd.org> To: ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org From: Yuri Victorovich Subject: git: c8101b3c76ca - main - math/py-qats: New port: Library for efficient processing and visualization of time series 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: Sender: owner-dev-commits-ports-all@freebsd.org X-BeenThere: dev-commits-ports-all@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: yuri X-Git-Repository: ports X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: c8101b3c76ca13d9561d320f8c4d54faadea3f10 Auto-Submitted: auto-generated The branch main has been updated by yuri: URL: https://cgit.FreeBSD.org/ports/commit/?id=c8101b3c76ca13d9561d320f8c4d54faadea3f10 commit c8101b3c76ca13d9561d320f8c4d54faadea3f10 Author: Yuri Victorovich AuthorDate: 2023-07-21 06:02:52 +0000 Commit: Yuri Victorovich CommitDate: 2023-07-21 06:38:38 +0000 math/py-qats: New port: Library for efficient processing and visualization of time series --- math/Makefile | 1 + math/py-qats/Makefile | 36 +++++++++++++++++++++++++++++++ math/py-qats/distinfo | 3 +++ math/py-qats/files/patch-qats_app_gui.py | 11 ++++++++++ math/py-qats/files/patch-requirements.txt | 20 +++++++++++++++++ math/py-qats/files/patch-setup.py | 27 +++++++++++++++++++++++ math/py-qats/pkg-descr | 20 +++++++++++++++++ 7 files changed, 118 insertions(+) diff --git a/math/Makefile b/math/Makefile index 208191e8ea97..0d8c393b4db6 100644 --- a/math/Makefile +++ b/math/Makefile @@ -1035,6 +1035,7 @@ SUBDIR += py-python-picard SUBDIR += py-pytorchvideo SUBDIR += py-pyvtk + SUBDIR += py-qats SUBDIR += py-qdldl SUBDIR += py-quadprog SUBDIR += py-random2 diff --git a/math/py-qats/Makefile b/math/py-qats/Makefile new file mode 100644 index 000000000000..76c575f2bd2a --- /dev/null +++ b/math/py-qats/Makefile @@ -0,0 +1,36 @@ +PORTNAME= qats +DISTVERSION= 4.11.1 +CATEGORIES= math +MASTER_SITES= PYPI +PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX} + +MAINTAINER= yuri@FreeBSD.org +COMMENT= Library for efficient processing and visualization of time series +WWW= https://github.com/dnvgl/qats + +LICENSE= MIT +LICENSE_FILE= ${WRKSRC}/LICENSE + +BUILD_DEPENDS= ${PYTHON_PKGNAMEPREFIX}setuptools_scm>=3.4.3:devel/py-setuptools_scm@${PY_FLAVOR} \ + ${PYTHON_PKGNAMEPREFIX}sphinx>0:textproc/py-sphinx@${PY_FLAVOR} \ + ${PYTHON_PKGNAMEPREFIX}wheel>0:devel/py-wheel@${PY_FLAVOR} +RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}QtPy>=1.9.0:devel/py-QtPy@${PY_FLAVOR} \ + ${PYTHON_PKGNAMEPREFIX}furo>=2022.12.7:textproc/py-furo@${PY_FLAVOR} \ + ${PYTHON_PKGNAMEPREFIX}h5py>0:science/py-h5py@${PY_FLAVOR} \ + ${PYTHON_PKGNAMEPREFIX}matplotlib>0:math/py-matplotlib@${PY_FLAVOR} \ + ${PYTHON_PKGNAMEPREFIX}myst-parser>=0.18.1:textproc/py-myst-parser@${PY_FLAVOR} \ + ${PYTHON_PKGNAMEPREFIX}npTDMS>=1.1.0:misc/py-npTDMS@${PY_FLAVOR} \ + ${PYNUMPY} \ + ${PYTHON_PKGNAMEPREFIX}openpyxl>=3.0.5:textproc/py-openpyxl@${PY_FLAVOR} \ + ${PYTHON_PKGNAMEPREFIX}pandas>0:math/py-pandas@${PY_FLAVOR} \ + ${PYTHON_PKGNAMEPREFIX}pymatreader>=0.0.24:misc/py-pymatreader@${PY_FLAVOR} \ + ${PYTHON_PKGNAMEPREFIX}pyside2>=5.15.2:devel/pyside2@${PY_FLAVOR} \ + ${PYTHON_PKGNAMEPREFIX}scipy>=1.7.2:science/py-scipy@${PY_FLAVOR} + +USES= pyqt:5 python +USE_PYTHON= distutils concurrent autoplist pytest +USE_PYQT= pyqt5 + +NO_ARCH= yes + +.include diff --git a/math/py-qats/distinfo b/math/py-qats/distinfo new file mode 100644 index 000000000000..ba36b59e21b9 --- /dev/null +++ b/math/py-qats/distinfo @@ -0,0 +1,3 @@ +TIMESTAMP = 1689899243 +SHA256 (qats-4.11.1.tar.gz) = 63766918714dc71087bf4af4d357eb11ce5dddd910d0dae3421134e91acb7a44 +SIZE (qats-4.11.1.tar.gz) = 51717904 diff --git a/math/py-qats/files/patch-qats_app_gui.py b/math/py-qats/files/patch-qats_app_gui.py new file mode 100644 index 000000000000..92c9af373967 --- /dev/null +++ b/math/py-qats/files/patch-qats_app_gui.py @@ -0,0 +1,11 @@ +--- qats/app/gui.py.orig 2023-01-03 17:37:48 UTC ++++ qats/app/gui.py +@@ -48,7 +48,7 @@ LOGGING_LEVELS = dict( + if sys.platform == "win32": + SETTINGS_FILE = os.path.join(os.getenv("APPDATA", os.getenv("USERPROFILE", "")), "qats.settings") + else: +- SETTINGS_FILE = os.path.join("var", "lib", "qats.settings") ++ SETTINGS_FILE = os.path.join("/home", os.getlogin(), ".config", "qats.settings") + ICON_FILE = resource_filename("qats.app", "qats.ico") + + STATS_ORDER = ["name", "min", "max", "mean", "std", "skew", "kurt", "tz", "wloc", "wscale", "wshape", diff --git a/math/py-qats/files/patch-requirements.txt b/math/py-qats/files/patch-requirements.txt new file mode 100644 index 000000000000..77be16a56eda --- /dev/null +++ b/math/py-qats/files/patch-requirements.txt @@ -0,0 +1,20 @@ +--- requirements.txt.orig 2023-07-21 05:35:07 UTC ++++ requirements.txt +@@ -1,12 +1,12 @@ +-h5py>=3.5.0, <=3.7.0 ++h5py>=3.5.0 + pymatreader==0.0.24 +-matplotlib>=3.3.3, <=3.6 ++matplotlib>=3.3.3 + npTDMS==1.1.0 +-numpy>=1.21.6, <=1.24.* ++numpy>=1.21.6 + openpyxl==3.0.5 +-pandas>=1.1.4, <=1.5 ++pandas>=1.1.4 + QtPy==1.9.0 +-pyside2>=5.15.2, <5.16 ++pyside2>=5.15.2 + PyQt5>=5.15.2, <=5.15.7 + scipy>=1.7.2, <=1.9.2 # in accordance with https://docs.scipy.org/doc/scipy/dev/toolchain.html#numpy + setuptools-scm>=7.1.0, <=8 diff --git a/math/py-qats/files/patch-setup.py b/math/py-qats/files/patch-setup.py new file mode 100644 index 000000000000..ccf1d7d950ae --- /dev/null +++ b/math/py-qats/files/patch-setup.py @@ -0,0 +1,27 @@ +--- setup.py.orig 2023-07-21 05:37:29 UTC ++++ setup.py +@@ -22,15 +22,15 @@ setup( + python_requires=">=3.7, <3.11", + setup_requires=["setuptools_scm"], + install_requires=[ +- "numpy>=1,<2", +- "openpyxl>=3,<4", +- "scipy>=1,<2", +- "matplotlib>=3,<4", +- "npTDMS>=1,<2", +- "h5py>=2.7,<4", +- "QtPy>=1,<2", +- "pandas>=1,<2", +- "pymatreader>=0.0.20,<1", ++ "numpy>=1", ++ "openpyxl>=3", ++ "scipy>=1", ++ "matplotlib>=3", ++ "npTDMS>=1", ++ "h5py>=2.7", ++ "QtPy>=1", ++ "pandas>=1", ++ "pymatreader>=0.0.20", + "pywin32; platform_system == 'Windows'" + ], + entry_points={ diff --git a/math/py-qats/pkg-descr b/math/py-qats/pkg-descr new file mode 100644 index 000000000000..cde244adfe49 --- /dev/null +++ b/math/py-qats/pkg-descr @@ -0,0 +1,20 @@ +QATS is a Python library and GUI for efficient processing and visualization +of time series. + +QATS provides tools for: +* Import and export from/to various pre-defined time series file formats +* Signal processing +* Inferring statistical distributions +* Cycle counting using the Rainflow algorithm + +It was originally created to handle time series files exported from SIMO and +RIFLEX. Now it also handles SIMA hdf5 (.h5) files, Matlab (version < 7.3) +.mat files, CSV files and more. + +QATS also features a GUI which offers efficient and low threshold processing +and visualization of time series. It is perfect for inspecting, comparing and +reporting: +* time series +* power spectral density distributions +* peak and extreme distributions +* cycle distributions