git: c2a04964fc8a - main - finance/py-quantecon: Convert to USE_PYTHON=pep517
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Tue, 21 Mar 2023 19:29:21 UTC
The branch main has been updated by sunpoet: URL: https://cgit.FreeBSD.org/ports/commit/?id=c2a04964fc8ac26fe1482d36b355a37b5b367ad3 commit c2a04964fc8ac26fe1482d36b355a37b5b367ad3 Author: Po-Chuan Hsieh <sunpoet@FreeBSD.org> AuthorDate: 2023-03-21 18:45:49 +0000 Commit: Po-Chuan Hsieh <sunpoet@FreeBSD.org> CommitDate: 2023-03-21 19:21:08 +0000 finance/py-quantecon: Convert to USE_PYTHON=pep517 - Bump PORTREVISION for dependency and package change --- finance/py-quantecon/Makefile | 7 +++--- finance/py-quantecon/files/setup.py | 47 ------------------------------------- 2 files changed, 3 insertions(+), 51 deletions(-) diff --git a/finance/py-quantecon/Makefile b/finance/py-quantecon/Makefile index 8d6ab2d169ed..2a8e5dadfd51 100644 --- a/finance/py-quantecon/Makefile +++ b/finance/py-quantecon/Makefile @@ -1,5 +1,6 @@ PORTNAME= quantecon PORTVERSION= 0.6.0 +PORTREVISION= 1 CATEGORIES= finance python MASTER_SITES= PYPI PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX} @@ -11,6 +12,7 @@ WWW= https://github.com/QuantEcon/QuantEcon.py LICENSE= BSD3CLAUSE LICENSE_FILE= ${WRKSRC}/LICENSE +BUILD_DEPENDS= ${PYTHON_PKGNAMEPREFIX}flit-core>=3.5<4:devel/py-flit-core@${PY_FLAVOR} RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}numba>=0:devel/py-numba@${PY_FLAVOR} \ ${PYTHON_PKGNAMEPREFIX}numpy>=1.17.0,1:math/py-numpy@${PY_FLAVOR} \ ${PYTHON_PKGNAMEPREFIX}requests>=0:www/py-requests@${PY_FLAVOR} \ @@ -18,11 +20,8 @@ RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}numba>=0:devel/py-numba@${PY_FLAVOR} \ ${PYTHON_PKGNAMEPREFIX}sympy>=0:math/py-sympy@${PY_FLAVOR} USES= python:3.7+ -USE_PYTHON= autoplist concurrent distutils +USE_PYTHON= autoplist concurrent pep517 NO_ARCH= yes -post-patch: - @${SED} -e 's|%%PORTVERSION%%|${PORTVERSION}|' ${FILESDIR}/setup.py > ${WRKSRC}/setup.py - .include <bsd.port.mk> diff --git a/finance/py-quantecon/files/setup.py b/finance/py-quantecon/files/setup.py deleted file mode 100644 index 2b236248adfb..000000000000 --- a/finance/py-quantecon/files/setup.py +++ /dev/null @@ -1,47 +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 = \ -['quantecon', - 'quantecon.game_theory', - 'quantecon.game_theory.game_generators', - 'quantecon.game_theory.game_generators.tests', - 'quantecon.game_theory.tests', - 'quantecon.markov', - 'quantecon.markov.tests', - 'quantecon.optimize', - 'quantecon.optimize.tests', - 'quantecon.random', - 'quantecon.random.tests', - 'quantecon.util'] - -package_data = \ -{'': ['*']} - -install_requires = \ -['numba', 'numpy>=1.17.0', 'requests', 'scipy>=1.5.0', 'sympy'] - -extras_require = \ -{'testing': ['pytest', - 'coverage', - 'flake8', - 'numpy', - 'scipy', - 'pandas', - 'numba', - 'sympy']} - -setup(name='quantecon', - version='%%PORTVERSION%%', - description='Import the main names to top level.', - author=None, - author_email='QuantEcon Project <admin@quantecon.org>', - url=None, - packages=packages, - package_data=package_data, - install_requires=install_requires, - extras_require=extras_require, - python_requires='>=3.7', - )