security/py-keyring: Drop importlib-metadata 3.12+

Need importlib-metadata only before Python 3.12.

keyring requires the importlib_metadata backport only on Python < 3.12
(keyring/compat/py312.py uses importlib.metadata otherwise), but the
port always pulls in devel/py-importlib-metadata (9.x).  Ports that
also need devel/py-importlib-metadata8 then cannot be installed, e.g.
databases/py-dbt-snowflake through dbt-semantic-interfaces.  Make the
dependency conditional, as upstream declares it.

While here, switch to USE_PYTHON=pep517 (the package metadata becomes
dist-info), with the build dependencies the sdist declares.

PR:		299921
Approved by:	Douglas Thrift <douglas@douglasthrift.net> (maintainer)
Monday, 30-Nov-26 21:35:58 PST
14.4/amd64
git clone https://git.douglasthrift.net/douglas/freebsd-ports-overlay.git /usr/local/caronade/work/144amd64/repo.git
Cloning into '/usr/local/caronade/work/144amd64/repo.git'...
git -C "/usr/local/caronade/work/144amd64/repo.git" -c advice.detachedHead=false checkout 86e87830fdf247ea8d26af0e91162492150b2ec9
HEAD is now at 86e8783 security/py-keyring: Drop importlib-metadata 3.12+

poudriere ports -u -p 144amd64
[00:00:00] Updating portstree "144amd64" with git+https... done
zfs snapshot zroot/poudriere/ports/144amd64@clean
overlay for converters/py-unidecode
overlay for devel/gitea-cli
overlay for devel/rubygem-jeweler
overlay for devel/p5-POSIX-strptime
overlay for devel/py-pycerberus
overlay for devel/gitea-runner
overlay for dns/rubygem-simpleidn
overlay for filesystems/py-fs
overlay for net/googleworkspace-cli
overlay for net/p5-Net-Ping-External
overlay for security/py-SecretStorage
overlay for security/py-keyrings.alt
overlay for security/py-keyring
overlay for sysutils/dtpstree
overlay for sysutils/psmisc
overlay for sysutils/hardlink
overlay for textproc/rubygem-yard-chef
overlay for textproc/rubygem-phone
overlay for textproc/rubygem-inifile
overlay for www/rubygem-adsf
overlay for www/py-dtflickr
overlay for www/py-selenium
overlay for www/mod_wsgi
overlay for www/dtse
overlay for x11-themes/metacity-theme-microgui
overlay UIDs
overlay GIDs
poudriere testport -b latest -j 144amd64 -p 144amd64 security/py-keyring
[00:00:00] Creating the reference jail... done
[00:00:00] Mounting system devices for 144amd64-144amd64
[00:00:00] Stashing existing package repository
[00:00:00] Mounting ports from: /usr/local/poudriere/ports/144amd64
[00:00:00] Mounting packages from: /usr/local/poudriere/data/packages/144amd64-144amd64
[00:00:00] Mounting distfiles from: /usr/ports/distfiles
[00:00:00] Copying /var/db/ports from: /usr/local/etc/poudriere.d/options
/etc/resolv.conf -> /usr/local/poudriere/data/.m/144amd64-144amd64/ref/etc/resolv.conf
[00:00:00] Starting jail 144amd64-144amd64
Updating /var/run/os-release done.
[00:00:00] Will build as nobody:nobody (65534:65534)
[00:00:01] Ports supports: FLAVORS SUBPACKAGES SELECTED_OPTIONS
[00:00:01] Inspecting ports tree for modifications to git checkout... yes
[00:00:02] Ports top-level git hash: a70de0707791bbace353fc2fb69bdd73d32cab69 (dirty)
[00:00:02] Logs: /usr/local/poudriere/data/logs/bulk/144amd64-144amd64/2026-11-30_21h37m00s
[00:00:02] Loading MOVED for /usr/local/poudriere/data/.m/144amd64-144amd64/ref/usr/ports
[00:00:02] Gathering ports metadata
[00:00:04] Calculating ports order and dependencies
[00:00:04] Trimming IGNORED and blacklisted ports
[00:00:04] Package fetch: Looking for missing packages to fetch from pkg+http://pkg.FreeBSD.org/${ABI}/latest
Updating Poudriere repository catalogue...
[144amd64-144amd64] Fetching meta.conf: . done
[144amd64-144amd64] Fetching data: .......... done
Processing entries: .......... done
Poudriere repository update completed. 38670 packages processed.
All repositories are up to date.
[00:00:14] Package fetch: No packages eligible to fetch
[00:00:14] Sanity checking the repository
[00:00:14] Checking packages for incremental rebuild needs
[00:00:14] Deleting fontconfig-2.18.3_1,1.pkg: new version: 2.18.4,1
[00:00:14] Deleting py312-pygobject-3.58.0.pkg: new version: 3.58.1
[00:00:14] Deleting pygobject-common-3.58.0.pkg: new version: 3.58.1
[00:00:14] Deleting cairo-1.18.6_1,3.pkg: missing dependency: fontconfig-2.18.3_1,1
[00:00:14] Deleting py312-dbus-1.4.0_1.pkg: missing dependency: py312-pygobject-3.58.0
[00:00:14] Deleting py312-pycairo-1.29.2.pkg: missing dependency: cairo-1.18.6_1,3
[00:00:15] Deleting stale symlinks... done
[00:00:15] Deleting empty directories... done
[00:00:15] Unqueueing existing packages
[00:00:15] Unqueueing orphaned build dependencies
[00:00:15] Sanity checking build queue
[00:00:15] Processing PRIORITY_BOOST
[00:00:15] Balancing pool
[00:00:15] Recording filesystem state for prepkg... done
[00:00:15] Building 11 packages using up to 4 builders
[00:00:15] Hit CTRL+t at any time to see build progress and stats
[00:00:15] [01] [00:00:00] Builder starting
[00:00:15] [02] [00:00:00] Builder starting
[00:00:15] [01] [00:00:00] Builder started
[00:00:15] [01] [00:00:00] Building x11-fonts/fontconfig | fontconfig-2.18.4,1
[00:00:15] [02] [00:00:00] Builder started
[00:00:15] [02] [00:00:00] Building lang/rust | rust-1.99.1_4
[00:00:54] [01] [00:00:39] Finished x11-fonts/fontconfig | fontconfig-2.18.4,1: Success
[00:00:54] [01] [00:00:00] Building graphics/cairo | cairo-1.18.6_1,3
[00:02:32] [01] [00:01:38] Finished graphics/cairo | cairo-1.18.6_1,3: Success
[00:02:32] [01] [00:00:00] Building graphics/py-pycairo@py312 | py312-pycairo-1.29.2
[00:02:42] [01] [00:00:10] Finished graphics/py-pycairo@py312 | py312-pycairo-1.29.2: Success
[00:02:42] [01] [00:00:00] Building devel/pygobject-common | pygobject-common-3.58.1
[00:02:57] [01] [00:00:15] Finished devel/pygobject-common | pygobject-common-3.58.1: Success
[00:02:57] [01] [00:00:00] Building devel/py-pygobject@py312 | py312-pygobject-3.58.1
[00:03:28] [01] [00:00:31] Finished devel/py-pygobject@py312 | py312-pygobject-3.58.1: Success
[00:03:28] [01] [00:00:00] Building devel/py-dbus@py312 | py312-dbus-1.4.0_1
[00:04:27] [01] [00:00:59] Finished devel/py-dbus@py312 | py312-dbus-1.4.0_1: Success
[07:36:46] Unmounting file systems
Exiting with status 2
*** Error code 2

Stop.
make: stopped making "all" in /usr/local/caronade/work/144amd64
portlint
git clone https://git.douglasthrift.net/douglas/freebsd-ports-overlay.git repo.git
Cloning into 'repo.git'...
git -C "repo.git" -c advice.detachedHead=false checkout 86e87830fdf247ea8d26af0e91162492150b2ec9
HEAD is now at 86e8783 security/py-keyring: Drop importlib-metadata 3.12+

portlint -A repo.git/security/py-keyring
WARN: Makefile: new ports should not set PORTREVISION.
WARN: Makefile: new ports should not set PORTEPOCH.
0 fatal errors and 2 warnings found.