Skip to content

Commit

Permalink
devel/py-build: Update to 0.10.0
Browse files Browse the repository at this point in the history
  • Loading branch information
sunpoet committed Jan 30, 2023
1 parent f44768d commit c35b44a
Show file tree
Hide file tree
Showing 3 changed files with 69 additions and 7 deletions.
11 changes: 7 additions & 4 deletions devel/py-build/Makefile
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
PORTNAME= build
PORTVERSION= 0.9.0
PORTVERSION= 0.10.0
CATEGORIES= devel python
MASTER_SITES= PYPI
PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
Expand All @@ -12,9 +12,9 @@ LICENSE= MIT
LICENSE_FILE= ${WRKSRC}/LICENSE

RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}packaging>=19.0:devel/py-packaging@${PY_FLAVOR} \
${PYTHON_PKGNAMEPREFIX}pep517>=0.9.1:devel/py-pep517@${PY_FLAVOR}
${PYTHON_PKGNAMEPREFIX}pyproject_hooks>=0:devel/py-pyproject_hooks@${PY_FLAVOR}

USES= python:3.6+
USES= python:3.7+
USE_PYTHON= autoplist concurrent distutils

NO_ARCH= yes
Expand All @@ -26,7 +26,10 @@ RUN_DEPENDS+= ${PYTHON_PKGNAMEPREFIX}importlib-metadata>=0.22:devel/py-importlib
.endif

.if ${PYTHON_REL} < 31100
RUN_DEPENDS+= ${PYTHON_PKGNAMEPREFIX}tomli>=1.0.0:textproc/py-tomli@${PY_FLAVOR}
RUN_DEPENDS+= ${PYTHON_PKGNAMEPREFIX}tomli>=1.1.0:textproc/py-tomli@${PY_FLAVOR}
.endif

post-patch:
@${SED} -e 's|%%PORTVERSION%%|${PORTVERSION}|' ${FILESDIR}/setup.py > ${WRKSRC}/setup.py

.include <bsd.port.post.mk>
6 changes: 3 additions & 3 deletions devel/py-build/distinfo
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
TIMESTAMP = 1669057691
SHA256 (build-0.9.0.tar.gz) = 1a07724e891cbd898923145eb7752ee7653674c511378eb9c7691aab1612bc3c
SIZE (build-0.9.0.tar.gz) = 17450
TIMESTAMP = 1674589742
SHA256 (build-0.10.0.tar.gz) = d5b71264afdb5951d6704482aac78de887c80691c52b88a9ad195983ca2c9269
SIZE (build-0.10.0.tar.gz) = 16465
59 changes: 59 additions & 0 deletions devel/py-build/files/setup.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,59 @@
#!/usr/bin/env python
# setup.py generated by flit for tools that don't yet use PEP 517

from distutils.core import setup

packages = \
['build']

package_data = \
{'': ['*']}

package_dir = \
{'': 'src'}

install_requires = \
['packaging >= 19.0', 'pyproject_hooks']

extras_require = \
{':os_name == "nt"': ['colorama'],
':python_version < "3.11"': ['tomli >= 1.1.0'],
':python_version < "3.8"': ['importlib-metadata >= 0.22'],
'docs': ['furo >= 2021.08.31',
'sphinx ~= 4.0',
'sphinx-argparse-cli >= 1.5',
'sphinx-autodoc-typehints >= 1.10'],
'test': ['filelock >= 3',
'pytest >= 6.2.4',
'pytest-cov >= 2.12',
'pytest-mock >= 2',
'pytest-rerunfailures >= 9.1',
'pytest-xdist >= 1.34',
'toml >= 0.10.0',
'wheel >= 0.36.0'],
'test:python_version < "3.10"': ['setuptools >= 42.0.0'],
'test:python_version >= "3.10"': ['setuptools >= 56.0.0'],
'typing': ['importlib-metadata >= 5.1',
'mypy == 0.991',
'tomli',
'typing-extensions >= 3.7.4.3'],
'virtualenv': ['virtualenv >= 20.0.35']}

entry_points = \
{'console_scripts': ['pyproject-build = build.__main__:entrypoint'],
'pipx.run': ['build = build.__main__:entrypoint']}

setup(name='build',
version='%%PORTVERSION%%',
description='A simple, correct Python build frontend',
author=None,
author_email='Filipe Laíns <lains@riseup.net>, Bernát Gábor <gaborjbernat@gmail.com>, layday <layday@protonmail.com>, Henry Schreiner <henryschreineriii@gmail.com>',
url=None,
packages=packages,
package_data=package_data,
package_dir=package_dir,
install_requires=install_requires,
extras_require=extras_require,
entry_points=entry_points,
python_requires='>= 3.7',
)

0 comments on commit c35b44a

Please sign in to comment.