Skip to content

Commit

Permalink
math/py-bottleneck: Convert to USE_PYTHON=pep517
Browse files Browse the repository at this point in the history
- Bump PORTREVISION for package change
  • Loading branch information
sunpoet committed May 13, 2024
1 parent 5c0d5f9 commit 2fc390b
Show file tree
Hide file tree
Showing 3 changed files with 26 additions and 2 deletions.
8 changes: 6 additions & 2 deletions math/py-bottleneck/Makefile
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
PORTNAME= bottleneck
PORTVERSION= 1.3.8
PORTREVISION= 1
CATEGORIES= math python
MASTER_SITES= PYPI
PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
Expand All @@ -12,11 +13,14 @@ WWW= https://github.com/kwgoodman/bottleneck
LICENSE= BSD2CLAUSE
LICENSE_FILE= ${WRKSRC}/LICENSE

BUILD_DEPENDS= ${RUN_DEPENDS}
BUILD_DEPENDS= ${PYTHON_PKGNAMEPREFIX}numpy>=0,1:math/py-numpy@${PY_FLAVOR} \
${PYTHON_PKGNAMEPREFIX}setuptools>=0:devel/py-setuptools@${PY_FLAVOR} \
${PYTHON_PKGNAMEPREFIX}versioneer>=0:devel/py-versioneer@${PY_FLAVOR} \
${PYTHON_PKGNAMEPREFIX}wheel>=0:devel/py-wheel@${PY_FLAVOR}
RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}numpy>=0,1:math/py-numpy@${PY_FLAVOR}

USES= python
USE_PYTHON= autoplist concurrent cython distutils
USE_PYTHON= autoplist concurrent cython pep517

DOCS= README.rst RELEASE.rst \
doc/source/conf.py doc/source/index.rst doc/source/intro.rst doc/source/reference.rst
Expand Down
9 changes: 9 additions & 0 deletions math/py-bottleneck/files/patch-pyproject.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
--- pyproject.toml.orig 2024-02-25 00:30:13 UTC
+++ pyproject.toml
@@ -3,5 +3,5 @@ requires = [
"setuptools",
"versioneer",
"wheel",
- "oldest-supported-numpy"
+ "numpy"
]
11 changes: 11 additions & 0 deletions math/py-bottleneck/files/patch-setup.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
--- setup.py.orig 2024-02-25 00:30:13 UTC
+++ setup.py
@@ -175,7 +175,7 @@ metadata = dict(


metadata = dict(
- name="Bottleneck",
+ name="bottleneck",
maintainer="Christopher Whelan",
maintainer_email="bottle-neck@googlegroups.com",
description="Fast NumPy array functions written in C",

0 comments on commit 2fc390b

Please sign in to comment.