ansible-community / antsibull-build

Tooling for building various things related to ansible
GNU General Public License v3.0
60 stars 31 forks source link

Add subcommand to generate build files #504

Closed gotmax23 closed 1 year ago

gotmax23 commented 1 year ago

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(), and write_debian_directory() functions in build_ansible_commands.py. This would make testing changes like https://github.com/ansible-community/antsibull/pull/502 easier.

felixfontein commented 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.

gotmax23 commented 1 year ago

This subcommand would be run in an existing build/collections directory. It would simply (re)generate the files.

felixfontein commented 1 year ago

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.)