Closed gotmax23 closed 1 year ago
I'm not sure this is feasible, or at least not much faster, since #502 (as well as the old code) needs the contents of the contained collections. So you can also simply use --sdist-src-dir
and kill antsibull-build as soon as that directory is written.
This subcommand would be run in an existing build/collections directory. It would simply (re)generate the files.
Ah. Yeah, that would work.
The worst part while testing #502 are the steps after generating the build/collections directory though, i.e. building the sdist tarball and the wheel. (The first part is relatively fast due to caching, at least for me.)
I'd like to add a separate subcommand to generate the build script, Python build files, and debian packaging stuff in the current directory. Basically, this would call the
write_build_script()
,write_python_build_build_files()
, andwrite_debian_directory()
functions inbuild_ansible_commands.py
. This would make testing changes like https://github.com/ansible-community/antsibull/pull/502 easier.