Bug 291265 - devel/py-archinfo: Update 9.2.181 => 9.2.185
Summary: devel/py-archinfo: Update 9.2.181 => 9.2.185
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: --- Affects Some People
Assignee: Vladimir Druzenko
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2025-11-28 10:31 UTC by Rares Aioanei
Modified: 2025-11-29 14:48 UTC (History)
1 user (show)

See Also:
schaiba: maintainer-feedback+


Attachments
Updated Makefile and distinfo (906 bytes, patch)
2025-11-28 10:31 UTC, Rares Aioanei
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Rares Aioanei 2025-11-28 10:31:23 UTC
Created attachment 265688 [details]
Updated Makefile and distinfo
Comment 1 Vladimir Druzenko freebsd_committer freebsd_triage 2025-11-28 13:05:14 UTC
===>  Configuring for py311-archinfo-9.2.185
/usr/local/lib/python3.11/site-packages/setuptools/config/pyprojecttoml.py:104: _BetaConfiguration: Support for `[tool.setuptools]` in `pyproject.toml` is still *beta*.
  warnings.warn(msg, _BetaConfiguration)
configuration error: `project.license` must be valid exactly by one definition (2 matches found):

    - keys:
        'file': {type: string}
      required: ['file']
    - keys:
        'text': {type: string}
      required: ['text']

Traceback (most recent call last):
  File "<string>", line 1, in <module>
  File "setup.py", line 3, in <module>
    setup(
  File "/usr/local/lib/python3.11/site-packages/setuptools/_distutils/core.py", line 151, in setup
    dist.parse_config_files()
  File "/usr/local/lib/python3.11/site-packages/setuptools/dist.py", line 868, in parse_config_files
    pyprojecttoml.apply_configuration(self, filename, ignore_option_errors)
  File "/usr/local/lib/python3.11/site-packages/setuptools/config/pyprojecttoml.py", line 58, in apply_configuration
    config = read_configuration(filepath, True, ignore_option_errors, dist)
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.11/site-packages/setuptools/config/pyprojecttoml.py", line 122, in read_configuration
    validate(subset, filepath)
  File "/usr/local/lib/python3.11/site-packages/setuptools/config/pyprojecttoml.py", line 47, in validate
    raise error from None
ValueError: invalid pyproject.toml config: `project.license`
*** Error code 1
Comment 2 Vladimir Druzenko freebsd_committer freebsd_triage 2025-11-28 14:06:22 UTC
Check this for example: https://cgit.freebsd.org/ports/tree/archivers/py-zlib-ng/files/patch-pyproject.toml
Comment 3 Vladimir Druzenko freebsd_committer freebsd_triage 2025-11-29 14:38:16 UTC
devel/py-archinfo/files/patch-pyproject.toml:
--- pyproject.toml.orig 2025-11-25 17:09:08 UTC
+++ pyproject.toml
@@ -5,8 +5,8 @@ description = "Classes with architecture-specific info
 [project]
 name = "archinfo"
 description = "Classes with architecture-specific information useful to other projects."
-license = "BSD-2-Clause"
-license-files = ["LICENSE"]
+license = {text = "BSD-2-Clause"}
+#license-files = ["LICENSE"]
 classifiers = [
     "Programming Language :: Python :: 3",
     "Programming Language :: Python :: 3 :: Only",
Comment 4 commit-hook freebsd_committer freebsd_triage 2025-11-29 14:47:32 UTC
A commit in branch main references this bug:

URL: https://cgit.FreeBSD.org/ports/commit/?id=8b92f725402e774638b7bed7a04c6a235a42df33

commit 8b92f725402e774638b7bed7a04c6a235a42df33
Author:     Rares Aioanei <schaiba@gmail.com>
AuthorDate: 2025-11-29 14:41:01 +0000
Commit:     Vladimir Druzenko <vvd@FreeBSD.org>
CommitDate: 2025-11-29 14:41:01 +0000

    devel/py-archinfo: Update 9.2.181 => 9.2.185

    Commit log:
    https://github.com/angr/archinfo/compare/v9.2.181...v9.2.185

    PR:             291265
    Co-authored-by: Vladimir Druzenko <vvd@FreeBSD.org>

 devel/py-archinfo/Makefile                         |  2 +-
 devel/py-archinfo/distinfo                         |  6 +++---
 devel/py-archinfo/files/patch-pyproject.toml (new) | 13 +++++++++++++
 3 files changed, 17 insertions(+), 4 deletions(-)
Comment 5 Vladimir Druzenko freebsd_committer freebsd_triage 2025-11-29 14:48:15 UTC
Thanks.