git: 0b20522687fb - main - devel/py-findpython: Add py-findpython 0.1.3
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Mon, 07 Mar 2022 18:15:55 UTC
The branch main has been updated by sunpoet:
URL: https://cgit.FreeBSD.org/ports/commit/?id=0b20522687fbbb5676e34a30d8c77e305355632a
commit 0b20522687fbbb5676e34a30d8c77e305355632a
Author: Po-Chuan Hsieh <sunpoet@FreeBSD.org>
AuthorDate: 2022-03-07 17:46:39 +0000
Commit: Po-Chuan Hsieh <sunpoet@FreeBSD.org>
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 <sunpoet@FreeBSD.org>
+
+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 <bsd.port.mk>
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 <mianghong@gmail.com>',
+ '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