From nobody Mon Mar 07 18:15:55 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 C08E119F8E91; Mon, 7 Mar 2022 18:15:57 +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 4KC68X1Jyjz3H7h; Mon, 7 Mar 2022 18:15:56 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1646676956; 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=FQ/Z04N+aJ+mLfuxFYKigNDGTFMlDVfMOcNInMlQf80=; b=R3xKTdHB966ZcHno9VAUL2GVJu5sHVbtIIMwoBxzeeu2IJzVueJt4TZ2+TTh5aZHIsogGJ gGS++itSAuIDRw+1DNzhPceDE4WDkAXn+ApjNStf13uj+b09YwX60xXTwxjPluYkIlz3IX CxAskCqMjTm2XqtORSk8vWeC8XUpZd3eYnsr/bw/6G/4X2jDsdOL19dC0bfHunS2rtG0ml mzRnMmVGw0XcALC8jYbDcCAy84AauctNYmAur4iYLIJ5L0Xi7QAlgAvKGmEbJQeLaFqDgU h6/HIDWZfvgSF1GDSSp7mddgpUREokujlfwIjFV+9Nx5Eb1Drwa+nBGFZuayHw== 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 EF55952AF; Mon, 7 Mar 2022 18:15:55 +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 227IFttT058391; Mon, 7 Mar 2022 18:15:55 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 227IFtVa058388; Mon, 7 Mar 2022 18:15:55 GMT (envelope-from git) Date: Mon, 7 Mar 2022 18:15:55 GMT Message-Id: <202203071815.227IFtVa058388@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: 0b20522687fb - main - devel/py-findpython: Add py-findpython 0.1.3 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: sunpoet X-Git-Repository: ports X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: 0b20522687fbbb5676e34a30d8c77e305355632a Auto-Submitted: auto-generated ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1646676956; 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=FQ/Z04N+aJ+mLfuxFYKigNDGTFMlDVfMOcNInMlQf80=; b=Oi5h88eq8B8KLF28eI8PmsHkId9KD34rvkQdKKpXImcaEk73jkKtjF1LwaBqsjXpZFH0GH BmmSk76IPwbTiadX+MXuZVCAxxA4URfKlGiOvF0RXfmyGzpj3VyLMOsUxcjDneu95VgKUH PFYTQPGDeSweLNBV1yBPSprOuM93fLKZeIs6qW/MddMrSH/JbnsMjclRhKTRhksWkoQQpk D+PK3keRE83abRYrOf6FD8dnbTErfjLH3plQSVp0AknFY58txphkLKjc0So4k/kG7ZaEGD tb4ivrVgUnKJcBbJuH0m5bHBoCJSQTGwkmN6L5Gwbx0U6hxVNtOyP0PRlNrFRQ== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1646676956; a=rsa-sha256; cv=none; b=J6DGs5VRTRkwtNLDkXJXHS6DBFyspDjTVtily7nLarKQcqaSyCzMzgfQlYxuxnYx2i5dTN wdQoKsPMvxPmMOHyhMKzVJqt1MAOQctdfVsZLVg2MJSM/yBVcJ7+kR0MxVhOrxpHrwdAnQ 2kEYixCPmlRXD+B6kIvBtkj9qZJW3il04lxZbwb7bGwvkQox75Z0SMYyd/EOMkNnQdEQ5E 3yhaXZrMFaCNLOQpG1LQqOQuFxcF9m6/jHEUIaOqQ1YqDbZU6mJsRtByh5N3HRq5MpFeuN 8B/BZYbOJn06YPL/uTTb6tsU8rDmTg3h66iMaRK7kVeHPJ4Eox8FW6Wj5Qe1rQ== 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=0b20522687fbbb5676e34a30d8c77e305355632a commit 0b20522687fbbb5676e34a30d8c77e305355632a Author: Po-Chuan Hsieh AuthorDate: 2022-03-07 17:46:39 +0000 Commit: Po-Chuan Hsieh CommitDate: 2022-03-07 18:10:50 +0000 devel/py-findpython: Add py-findpython 0.1.3 This library is a rewrite of pythonfinder project by @techalchemy. It simplifies the whole code structure while preserving most of the original features. WWW: https://github.com/frostming/findpython --- devel/Makefile | 1 + devel/py-findpython/Makefile | 25 +++++++++++++++++++ devel/py-findpython/distinfo | 3 +++ devel/py-findpython/files/setup.py | 49 ++++++++++++++++++++++++++++++++++++++ devel/py-findpython/pkg-descr | 4 ++++ 5 files changed, 82 insertions(+) diff --git a/devel/Makefile b/devel/Makefile index 4b54012d2645..8dbfb04cd2fe 100644 --- a/devel/Makefile +++ b/devel/Makefile @@ -4516,6 +4516,7 @@ SUBDIR += py-filemagic SUBDIR += py-filetype SUBDIR += py-findlibs + SUBDIR += py-findpython SUBDIR += py-first SUBDIR += py-five.globalrequest SUBDIR += py-fixtures diff --git a/devel/py-findpython/Makefile b/devel/py-findpython/Makefile new file mode 100644 index 000000000000..6e5a3c779208 --- /dev/null +++ b/devel/py-findpython/Makefile @@ -0,0 +1,25 @@ +# Created by: Po-Chuan Hsieh + +PORTNAME= findpython +PORTVERSION= 0.1.3 +CATEGORIES= devel python +MASTER_SITES= CHEESESHOP +PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX} + +MAINTAINER= sunpoet@FreeBSD.org +COMMENT= Utility to find python versions on your system + +LICENSE= MIT +LICENSE_FILE= ${WRKSRC}/LICENSE + +RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}packaging>=20:devel/py-packaging@${PY_FLAVOR} + +USES= python:3.7+ +USE_PYTHON= autoplist concurrent distutils + +NO_ARCH= yes + +post-patch: + @${SED} -e 's|%%PORTVERSION%%|${PORTVERSION}|' ${FILESDIR}/setup.py > ${WRKSRC}/setup.py + +.include diff --git a/devel/py-findpython/distinfo b/devel/py-findpython/distinfo new file mode 100644 index 000000000000..e99a7451f9c4 --- /dev/null +++ b/devel/py-findpython/distinfo @@ -0,0 +1,3 @@ +TIMESTAMP = 1646057846 +SHA256 (findpython-0.1.3.tar.gz) = b55a416b9fcf2d28721bfbea1ceb2a6cb67a00f99ec4b94a76da22c7a2002870 +SIZE (findpython-0.1.3.tar.gz) = 15554 diff --git a/devel/py-findpython/files/setup.py b/devel/py-findpython/files/setup.py new file mode 100644 index 000000000000..96d31653b1cf --- /dev/null +++ b/devel/py-findpython/files/setup.py @@ -0,0 +1,49 @@ +# -*- coding: utf-8 -*- +from setuptools import setup + +import codecs + +with codecs.open('README.md', encoding="utf-8") as fp: + long_description = fp.read() +INSTALL_REQUIRES = [ + 'packaging>=20', +] +ENTRY_POINTS = { + 'console_scripts': [ + 'findpython = findpython.__main__:main', + ], +} + +setup_kwargs = { + 'name': 'findpython', + 'version': '%%PORTVERSION%%', + 'description': 'A utility to find python versions on your system', + 'long_description': long_description, + 'license': 'MIT', + 'author': '', + 'author_email': 'Frost Ming ', + 'maintainer': None, + 'maintainer_email': None, + 'url': '', + 'packages': [ + 'findpython', + 'findpython._vendor', + 'findpython._vendor.pep514tools', + 'findpython.providers', + ], + 'package_dir': {'': 'src'}, + 'package_data': {'': ['*']}, + 'long_description_content_type': 'text/markdown', + 'classifiers': [ + 'Programming Language :: Python :: 3', + 'Programming Language :: Python :: 3.7', + 'Programming Language :: Python :: 3.8', + 'Programming Language :: Python :: 3.9', + 'Programming Language :: Python :: 3.10', + ], + 'install_requires': INSTALL_REQUIRES, + 'python_requires': '>=3.7', + 'entry_points': ENTRY_POINTS, +} + +setup(**setup_kwargs) diff --git a/devel/py-findpython/pkg-descr b/devel/py-findpython/pkg-descr new file mode 100644 index 000000000000..fef1df9629f3 --- /dev/null +++ b/devel/py-findpython/pkg-descr @@ -0,0 +1,4 @@ +This library is a rewrite of pythonfinder project by @techalchemy. It simplifies +the whole code structure while preserving most of the original features. + +WWW: https://github.com/frostming/findpython