From nobody Sat Jul 30 06:01:35 2022 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 4Lvv0H5n4Xz4XPfT; Sat, 30 Jul 2022 06:01:35 +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 4Lvv0H5M6Vz3Fbb; Sat, 30 Jul 2022 06:01:35 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1659160895; 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=ZA0jJLgXLPZ2t1r9WV1oT4L2Sq86Pm4YsLAN42rRnnc=; b=tKNRGLA95mI96jW7sqr8hb5iP6eR7g627aG1FC+iWfcbQpxF0QXnJSWV1pmiD4DXMbpLbI CZ6u5blbt+ekYQicoGfmIYcwgdcvfQfm3rNexcuwDY6LP/ED8TRWiPfbIKW9tqawCk6DC/ Y8hKA4FiyiEfIpG4yXWW0FKw6LdwguW6By7jhqn5OQoElVyn9qDgtr2rq6yfKADaCAbUxH 21GV+Gagr5m6fF0a1mNEIibRxvvmbBWvVKDp52GhXJt9rPAqvCIiePswbQTA5GPrFRQoUg sQhG/N15xeel29UzcZQ0pUV6vfIULKC6LDcuAT7K31230gcRNIhpXV7MK8tBAg== 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 4Lvv0H4SRRz140B; Sat, 30 Jul 2022 06:01:35 +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 26U61ZR7047738; Sat, 30 Jul 2022 06:01:35 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 26U61ZFs047737; Sat, 30 Jul 2022 06:01:35 GMT (envelope-from git) Date: Sat, 30 Jul 2022 06:01:35 GMT Message-Id: <202207300601.26U61ZFs047737@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: 5c95a0b8fad2 - main - devel/py-unearth: Add py-unearth 0.5.2 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: sunpoet X-Git-Repository: ports X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: 5c95a0b8fad25adcfbac6e45a122463a8563de96 Auto-Submitted: auto-generated ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1659160895; 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=ZA0jJLgXLPZ2t1r9WV1oT4L2Sq86Pm4YsLAN42rRnnc=; b=IhFnTT+CzDW9eYWcUzdIhFJemFnQCZ9NnkY3k/wEhsDtRORWUejrex0OT9KwkuwhJ39ys6 L3hkDffwJ8OTJxvJXtwUEgxqegcbfqWxacv7oA1E/GRc8hVR0KIk2GrMLT52Xpc9X3torm dt6jsXSBrI7y4nSlTwtezlUGFB5l/IMh0DKUKU9fajKX4GojiQFWzsq7RQOHV356aigKno 1ct6GsKCFFCO1wnsk7+e8/St5anKTpOeSncGslgQfN3QJt3SG3af4CgczkayLW8NZ1egVA v55o1jZheFo3D/2Ay1VBIuNrIHExlb+nYi0ZIqdBXsOpypyyaa/brX0dUhWQGg== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1659160895; a=rsa-sha256; cv=none; b=KXG0z1MI8g7S2qUvt3YPm0OqF/x2r7Sl4jabRYcnTHhQNALhJzAYZed/QG0WeTcrFmWHIL glnLVo3CvpPuiAqqVHguH+c5Q1zj2s4KSeP8dv797Wj5hMeuP0ayCG2XylYhrQTDHPXLH/ /ueoa8jKTyydCXqiax4/BMuga4wwae+zx+mMNqwg5wlJKmgc5gjp8tFl2oehDFiJMDhOeQ h04FEnPywK01sEZ7r9SZI8aHGisfLj4l5ywCvypwRD1Vt10lbFKlRtQLVczpNQdFcFvV3s FX6Wjy6CiidsWCMZ53uUfBpc8I+RDYLM2OJ5BsReFeuinam555x786advYzRoQ== ARC-Authentication-Results: i=1; mx1.freebsd.org; none X-ThisMailContainsUnwantedMimeParts: N The branch main has been updated by sunpoet: URL: https://cgit.FreeBSD.org/ports/commit/?id=5c95a0b8fad25adcfbac6e45a122463a8563de96 commit 5c95a0b8fad25adcfbac6e45a122463a8563de96 Author: Po-Chuan Hsieh AuthorDate: 2022-07-30 05:56:31 +0000 Commit: Po-Chuan Hsieh CommitDate: 2022-07-30 05:56:31 +0000 devel/py-unearth: Add py-unearth 0.5.2 unearth is a utility to fetch and download python packages. WWW: https://github.com/frostming/unearth --- devel/Makefile | 1 + devel/py-unearth/Makefile | 30 +++++++++++++++++++++ devel/py-unearth/distinfo | 3 +++ devel/py-unearth/files/setup.py | 58 +++++++++++++++++++++++++++++++++++++++++ devel/py-unearth/pkg-descr | 3 +++ 5 files changed, 95 insertions(+) diff --git a/devel/Makefile b/devel/Makefile index 32d49811b776..3b26052f395a 100644 --- a/devel/Makefile +++ b/devel/Makefile @@ -5385,6 +5385,7 @@ SUBDIR += py-ua_parser SUBDIR += py-uhid-freebsd SUBDIR += py-ujson + SUBDIR += py-unearth SUBDIR += py-unicodecsv SUBDIR += py-unicodedata2 SUBDIR += py-unipath diff --git a/devel/py-unearth/Makefile b/devel/py-unearth/Makefile new file mode 100644 index 000000000000..e6fc3460798f --- /dev/null +++ b/devel/py-unearth/Makefile @@ -0,0 +1,30 @@ +PORTNAME= unearth +PORTVERSION= 0.5.2 +CATEGORIES= devel python +MASTER_SITES= CHEESESHOP +PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX} + +MAINTAINER= sunpoet@FreeBSD.org +COMMENT= Utility to fetch and download python packages + +LICENSE= MIT +LICENSE_FILE= ${WRKSRC}/LICENSE + +RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}packaging>=20:devel/py-packaging@${PY_FLAVOR} \ + ${PYTHON_PKGNAMEPREFIX}requests>=2.25:www/py-requests@${PY_FLAVOR} + +USES= python:3.7+ +USE_PYTHON= autoplist concurrent distutils + +NO_ARCH= yes + +.include + +.if ${PYTHON_REL} < 30800 +RUN_DEPENDS+= ${PYTHON_PKGNAMEPREFIX}cached-property>=1.5.2:devel/py-cached-property@${PY_FLAVOR} +.endif + +post-patch: + @${SED} -e 's|%%PORTVERSION%%|${PORTVERSION}|' ${FILESDIR}/setup.py > ${WRKSRC}/setup.py + +.include diff --git a/devel/py-unearth/distinfo b/devel/py-unearth/distinfo new file mode 100644 index 000000000000..63853b911f7d --- /dev/null +++ b/devel/py-unearth/distinfo @@ -0,0 +1,3 @@ +TIMESTAMP = 1658506547 +SHA256 (unearth-0.5.2.tar.gz) = e51696b1913f591b41927b3eef8cebe84668fb769bf81f88094b7cc99afa706d +SIZE (unearth-0.5.2.tar.gz) = 266158 diff --git a/devel/py-unearth/files/setup.py b/devel/py-unearth/files/setup.py new file mode 100644 index 000000000000..ffe4ae3caaad --- /dev/null +++ b/devel/py-unearth/files/setup.py @@ -0,0 +1,58 @@ +# -*- coding: utf-8 -*- +from setuptools import setup + +import codecs + +with codecs.open('README.md', encoding="utf-8") as fp: + long_description = fp.read() +INSTALL_REQUIRE = [ + 'packaging>=20', + 'requests>=2.25', + 'cached-property>=1.5.2; python_version < "3.8"', +] +EXTRAS_REQUIRE = { + 'keyring': [ + 'keyring', + ], +} +ENTRY_POINTS = { + 'console_scripts': [ + 'unearth = unearth.__main__:cli', + ], +} + +setup_kwargs = { + 'name': 'unearth', + 'version': '%%PORTVERSION%%', + 'description': 'A utility to fetch and download python packages', + 'long_description': long_description, + 'license': 'MIT', + 'author': '', + 'author_email': 'Frost Ming ', + 'maintainer': None, + 'maintainer_email': None, + 'url': '', + 'packages': [ + 'unearth', + 'unearth.vcs', + ], + 'package_dir': {'': 'src'}, + 'package_data': {'': ['*']}, + 'long_description_content_type': 'text/markdown', + 'classifiers': [ + 'Development Status :: 3 - Alpha', + 'Intended Audience :: Developers', + 'Programming Language :: Python :: 3', + 'Programming Language :: Python :: 3 :: Only', + 'Programming Language :: Python :: 3.7', + 'Programming Language :: Python :: 3.8', + 'Programming Language :: Python :: 3.9', + 'Programming Language :: Python :: 3.10', + ], + 'install_requires': INSTALL_REQUIRE, + 'extras_require': EXTRAS_REQUIRE, + 'python_requires': '>=3.7', + 'entry_points': ENTRY_POINTS, +} + +setup(**setup_kwargs) diff --git a/devel/py-unearth/pkg-descr b/devel/py-unearth/pkg-descr new file mode 100644 index 000000000000..9e98e36f09c8 --- /dev/null +++ b/devel/py-unearth/pkg-descr @@ -0,0 +1,3 @@ +unearth is a utility to fetch and download python packages. + +WWW: https://github.com/frostming/unearth