Skip to content

Commit

Permalink
Properly make better-exceptions optional
Browse files Browse the repository at this point in the history
  • Loading branch information
konstantinjdobler committed Sep 10, 2023
1 parent 2717632 commit 2894a7d
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 2 deletions.
9 changes: 8 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,12 +6,19 @@ A lean and hackable rich logger and drop-in enhanced replacement for the native

## Installation

You can install `print-on-steroids` with `pip`:

```bash
pip install print-on-steroids
```

or `conda`:

```bash
conda install -c conda-forge print-on-steroids
```

If installing from `conda`, you need to `pip install better-exceptions` manually if you want better traceback formatting.
We use the `better-exceptions` package if available to pretty print tracebacks. To install `better-exceptions`, use `pip install print-on-steroids[exceptions]` instead or run `pip install better-exceptions` manually.

## Features

Expand Down
3 changes: 2 additions & 1 deletion setup.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -20,14 +20,15 @@ python_requires = >=3.7
install_requires =
rich
tqdm
better-exceptions

zip_safe = True

[options.extras_require]
dev =
black
ruff
exceptions =
better-exceptions

[options.packages.find]
where = src

0 comments on commit 2894a7d

Please sign in to comment.