📦 make it pip-installable

This commit is contained in:
neingeist 2023-03-17 19:49:41 +01:00
parent 95f331199b
commit 1f3f6669ef
4 changed files with 18 additions and 0 deletions

2
.gitignore vendored Normal file
View file

@ -0,0 +1,2 @@
/build/
*.egg-info/

View file

@ -7,6 +7,12 @@ drive-download scanbot
The script only downloads files it hasn't seen before. The script only downloads files it hasn't seen before.
## Installation
Preferably in a Python virtualenv:
```
pip install ~/path/to/drive-download/
```
## Configuring ## Configuring
1. Get Google Drive API id and secret from the Google API console. 1. Get Google Drive API id and secret from the Google API console.
2. Create and edit `.config/drive-download/settings.yaml`: 2. Create and edit `.config/drive-download/settings.yaml`:

10
pyproject.toml Normal file
View file

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