1
0
Fork 0
mirror of https://github.com/clockfort/GitHub-Backup.git synced 2025-03-09 00:00:03 +01:00

Merge pull request #40 from stv0g/master

use setuptools for installation and updates
This commit is contained in:
Steffen Vogel 2020-09-08 08:33:44 +02:00 committed by GitHub
commit 4c33d9b114
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
5 changed files with 22 additions and 4 deletions

View file

@ -11,7 +11,7 @@ GitHub-Backup requires the `PyGitHub` Python package for the GitHub API v3.
Installation is simple with
```bash
pip install -r requirements.txt
pip install git+https://github.com/clockfort/GitHub-Backup
```
## Usage
@ -88,7 +88,7 @@ Then, put it in a cron job somewhere and forget about it for eternity.
Example:
```bash
./github-backup.py mohamed786 /home/mohamed786/githubbak -o LineageOS
github-backup mohamed786 /home/mohamed786/githubbak -o LineageOS
```
## Use a a personal access token (PAT) instead of your password

View file

View file

@ -1,2 +0,0 @@
requests
PyGitHub

20
setup.py Normal file
View file

@ -0,0 +1,20 @@
from setuptools import setup
setup(name='GitHub-Backup',
version='0.1',
description='Makes a backup of all of a github user\'s repositories',
url='https://github.com/clockfort/GitHub-Backup',
author='Chris Lockfort',
author_email='clockfort@csh.rit.edu',
license='CC0-1.0',
packages=['github_backup'],
install_requires=[
'requests',
'PyGitHub'
],
entry_points = {
'console_scripts': [
'github-backup=github_backup.github_backup:main'
],
},
zip_safe=True)