mirror of
https://github.com/clockfort/GitHub-Backup.git
synced 2025-03-09 00:00:03 +01:00
use setuptools for installation and updates
This commit is contained in:
parent
ddff67a4e8
commit
86a6a774cf
5 changed files with 23 additions and 5 deletions
|
@ -11,13 +11,13 @@ 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
|
||||
|
||||
```
|
||||
usage: github-backup.py [-h] [-v {all,public,private}]
|
||||
usage: github-backup [-h] [-v {all,public,private}]
|
||||
[-a {owner,collaborator,organization_member}] [-d]
|
||||
[-q] [-m] [-f] [-g ARGS [ARGS ...]]
|
||||
[-t {git,http,ssh}] [-s SUFFIX] [-p PASSWORD]
|
||||
|
@ -69,7 +69,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
|
||||
|
|
0
github_backup/__init__.py
Normal file
0
github_backup/__init__.py
Normal file
|
@ -1,2 +0,0 @@
|
|||
requests
|
||||
PyGitHub
|
20
setup.py
Normal file
20
setup.py
Normal 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)
|
Loading…
Add table
Reference in a new issue