Date: Sat, 30 Jul 2022 06:01:35 GMT From: Po-Chuan Hsieh <sunpoet@FreeBSD.org> To: ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org Subject: git: 5c95a0b8fad2 - main - devel/py-unearth: Add py-unearth 0.5.2 Message-ID: <202207300601.26U61ZFs047737@gitrepo.freebsd.org>
next in thread | raw e-mail | index | archive | help
The branch main has been updated by sunpoet: URL: https://cgit.FreeBSD.org/ports/commit/?id=5c95a0b8fad25adcfbac6e45a122463a8563de96 commit 5c95a0b8fad25adcfbac6e45a122463a8563de96 Author: Po-Chuan Hsieh <sunpoet@FreeBSD.org> AuthorDate: 2022-07-30 05:56:31 +0000 Commit: Po-Chuan Hsieh <sunpoet@FreeBSD.org> 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 <bsd.port.pre.mk> + +.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 <bsd.port.post.mk> 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 <mianghong@gmail.com>', + '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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202207300601.26U61ZFs047737>