diff --git a/.github/ISSUE_TEMPLATE/bug-report.yml b/.github/ISSUE_TEMPLATE/bug-report.yml new file mode 100644 index 00000000..355d9e4e --- /dev/null +++ b/.github/ISSUE_TEMPLATE/bug-report.yml @@ -0,0 +1,46 @@ +name: Bug report +description: Report a bug. +title: "BUG:" +labels: [bug] + +body: +- type: markdown + attributes: + value: > + Thank you for taking the time to file a bug report. + +- type: textarea + attributes: + label: "Describe the issue:" + validations: + required: true + +- type: textarea + attributes: + label: "Code example:" + description: > + A short, self-contained code example that reproduces the problem. + placeholder: | + import pyerrors as pe + << your code here >> + render: python + validations: + required: true + +- type: textarea + attributes: + label: "Error message:" + description: > + Please include full error message, if any. + placeholder: | + << Full traceback starting from `Traceback: ...` >> + render: shell + +- type: textarea + attributes: + label: "Runtime information:" + description: > + Output of `pe.print_config()` (available from pyerrors 2.7). + For earlier versions please provide the python and pyerrors version. + validations: + required: true diff --git a/pyerrors/misc.py b/pyerrors/misc.py index 07fc8fe1..d71a2bb5 100644 --- a/pyerrors/misc.py +++ b/pyerrors/misc.py @@ -11,7 +11,8 @@ from .version import __version__ def print_config(): """Print information about version of python, pyerrors and dependencies.""" - config = {"python": platform.python_version(), + config = {"system": platform.system(), + "python": platform.python_version(), "pyerrors": __version__, "numpy": np.__version__, "scipy": scipy.__version__,