Skip to content

helpers: install as setuptools scripts #1633

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

hundeboll
Copy link
Contributor

Allow using e.g. labgrid-count-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
  • PR has been tested
  • Man pages have been regenerated

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

Signed-off-by: Martin Hundebøll <martin@geanix.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant