Skip to content

Commit

Permalink
docs: add version information to bug template (#437)
Browse files Browse the repository at this point in the history
* docs: add version information to bug template

* 🦉 Updates from OwlBot post-processor

See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md

---------

Co-authored-by: Owl Bot <gcf-owl-bot[bot]@users.noreply.github.com>
  • Loading branch information
tswast and gcf-owl-bot[bot] authored Mar 15, 2024
1 parent e16a8c0 commit 91bd39e
Show file tree
Hide file tree
Showing 2 changed files with 49 additions and 0 deletions.
19 changes: 19 additions & 0 deletions .github/ISSUE_TEMPLATE/bug_report.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,25 @@ If you are still having issues, please be sure to include as much information as
- pip version: `pip --version`
- `bigframes` version: `pip show bigframes`


```python
import sys
import bigframes
import google.cloud.bigquery
import ibis
import pandas
import pyarrow
import sqlglot

print(f"Python: {sys.version}")
print(f"bigframes=={bigframes.__version__}")
print(f"google-cloud-bigquery=={google.cloud.bigquery.__version__}")
print(f"ibis=={ibis.__version__}")
print(f"pandas=={pandas.__version__}")
print(f"pyarrow=={pyarrow.__version__}")
print(f"sqlglot=={sqlglot.__version__}")
```

#### Steps to reproduce

1. ?
Expand Down
30 changes: 30 additions & 0 deletions owlbot.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@

import pathlib
import re
import textwrap

from synthtool import gcp
import synthtool as s
Expand Down Expand Up @@ -59,6 +60,35 @@
# Fixup files
# ----------------------------------------------------------------------------

# Encourage sharring all relevant versions in bug reports.
s.replace(
[".github/ISSUE_TEMPLATE/bug_report.md"],
re.escape("#### Steps to reproduce\n"),
textwrap.dedent(
"""
```python
import sys
import bigframes
import google.cloud.bigquery
import ibis
import pandas
import pyarrow
import sqlglot
print(f"Python: {sys.version}")
print(f"bigframes=={bigframes.__version__}")
print(f"google-cloud-bigquery=={google.cloud.bigquery.__version__}")
print(f"ibis=={ibis.__version__}")
print(f"pandas=={pandas.__version__}")
print(f"pyarrow=={pyarrow.__version__}")
print(f"sqlglot=={sqlglot.__version__}")
```
#### Steps to reproduce
""",
),
)

# Make sure build includes all necessary files.
s.replace(
["MANIFEST.in"],
Expand Down

0 comments on commit 91bd39e

Please sign in to comment.