git: 679bf566bc5f - main - devel/py-typer: Convert to USE_PYTHON=pep517
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Tue, 21 Mar 2023 19:29:07 UTC
The branch main has been updated by sunpoet: URL: https://cgit.FreeBSD.org/ports/commit/?id=679bf566bc5f035e6a2d847b27369122a6eb09b5 commit 679bf566bc5f035e6a2d847b27369122a6eb09b5 Author: Po-Chuan Hsieh <sunpoet@FreeBSD.org> AuthorDate: 2023-03-21 18:45:37 +0000 Commit: Po-Chuan Hsieh <sunpoet@FreeBSD.org> CommitDate: 2023-03-21 19:21:05 +0000 devel/py-typer: Convert to USE_PYTHON=pep517 - Bump PORTREVISION for dependency and package change --- devel/py-typer/Makefile | 7 ++--- devel/py-typer/files/patch-pyproject.toml | 9 ++++++ devel/py-typer/files/setup.py | 49 ------------------------------- 3 files changed, 12 insertions(+), 53 deletions(-) diff --git a/devel/py-typer/Makefile b/devel/py-typer/Makefile index e2959e4f7f58..7692b42b29d7 100644 --- a/devel/py-typer/Makefile +++ b/devel/py-typer/Makefile @@ -1,5 +1,6 @@ PORTNAME= typer PORTVERSION= 0.7.0 +PORTREVISION= 1 CATEGORIES= devel python MASTER_SITES= PYPI PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX} @@ -11,10 +12,11 @@ WWW= https://github.com/tiangolo/typer LICENSE= MIT LICENSE_FILE= ${WRKSRC}/LICENSE +BUILD_DEPENDS= ${PYTHON_PKGNAMEPREFIX}flit-core>=2<4:devel/py-flit-core@${PY_FLAVOR} RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}click>=7.1.1<9.0.0:devel/py-click@${PY_FLAVOR} USES= python:3.6+ -USE_PYTHON= autoplist concurrent distutils +USE_PYTHON= autoplist concurrent pep517 NO_ARCH= yes @@ -25,7 +27,4 @@ ALL_DESC= All dependencies ALL_RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}colorama>=0.4.3<0.5.0:devel/py-colorama@${PY_FLAVOR} \ ${PYTHON_PKGNAMEPREFIX}shellingham>=1.3.0<2.0.0:devel/py-shellingham@${PY_FLAVOR} -post-patch: - @${SED} -e 's|%%PORTVERSION%%|${PORTVERSION}|' ${FILESDIR}/setup.py > ${WRKSRC}/setup.py - .include <bsd.port.mk> diff --git a/devel/py-typer/files/patch-pyproject.toml b/devel/py-typer/files/patch-pyproject.toml new file mode 100644 index 000000000000..95cc74cd2c13 --- /dev/null +++ b/devel/py-typer/files/patch-pyproject.toml @@ -0,0 +1,9 @@ +--- pyproject.toml.orig 2022-11-05 19:43:29 UTC ++++ pyproject.toml +@@ -1,5 +1,5 @@ + [build-system] +-requires = ["flit_core >=2,<3"] ++requires = ["flit_core >=2,<4"] + build-backend = "flit_core.buildapi" + + [tool.flit.metadata] diff --git a/devel/py-typer/files/setup.py b/devel/py-typer/files/setup.py deleted file mode 100644 index 7867a06f2f06..000000000000 --- a/devel/py-typer/files/setup.py +++ /dev/null @@ -1,49 +0,0 @@ -#!/usr/bin/env python -# setup.py generated by flit for tools that don't yet use PEP 517 - -from distutils.core import setup - -packages = \ -['typer'] - -package_data = \ -{'': ['*']} - -install_requires = \ -['click >= 7.1.1, <9.0.0'] - -extras_require = \ -{'all': ['colorama >=0.4.3,<0.5.0', - 'shellingham >=1.3.0,<2.0.0', - 'rich >=10.11.0,<13.0.0'], - 'dev': ['autoflake >=1.3.1,<2.0.0', - 'flake8 >=3.8.3,<4.0.0', - 'pre-commit >=2.17.0,<3.0.0'], - 'doc': ['mkdocs >=1.1.2,<2.0.0', - 'mkdocs-material >=8.1.4,<9.0.0', - 'mdx-include >=1.4.1,<2.0.0', - 'pillow >=9.3.0,<10.0.0', - 'cairosvg >=2.5.2,<3.0.0'], - 'test': ['shellingham >=1.3.0,<2.0.0', - 'pytest >=4.4.0,<8.0.0', - 'pytest-cov >=2.10.0,<5.0.0', - 'coverage >=6.2,<7.0', - 'pytest-xdist >=1.32.0,<4.0.0', - 'pytest-sugar >=0.9.4,<0.10.0', - 'mypy ==0.910', - 'black >=22.3.0,<23.0.0', - 'isort >=5.0.6,<6.0.0', - 'rich >=10.11.0,<13.0.0']} - -setup(name='typer', - version='%%PORTVERSION%%', - description='Typer, build great CLIs. Easy to code. Based on Python type hints.', - author='Sebastián RamÃrez', - author_email='tiangolo@gmail.com', - url='https://github.com/tiangolo/typer', - packages=packages, - package_data=package_data, - install_requires=install_requires, - extras_require=extras_require, - python_requires='>=3.6', - )