Skip to content
Snippets Groups Projects
Verified Commit 5d5e2ca2 authored by sunpoet's avatar sunpoet
Browse files

devel/py-findpython: Convert to USE_PYTHON=pep517

- Bump PORTREVISION for dependency and package change
parent a30f6630
No related branches found
No related tags found
No related merge requests found
PORTNAME= findpython
PORTVERSION= 0.2.3
PORTREVISION= 1
CATEGORIES= devel python
MASTER_SITES= PYPI
PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
......@@ -11,15 +12,12 @@ WWW= https://github.com/frostming/findpython
LICENSE= MIT
LICENSE_FILE= ${WRKSRC}/LICENSE
BUILD_DEPENDS= ${PYTHON_PKGNAMEPREFIX}pdm-pep517>=0:devel/py-pdm-pep517@${PY_FLAVOR}
RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}packaging>=20:devel/py-packaging@${PY_FLAVOR}
USES= python:3.7+
USE_PYTHON= autoplist concurrent distutils
USE_PYTHON= autoplist concurrent pep517
NO_ARCH= yes
post-patch:
@${RM} ${WRKSRC}/pyproject.toml
@${SED} -e 's|%%PORTVERSION%%|${PORTVERSION}|' ${FILESDIR}/setup.py > ${WRKSRC}/setup.py
.include <bsd.port.mk>
# -*- 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.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)
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment