Skip to content

Commit

Permalink
devel/py-hatchling: Update to 1.12.2
Browse files Browse the repository at this point in the history
  • Loading branch information
sunpoet committed Jan 30, 2023
1 parent 608bde4 commit 8b6f387
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 19 deletions.
5 changes: 3 additions & 2 deletions devel/py-hatchling/Makefile
@@ -1,5 +1,5 @@
PORTNAME= hatchling
PORTVERSION= 1.11.1
PORTVERSION= 1.12.2
CATEGORIES= devel python
MASTER_SITES= PYPI
PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
Expand All @@ -13,7 +13,7 @@ LICENSE_FILE= ${WRKSRC}/LICENSE.txt

RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}editables>=0.3:devel/py-editables@${PY_FLAVOR} \
${PYTHON_PKGNAMEPREFIX}packaging>=21.3:devel/py-packaging@${PY_FLAVOR} \
${PYTHON_PKGNAMEPREFIX}pathspec>=0.9:devel/py-pathspec@${PY_FLAVOR} \
${PYTHON_PKGNAMEPREFIX}pathspec>=0.10.1:devel/py-pathspec@${PY_FLAVOR} \
${PYTHON_PKGNAMEPREFIX}pluggy>=1.0.0:devel/py-pluggy@${PY_FLAVOR}

USES= python:3.7+
Expand All @@ -32,6 +32,7 @@ RUN_DEPENDS+= ${PYTHON_PKGNAMEPREFIX}tomli>=1.2.2:textproc/py-tomli@${PY_FLAVOR}
.endif

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

.include <bsd.port.post.mk>
6 changes: 3 additions & 3 deletions devel/py-hatchling/distinfo
@@ -1,3 +1,3 @@
TIMESTAMP = 1669057753
SHA256 (hatchling-1.11.1.tar.gz) = 9f84361f70cf3a7ab9543b0c3ecc64211ed2ba8a606a71eb6a473c1c9b08e1d0
SIZE (hatchling-1.11.1.tar.gz) = 57223
TIMESTAMP = 1674589796
SHA256 (hatchling-1.12.2.tar.gz) = 8a6d719d96653a0f3901072b12710c9c3cc934f9061b443775c6789b45333495
SIZE (hatchling-1.12.2.tar.gz) = 61667
23 changes: 9 additions & 14 deletions devel/py-hatchling/files/setup.py
Expand Up @@ -5,34 +5,31 @@
name='hatchling',
version='%%PORTVERSION%%',
description='Modern, extensible Python build backend',
long_description='# Hatchling\n\n-----\n\nThis is the extensible, standards compliant build backend used by [Hatch](https://github.com/ofek/hatch).\n',
long_description='# Hatchling\n\n<div align="center">\n\n<img src="https://raw.githubusercontent.com/pypa/hatch/master/docs/assets/images/logo.svg" alt="Hatch logo" width="500" role="img">\n\n| | |\n| --- | --- |\n| Package | [![PyPI - Version](https://img.shields.io/pypi/v/hatchling.svg?logo=pypi&label=PyPI&logoColor=gold)](https://pypi.org/project/hatchling/) [![PyPI - Downloads](https://img.shields.io/pypi/dm/hatchling.svg?color=blue&label=Downloads&logo=pypi&logoColor=gold)](https://pypi.org/project/hatchling/) [![PyPI - Python Version](https://img.shields.io/pypi/pyversions/hatchling.svg?logo=python&label=Python&logoColor=gold)](https://pypi.org/project/hatchling/) |\n| Meta | [![Hatch project](https://img.shields.io/badge/%F0%9F%A5%9A-Hatch-4051b5.svg)](https://github.com/pypa/hatch) [![linting - Ruff](https://img.shields.io/endpoint?url=https://raw.githubusercontent.com/charliermarsh/ruff/main/assets/badge/v0.json)](https://github.com/charliermarsh/ruff) [![code style - Black](https://img.shields.io/badge/code%20style-black-000000.svg)](https://github.com/psf/black) [![types - Mypy](https://img.shields.io/badge/types-Mypy-blue.svg)](https://github.com/python/mypy) [![License - MIT](https://img.shields.io/badge/license-MIT-9400d3.svg)](https://spdx.org/licenses/) [![GitHub Sponsors](https://img.shields.io/github/sponsors/ofek?logo=GitHub%20Sponsors&style=social)](https://github.com/sponsors/ofek) |\n\n</div>\n\n-----\n\nThis is the extensible, standards compliant build backend used by [Hatch](https://github.com/pypa/hatch).\n\n## Usage\n\nThe following snippet must be present in your project\'s `pyproject.toml` file in order to use Hatchling as your build backend:\n\n```toml\n[build-system]\nrequires = ["hatchling"]\nbuild-backend = "hatchling.build"\n```\n\nThen a build frontend like [pip](https://github.com/pypa/pip), [build](https://github.com/pypa/build), or Hatch itself can build or install your project automatically:\n\n```console\n# install using pip\npip install /path/to/project\n\n# build\npython -m build /path/to/project\n\n# build with Hatch\nhatch build /path/to/project\n```\n\n## Documentation\n\n- [Project metadata](https://hatch.pypa.io/latest/config/metadata/)\n- [Dependencies](https://hatch.pypa.io/latest/config/dependency/)\n- [Packaging](https://hatch.pypa.io/latest/config/build/)\n',
author_email='Ofek Lev <oss@ofek.dev>',
classifiers=[
'Development Status :: 5 - Production/Stable',
'Intended Audience :: Developers',
'License :: OSI Approved :: MIT License',
'Natural Language :: English',
'Operating System :: OS Independent',
'Programming Language :: Python :: 2.7',
'Programming Language :: Python :: 3.10',
'Programming Language :: Python :: 3.7',
'Programming Language :: Python :: 3.8',
'Programming Language :: Python :: 3.9',
'Programming Language :: Python :: 3.10',
'Programming Language :: Python :: 3.11',
'Programming Language :: Python :: Implementation :: CPython',
'Programming Language :: Python :: Implementation :: PyPy',
'Topic :: Software Development :: Build Tools',
'Topic :: Software Development :: Libraries :: Python Modules',
],
install_requires=[
'editables>=0.3; python_version > "3"',
'editables>=0.3',
'importlib-metadata; python_version < "3.8"',
'packaging>=21.3; python_version > "3"',
'packaging~=20.9; python_version < "3"',
'pathspec>=0.9',
'pluggy>=1.0.0; python_version > "3"',
'pluggy~=0.13; python_version < "3"',
'tomli>=1.2.2; python_version > "3" and python_version < "3.11"',
'toml~=0.10.2; python_version < "3"',
'packaging>=21.3',
'pathspec>=0.10.1',
'pluggy>=1.0.0',
'tomli>=1.2.2; python_version < "3.11"',
],
entry_points={
'console_scripts': [
Expand Down Expand Up @@ -63,7 +60,5 @@
'hatchling.version.source',
'hatchling.version.source.plugin',
],
package_dir={
'': 'src',
},
package_dir={'': 'src'},
)

0 comments on commit 8b6f387

Please sign in to comment.