Re: git: 8b6f38739d2f - main - devel/py-hatchling: Update to 1.12.2

From: Po-Chuan Hsieh <sunpoet_at_freebsd.org>
Date: Sun, 05 Feb 2023 16:51:59 UTC
On Sun, Feb 5, 2023 at 3:19 PM Po-Chuan Hsieh <sunpoet@freebsd.org> wrote:

> On Tue, Jan 31, 2023 at 8:06 AM Charlie Li <vishwin@freebsd.org> wrote:
>
>> Po-Chuan Hsieh wrote:
>> > The branch main has been updated by sunpoet:
>> >
>> > URL:
>> https://cgit.FreeBSD.org/ports/commit/?id=8b6f38739d2f582a2f8a0d3702e35fbf1bb1b630
>> >
>> > commit 8b6f38739d2f582a2f8a0d3702e35fbf1bb1b630
>> > Author:     Po-Chuan Hsieh <sunpoet@FreeBSD.org>
>> > AuthorDate: 2023-01-30 12:31:22 +0000
>> > Commit:     Po-Chuan Hsieh <sunpoet@FreeBSD.org>
>> > CommitDate: 2023-01-30 12:59:47 +0000
>> >
>> >      devel/py-hatchling: Update to 1.12.2
>> >
>> >      Changes:
>> https://github.com/pypa/hatch/commits/master/backend
>> > ---
>> >   devel/py-hatchling/Makefile       |  5 +++--
>> >   devel/py-hatchling/distinfo       |  6 +++---
>> >   devel/py-hatchling/files/setup.py | 23 +++++++++--------------
>> >   3 files changed, 15 insertions(+), 19 deletions(-)
>> >
>> This, along with other ports, are to have USE_PYTHON=pep517 and setup.py
>> removed.
>>
>
> Thanks for your work,
> I'll check the pep517 implementation. If it's ready, I'll start converting
> my ports to it.
>

I've read the pep517 implementation.
The first issue I noticed was about not installing the bytecode.
It is failing poudriere builds with build_fs_violation.
e.g.
from py-sphinx log:
=>> Checking for staging violations... done
=>> Error: Filesystem touched during stage (files must install to
${STAGEDIR}):
extra: usr/local/lib/python3.9/site-packages/importlib_metadata/__pycache__
=>> Cleaning up wrkdir

I guess it was not noticed before because currently most of the ports using
pep517 are leaf ports.
But it is not the case after py-importlib-metadata converted to pep517.

I've prepared a patch to fix this.

Regards,
sunpoet


>
>> --
>> Charlie Li
>> …nope, still don't have an exit line.
>>
>>
>>