labgrid icon indicating copy to clipboard operation
labgrid copied to clipboard

helpers: install as setuptools scripts

Open hundeboll opened this issue 7 months ago • 3 comments

Allow using e.g. labgrid-bound-connect also when installing labgrid using pip.

Description We install labgrid using pip in a Containerfile, but need to use labgrid-bound-connect on the exporter. This isn't currently possible, as the two scripts in ./helpers/ aren't installed unless building a debian package.

To make it possible to configure the two helpers as scripts in pyproject.toml they must reside in the python package itself, so move the two files from ./helpers/ to ./labgrid/helpers.

Both scripts are also changed to configure/parse arguments in a function instead of the global scope, as the setuptools scripts configuration needs to call a function from the specified files.

Checklist

  • [ ] Documentation for the feature
  • [ ] Tests for the feature
  • [ ] The arguments and description in doc/configuration.rst have been updated
  • [ ] Add a section on how to use the feature to doc/usage.rst
  • [ ] Add a section on how to use the feature to doc/development.rst
  • [x] PR has been tested
  • [ ] Man pages have been regenerated

hundeboll avatar Mar 11 '25 08:03 hundeboll