pyhf icon indicating copy to clipboard operation
pyhf copied to clipboard

feat: Add environment information CLI

Open matthewfeickert opened this issue 2 years ago • 0 comments
trafficstars

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 avatar Mar 06 '23 06:03 matthewfeickert