Re: pybuild: Build-testing with the package installed
Hi Matthias (2024.11.14_12:38:29_+) > Successfully built moat_lib_codec-0.2.2-py3-none-any.whl > I: pybuild plugin_pyproject:144: Unpacking wheel built for python3.12 with > "installer" module > dh_auto_test -O--buildsystem=pybuild > dh_auto_test: warning: Use of debian/compat is deprecated and will be removed > in debhelper (>=14~). > I: pybuild base:311: cd > /src/moat/lib/codec/.pybuild/cpython3_3.12_moat-lib-codec/build; python3.12 > -m pytest tests What I don't see there is what's failing. The package should have been installed into build directory. But it won't have a .dist-info there, if that matters. What's not working? Where's the rest of this log? Stefano -- Stefano Rivera http://tumbleweed.org.za/ +1 415 683 3272
Bug#1087535: ITP: files-to-prompt -- Concatenate files into a single prompt for LLM use
Package: wnpp Severity: wishlist Owner: Edward Betts X-Debbugs-Cc: debian-de...@lists.debian.org, debian-python@lists.debian.org * Package name: files-to-prompt Version : 0.4 Upstream Author : Simon Willison * URL : https://github.com/simonw/files-to-prompt * License : Apache-2.0 Programming Lang: Python Description : Concatenate files into a single prompt for LLM use This command processes multiple files within specified directories and concatenates their contents into a single text prompt, formatted for use with large language models (LLMs). It includes options for filtering files by extension, including or skipping hidden files, ignoring specified patterns and formatting output in Claude XML. Users can choose to print the output directly or save it to a file. The output helps in structuring text that is compatible with and optimized for language model processing, without altering any individual file's content. I plan to maintain this package as part of the Python team.
pybuild: Build-testing with the package installed
Hi, I'm trying to locally build a fixed version of a buggy package which happens to be installed on the system. "debuild -b -us -uc" reports: Successfully built moat_lib_codec-0.2.2-py3-none-any.whl I: pybuild plugin_pyproject:144: Unpacking wheel built for python3.12 with "installer" module dh_auto_test -O--buildsystem=pybuild dh_auto_test: warning: Use of debian/compat is deprecated and will be removed in debhelper (>=14~). I: pybuild base:311: cd /src/moat/lib/codec/.pybuild/cpython3_3.12_moat-lib-codec/build; python3.12 -m pytest tests Note the nonexistence of "PYTHONPATH=." in this command line, which causes the test suite to use the installed version, which subsequently fails (that's the whole point of having a comprehensive test suite, after all …). Is it possible to teach pybuild to do this the right way? I could always add a "override_dh_auto_test" stanza that calls pytest manually, but the whole point of standardized packaging is not having to do stuff like that. The package is at https://github.com/M-o-a-T/moat-lib-codec/tree/deb (sorry, moving to Codeberg+Salsa hasn't quite reached the top of my TODO list …) if anybody wants to take a closer look. -- -- regards, -- -- Matthias Urlichs OpenPGP_signature.asc Description: OpenPGP digital signature
Re: pybuild: Build-testing with the package installed
On Thu, Nov 14, 2024 at 01:38:29PM +0100, Matthias Urlichs wrote: > Hi, > > I'm trying to locally build a fixed version of a buggy package which happens > to be installed on the system. > > "debuild -b -us -uc" reports: > > Successfully built moat_lib_codec-0.2.2-py3-none-any.whl > I: pybuild plugin_pyproject:144: Unpacking wheel built for python3.12 with > "installer" module > dh_auto_test -O--buildsystem=pybuild > dh_auto_test: warning: Use of debian/compat is deprecated and will be removed > in debhelper (>=14~). > I: pybuild base:311: cd > /src/moat/lib/codec/.pybuild/cpython3_3.12_moat-lib-codec/build; python3.12 > -m pytest tests > > Note the nonexistence of "PYTHONPATH=." in this command line python -m does that for you, doesn't it? > which causes the test suite to use the installed version I expect the problem to be caused by something else. -- WBR, wRAR signature.asc Description: PGP signature