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"]}