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

feat: Add environment information CLI #2129

Draft
wants to merge 9 commits into
base: main
Choose a base branch
from

Conversation

matthewfeickert
Copy link
Member

@matthewfeickert matthewfeickert commented Mar 6, 2023

Description

Resolves #1580

Add pyhf.utils.environment_info which produces a summary of the environment that the user is working in, which can be used to unify information for bug reports. Also add a CLI API in the form of pyhf utils environment

  • Ubuntu
$ pyhf utils environment   
* os version: Ubuntu 22.04.2 LTS (Jammy Jellyfish)
* kernel version: Linux 5.19.0-32-generic x86_64
* python version: CPython 3.10.6 [GCC 11.2.0]
* pyhf version: 0.7.1.dev64
  • Fedora
$ pyhf utils environment
* os version: Fedora Linux 35 (Container Image)
* kernel version: Linux 5.19.0-32-generic x86_64
* python version: CPython 3.10.8 [GCC 11.3.1 20220421 (Red Hat 11.3.1-3)]
* pyhf version: 0.7.1.dev64

Checklist Before Requesting Reviewer

  • Tests are passing
  • "WIP" removed from the title of the pull request
  • Selected an Assignee for the PR to be responsible for the log summary

Before Merging

For the PR Assignees:

  • Summarize commit messages into a comprehensive review of the PR

@matthewfeickert matthewfeickert added feat/enhancement New feature or request tests pytest API Changes the public API CLI Affects the CLI API labels Mar 6, 2023
@matthewfeickert matthewfeickert self-assigned this Mar 6, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
API Changes the public API CLI Affects the CLI API feat/enhancement New feature or request tests pytest
Projects
Status: In progress
Development

Successfully merging this pull request may close these issues.

Provide pyhf debug utility that prints debugging information for user issues
1 participant