[Bug 285219] category/port:py-Automat - fix build error because of casing

From: <bugzilla-noreply_at_freebsd.org>
Date: Fri, 07 Mar 2025 09:40:20 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=285219

            Bug ID: 285219
           Summary: category/port:py-Automat - fix build error because of
                    casing
           Product: Ports & Packages
           Version: Latest
          Hardware: amd64
                OS: Any
            Status: New
          Severity: Affects Some People
          Priority: ---
         Component: Individual Port(s)
          Assignee: ports-bugs@FreeBSD.org
          Reporter: lim@slimadvies.com

I've submitted a PR:
https://github.com/freebsd/freebsd-ports/pull/356

Use lowercase 'automat' name according to
https://wiki.freebsd.org/Python/PortsPolicy#Naming

This PR fixes the build error (look at lowercase wheel name and Uppercase
FileNotFoundError path):

Successfully built automat-24.8.1-py3-none-any.whl
=======================<phase: run-depends >============================
=====
env: USE_PACKAGE_DEPENDS_ONLY=1 USER=root UID=0 GID=0
===> py311-Automat-24.8.1 depends on file: /usr/local/bin/python3.11 - found
=======================<phase: stage >============================
===== env: NO_DEPENDS=yes USER=nobody UID=65534 GID=65534
===> Staging for py311-Automat-24.8.1
===> Generating temporary packing list
Traceback (most recent call last):
File "", line 198, in _run_module_as_main
File "", line 88, in _run_code
File "/usr/local/lib/python3.11/site-packages/installer/main.py", line 98, in
_main(sys.argv[1:], "python -m installer")
File "/usr/local/lib/python3.11/site-packages/installer/main.py", line 86, in
_main
with WheelFile.open(args.wheel) as source:
File "/usr/local/lib/python3.11/contextlib.py", line 137, in enter
return next(self.gen)
^^^^^^^^^^^^^^
File "/usr/local/lib/python3.11/site-packages/installer/sources.py", line 162,
in open
with zipfile.ZipFile(path) as f:
^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.11/zipfile.py", line 1295, in init
self.fp = io.open(file, filemode)
^^^^^^^^^^^^^^^^^^^^^^^
FileNotFoundError: [Errno 2] No such file or directory:
'/wrkdirs/usr/ports/devel/py-Automat/work-py311/automat-24.8.1/dist/Automat-24.8.1*.whl'

-- 
You are receiving this mail because:
You are the assignee for the bug.