Skip to content
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

Add (selftest) virtual environment management #187

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

Conversation

jku
Copy link
Member

@jku jku commented Jan 14, 2025

Two goals:

  • Make local testing easy when self test requirements (sigstore-python) and actual test suite requirements are different
  • Simplify self test setup in the self test workflow

Changes:

  • self test requirements are separated into sigstore-requirements.txt (similar unused tools/requirements.txt was removed)
  • Makefile now creates a separate virtual environment sigstore-env for selftest sigstore client
  • sigstore-python-conformance expects to find the sigstore binary in sigstore-env
  • workflow is simplified similarly

The fact that sigstore-python-conformance now requires the venv to exist is a bit restricting: but it works and makes issues like #182 locally debuggable -- if other options are needed later on it will be easy to add a env variable or something to override the binary location

* self test requirements are separated into sigstore-requirements.txt
* Makefile now creates a separate venv for selftest sigstore client
* sigstore-python-conformance expects to find the sigstore binary in the
  venv
* workflow is simplified similarly

Signed-off-by: Jussi Kukkonen <[email protected]>
@jku jku changed the title Add virtual environment management Add (selftest) virtual environment management Jan 14, 2025
@jku jku requested a review from woodruffw January 14, 2025 10:21
@jku jku linked an issue Jan 14, 2025 that may be closed by this pull request
@jku
Copy link
Member Author

jku commented Jan 15, 2025

  • self test requirements are separated into sigstore-requirements.txt

selftest-requirements.txt (and selftest-env for the directory name) might be more descriptive.

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.

improve selftest invocation
1 participant