Package Details: python-cyclonedx-lib 8.5.0-1

Git Clone URL: https://aur.archlinux.org/python-cyclonedx-lib.git (read-only, click to copy)
Package Base: python-cyclonedx-lib
Description: Render and read CycloneDX, a lightweight BOM specification document format
Upstream URL: https://github.com/CycloneDX/cyclonedx-python-lib
Licenses: Apache-2.0
Conflicts: python-cyclonedx-lib-git
Submitter: Auerhuhn
Maintainer: Auerhuhn
Last Packager: Auerhuhn
Votes: 0
Popularity: 0.000000
First Submitted: 2021-11-11 12:12 (UTC)
Last Updated: 2024-12-22 20:33 (UTC)

Latest Comments

1 2 Next › Last »

Auerhuhn commented on 2024-12-23 19:23 (UTC)

@gesh All right. In case this ever occurs again, feel free to drop me the details.

gesh commented on 2024-12-23 19:03 (UTC)

Unfortunately, I've already closed the terminal window where I ran into the bug. If I recall correctly, the complaint was that /usr/lib/python3.13/site-packages/cyclonedx already existed. I'm sorry I didn't keep that log around before posting the comment.

Auerhuhn commented on 2024-12-23 17:27 (UTC)

@gesh With that being said: the check() absolutely should not fail, not even with Python v3.13 in place. If you can still reproduce the failure, mind providing me a stack trace, and/or try in a clean chroot?

Even if I’m going to remove the isolation on the next update no matter what, I’d still like to understand the problem first.

I generally aim for reasonably stable and deterministic PKGBUILDs, plus I use similar isolation techniques in several other PKGBUILDs. Understanding what’s going on would benefit those, too.

Auerhuhn commented on 2024-12-23 17:21 (UTC)

@gesh Thanks for the pointer. In 2022, I added the temporary PYTHONPATH in 69836c8f, back then in the form of a virtual environment but the rationale and effect were the same: without a dedicated installation/venv, the test_e2e_environment test (and a handful of similar tests) would bail with e.g.:

pkg_resources.DistributionNotFound: The 'cyclonedx-python-lib' distribution was not found and is required by the application

However, it turns out that all the offending tests were removed in 2023 via upstream commit 26b151c, so the isolation from the cwd hasn’t been necessary since upstream v5.x. So I think we can do away with the isolation.

gesh commented on 2024-12-23 16:37 (UTC)

Note that the temp install in check() breaks when moving from Python 3.12 to 3.13. Commenting it out allows the package to build, following which it can be restored. I am referring to

  local _site_packages
  _site_packages="$(python -c 'import site; print(site.getsitepackages()[0])')"
  python -m installer --destdir=tmp_install dist/*.whl
  PYTHONPATH="${PWD}/tmp_install/${_site_packages}" python -m unittest discover -v

I am uncertain what this temporary installation is supposed to achieve? Isn't a simple

python -m unittest discover -v

enough?

Auerhuhn commented on 2024-12-23 16:34 (UTC)

@gesh A pkgrel bump would be useless, because by the time I pushed 8.5.0-1, Python 3.13 had been published to core already.

gesh commented on 2024-12-23 14:40 (UTC) (edited on 2024-12-23 14:43 (UTC) by gesh)

Note: Package needs to be rebuilt for Python 3.13 (a bump to pkgrel suffices)

gesh commented on 2024-09-30 13:55 (UTC)

Note -- given that we're not building with the python-setuptools backend, the python-wheel makedep is unnecessary.

Auerhuhn commented on 2023-11-05 19:48 (UTC)

Done, thanks for the heads up @MarsSeed and for being so vigilant!

MarsSeed commented on 2023-11-01 22:11 (UTC)

Pulling in python-poetry, with its huge dependency tree, is overkill for building this package - now that python-poetry-core is available.

The latter is designed to be a less heavyweight alternative, ideal for builds using python-build and python-installer, or python-pip.