From 1f3f6669ef8dc17a646e89e3e6ccac2acfe984c4 Mon Sep 17 00:00:00 2001 From: neingeist Date: Fri, 17 Mar 2023 19:49:41 +0100 Subject: [PATCH] =?UTF-8?q?=F0=9F=93=A6=20make=20it=20pip-installable?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .gitignore | 2 ++ README.md | 6 ++++++ drive-download => drive_download.py | 0 pyproject.toml | 10 ++++++++++ 4 files changed, 18 insertions(+) create mode 100644 .gitignore rename drive-download => drive_download.py (100%) create mode 100644 pyproject.toml diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..819bdf5 --- /dev/null +++ b/.gitignore @@ -0,0 +1,2 @@ +/build/ +*.egg-info/ diff --git a/README.md b/README.md index 246a354..c3138b6 100644 --- a/README.md +++ b/README.md @@ -7,6 +7,12 @@ drive-download scanbot The script only downloads files it hasn't seen before. +## Installation +Preferably in a Python virtualenv: +``` +pip install ~/path/to/drive-download/ +``` + ## Configuring 1. Get Google Drive API id and secret from the Google API console. 2. Create and edit `.config/drive-download/settings.yaml`: diff --git a/drive-download b/drive_download.py similarity index 100% rename from drive-download rename to drive_download.py diff --git a/pyproject.toml b/pyproject.toml new file mode 100644 index 0000000..2cde927 --- /dev/null +++ b/pyproject.toml @@ -0,0 +1,10 @@ +[project] +name = "drive-download" +version = "0" +dynamic = ["dependencies"] + +[project.scripts] +drive-download = "drive_download:main" + +[tool.setuptools.dynamic] +dependencies = {file = ["requirements.txt"]}