diff options
-rw-r--r-- | finance/py-quantecon/Makefile | 7 | ||||
-rw-r--r-- | 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', - ) |