From nobody Mon Dec 26 02:35:03 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 4NgMMD0PPPz1HRvd; Mon, 26 Dec 2022 02:35:04 +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 4NgMMC6vcpz3llx; Mon, 26 Dec 2022 02:35:03 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1672022104; 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=77SXQyeL2dUrirovS6l/ddTZVVxp21ohcRTDKl1qtvk=; b=ufbFOWnms4VxrZB+aoHJO23Hva8tGrEWvDMq9FqUoZ42evg/iflssTFuehmfRpVCvxHh0e R5Qf7MZk8MWPrbQKnV65xi4aiDI7gyG5H0ReuWb8mBiKS2KRbP3VCWfMcKx5TmiJwM/2RT 3nuprQrwwwWwtzc6CQTEUWhPn90QhnmbUa4aR4jrGH7MJoAPt0JUJWrfSni09eJWUFOvLB nHNjBFpwqZjb70ZTHB9S2ftvdjd5OHM/dyTjS0fsh7+Y+XBdl/Nzjak5cPxypELeLoOTjP 3905J+tWam3ICjZRMicbHNsdB3ObmJgdg7dJ992HI6Cms7QlhSdmAsnmxDvF/w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1672022104; 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=77SXQyeL2dUrirovS6l/ddTZVVxp21ohcRTDKl1qtvk=; b=yza2mAKs2XaDyf0eejY3pzw1jeLIiQT+9gz/ybvP+YXZXjHlEdLy9RrAKEf4xE4GlL9qth APpD98DXGz5amN2JbljDFIwLk6kRs2emeqcLwPsyM3vTlj90Dca1+FKG0QKEh86si+7CXO 7/ikB92VRM69bGl4JSyBfhiojVf/xb7IszdeO9V7xgo7IqASGzh64wwOrJTVG9m0SE0HXy 1zr0zURaheIJx+0Mbk0S0g8DxrfBIFVSdLUqJXbLXPifLuYPsy71sjBZwvouk81rYdnIpa wHZRL+/vSTVZnWB5mwKa4dCW2l1wH90VQ+JhMTFnjRmVdOp3IsCfb3lu79NRzQ== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1672022104; a=rsa-sha256; cv=none; b=wMnrb06srahJpy8Q7OBnUaWrOf6ezIwesHRJvTshDcjKclkwLc3QlsPXFbqjZlk7K/lSw/ 1Gv7jXzqzL+1wukHCxYwG3a7/7EAl7yb7PbU5fdoo71Bs11c353npcYKd8mVkIbLv1gpnQ VOXS61MsZE0+24iVGdmL5KkPDn6Q5nSHh2K0crnqLQakfROvg2KMpsmUUJd3RSD1Wj0kRm YvPleKdC2bbTMg0+kTPJcKM+cV5r9atfqGv/9euI41F4g9RgFsxrf0g7EpPKsmTdECbTP8 Gqbdir5rb4HxfCmP2zZBp8knC2OeWTjiTebWoyEmccmUHRT6/7MnONyamn/QNw== 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 4NgMMC5HP6zFbx; Mon, 26 Dec 2022 02:35:03 +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 2BQ2Z37f084650; Mon, 26 Dec 2022 02:35:03 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 2BQ2Z3sq084649; Mon, 26 Dec 2022 02:35:03 GMT (envelope-from git) Date: Mon, 26 Dec 2022 02:35:03 GMT Message-Id: <202212260235.2BQ2Z3sq084649@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: 8585a47067e7 - main - hebrew/py-pyluach: New port: Python package for manipulating Hebrew dates 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: yuri X-Git-Repository: ports X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: 8585a47067e7f55d68409c693f48e87a3fc7667c Auto-Submitted: auto-generated X-ThisMailContainsUnwantedMimeParts: N The branch main has been updated by yuri: URL: https://cgit.FreeBSD.org/ports/commit/?id=8585a47067e7f55d68409c693f48e87a3fc7667c commit 8585a47067e7f55d68409c693f48e87a3fc7667c Author: Yuri Victorovich AuthorDate: 2022-12-25 22:00:19 +0000 Commit: Yuri Victorovich CommitDate: 2022-12-26 02:34:58 +0000 hebrew/py-pyluach: New port: Python package for manipulating Hebrew dates --- hebrew/Makefile | 1 + hebrew/py-pyluach/Makefile | 23 +++++++++++++++++++++++ hebrew/py-pyluach/distinfo | 3 +++ hebrew/py-pyluach/files/test.py | 16 ++++++++++++++++ hebrew/py-pyluach/pkg-descr | 12 ++++++++++++ 5 files changed, 55 insertions(+) diff --git a/hebrew/Makefile b/hebrew/Makefile index d4d9b631a1d6..d334197b7f44 100644 --- a/hebrew/Makefile +++ b/hebrew/Makefile @@ -7,5 +7,6 @@ SUBDIR += hspell SUBDIR += hunspell SUBDIR += libreoffice + SUBDIR += py-pyluach .include diff --git a/hebrew/py-pyluach/Makefile b/hebrew/py-pyluach/Makefile new file mode 100644 index 000000000000..7eafe9784c61 --- /dev/null +++ b/hebrew/py-pyluach/Makefile @@ -0,0 +1,23 @@ +PORTNAME= pyluach +DISTVERSION= 2.0.2 +CATEGORIES= hebrew python +MASTER_SITES= CHEESESHOP +PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX} + +MAINTAINER= yuri@FreeBSD.org +COMMENT= Python package for manipulating Hebrew dates +WWW= https://github.com/simlist/pyluach + +LICENSE= MIT + +USES= python:3.7+ +USE_PYTHON= distutils autoplist + +NO_ARCH= yes + +TEST_ENV= ${MAKE_ENV} PYTHONPATH=${STAGEDIR}${PYTHONPREFIX_SITELIBDIR} + +do-test: + @${SETENV} ${TEST_ENV} ${PYTHON_CMD} ${FILESDIR}/test.py + +.include diff --git a/hebrew/py-pyluach/distinfo b/hebrew/py-pyluach/distinfo new file mode 100644 index 000000000000..a95f7296eeea --- /dev/null +++ b/hebrew/py-pyluach/distinfo @@ -0,0 +1,3 @@ +TIMESTAMP = 1672004952 +SHA256 (pyluach-2.0.2.tar.gz) = 97894311f1b0d59f5fcab1d12147f8049bce315915d8dcd806bfbf41c94b50cf +SIZE (pyluach-2.0.2.tar.gz) = 21562 diff --git a/hebrew/py-pyluach/files/test.py b/hebrew/py-pyluach/files/test.py new file mode 100644 index 000000000000..d234c73a2cee --- /dev/null +++ b/hebrew/py-pyluach/files/test.py @@ -0,0 +1,16 @@ +from pyluach import dates, hebrewcal, parshios + +today = dates.HebrewDate.today() +lastweek_gregorian = (today - 7).to_greg() +print(f"lastweek_gregorian