Przeglądaj źródła

Bumped version to 1.1.

Nathan Beals 5 lat temu
rodzic
commit
4ebd06df03
3 zmienionych plików z 15 dodań i 2 usunięć
  1. 9 0
      README.md
  2. 5 1
      keep_exporter/export.py
  3. 1 1
      pyproject.toml

+ 9 - 0
README.md

@@ -26,4 +26,13 @@ Options:
   -d, --directory TEXT  Output directory for exported notes
   -u, --user TEXT       Google account email (environment variable 'GKEEP_USER')
   -p, --password TEXT   Google account password (environment variable 'GKEEP_PASSWORD')
+  --header / --no-header  Choose to include or exclude the frontmatter header (Default: on)
+```
+
+
+## Troubleshooting
+Some users have had issues with the requests library detailed in [this issue](https://github.com/ndbeals/keep-exporter/issues/1) when using `pipx`. The solution is to change the requests library version.
+```
+pipx install keep-exporter 
+pipx inject keep-exporter requests===2.23.0
 ```

+ 5 - 1
keep_exporter/export.py

@@ -147,7 +147,11 @@ def build_markdown(note: gkeepapi._node.Note, images: List[pathlib.Path]) -> str
     help="Google account password (environment variable 'GKEEP_PASSWORD')",
     hide_input=True,
 )
-@click.option("--header/--no-header", default=True)
+@click.option(
+    "--header/--no-header",
+    default=True,
+    help="Choose to include or exclude the frontmatter header (Default: on)",
+)
 def main(directory, user, password, header):
     """A simple utility to export google keep notes to markdown files with metadata stored as a frontmatter header."""
     outpath = pathlib.Path(directory).resolve()

+ 1 - 1
pyproject.toml

@@ -1,6 +1,6 @@
 [tool.poetry]
 name = "keep_exporter"
-version = "1.0.0"
+version = "1.1.0"
 description = "Google Keep note exporter utility"
 authors = ["Nathan Beals <ndbeals@users.noreply.github.com>"]
 license = "GPL v3"