diff --git a/.gitignore b/.gitignore index f264c73..2532e76 100644 --- a/.gitignore +++ b/.gitignore @@ -1,3 +1,4 @@ *.egg-info build -backup \ No newline at end of file +backup +dist diff --git a/README.md b/README.md index 956c7e2..8bc8160 100644 --- a/README.md +++ b/README.md @@ -4,6 +4,8 @@ Makes a backup of all your repositories and gists from GitHub ## Install +(On Linux you'll need to use `sudo`) + ### From PyPI `pip3 install gitback` @@ -14,6 +16,8 @@ Makes a backup of all your repositories and gists from GitHub ## Usage +You can also use `git backup` instead of `gitback`. + ```py usage: gitback [-h] [-n] [-P] [-s] [-f] [-z] [-q] [-u] [-p] [-r | -g] diff --git a/git-backup b/git-backup new file mode 100644 index 0000000..b5d02b8 --- /dev/null +++ b/git-backup @@ -0,0 +1,6 @@ +#!/usr/bin/python3 +from gitback import backup +from os import rmdir +if __name__ == '__main__': + try: backup() + except Exception: rmdir("backup") diff --git a/setup.py b/setup.py index 897c007..496a2e1 100644 --- a/setup.py +++ b/setup.py @@ -1,12 +1,13 @@ from setuptools import setup,find_packages setup( name='gitback', - version='1.1.2', + version='1.1.3', description='Makes a backup of all your repositories and gists from GitHub', long_description=open('README.md').read(), long_description_content_type="text/markdown", url='https://github.com/donno2048/gitback', packages=find_packages(), + scripts=['git-backup'], license='MIT', author='Elisha Hollander', classifiers=['Programming Language :: Python :: 3'],