Skip to content
This repository has been archived by the owner on Nov 4, 2024. It is now read-only.

Commit

Permalink
bump to v1.0.1
Browse files Browse the repository at this point in the history
  • Loading branch information
timvink committed Jan 20, 2022
1 parent e57bc31 commit e169c79
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 2 deletions.
9 changes: 9 additions & 0 deletions nb_prep/cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,15 @@ def rename(
paths = [Path(os.getcwd())]

if output_dir is not None:

if not isinstance(output_dir, Path):
output_dir = Path(output_dir)

output_dir = output_dir.expanduser()

if not Path(output_dir).exists():
raise NotADirectoryError(f"The --output-dir specified ('{output_dir}') does not exist")

paths += [output_dir]

filenames = find_files_in_paths(paths, extension=".html")
Expand Down
4 changes: 3 additions & 1 deletion nb_prep/nb_convert_strip.py
Original file line number Diff line number Diff line change
Expand Up @@ -35,8 +35,10 @@ def convert_notebook(
if not isinstance(output_dir, Path):
output_dir = Path(output_dir)

output_dir = output_dir.expanduser()

if not Path(output_dir).exists():
raise IsADirectoryError(f"The --output-dir specified ('{output_dir}') does not exist")
raise NotADirectoryError(f"The --output-dir specified ('{output_dir}') does not exist")

# Run 'nbconvert' ############

Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

setup_args = {
"name": "nb_prep",
"version": "1.0",
"version": "1.0.1",
"packages": find_packages(),
"install_requires": [
"jupyter-client>=7.1.1", # BSD-3 https://github.com/jupyter/jupyter_client/blob/main/COPYING.md
Expand Down

0 comments on commit e169c79

Please sign in to comment.