Skip to content

Commit

Permalink
Merge pull request jazzband#82 from ZuluPro/some_clean
Browse files Browse the repository at this point in the history
Extra documentation and cleaning up code
  • Loading branch information
benjaoming committed Aug 12, 2015
2 parents 2561c38 + a7b0b3e commit 878e3e0
Show file tree
Hide file tree
Showing 7 changed files with 41 additions and 89 deletions.
57 changes: 0 additions & 57 deletions 2to3.patch

This file was deleted.

26 changes: 22 additions & 4 deletions README.rst
Expand Up @@ -8,19 +8,37 @@ Django Database Backup
:target: https://readthedocs.org/projects/django-dbbackup/?badge=latest
:alt: Documentation Status


.. image:: https://coveralls.io/repos/django-dbbackup/django-dbbackup/badge.svg?branch=master&service=github
:target: https://coveralls.io/github/django-dbbackup/django-dbbackup?branch=master


This Django application provides management commands to help backup and
restore your project database to AmazonS3, Dropbox or Local Disk.
restore your project database and media files with various storages such as
Amazon S3, DropBox or local file storage.

It is made for:

- Keep your important data secure and offsite.
- Ensure yours backup with GPG signature and encryption
- Archive with compression
- Use Crontab or Celery to setup automated backups.
- Great to keep your development database up to date.

Docs
====

http://django-dbbackup.readthedocs.org/
See our offical documentation at `Read The Docs`_.

Contributing
============

All contribution are very welcomed, propositions, problems, bugs and
enhancement are tracked with `GitHub issues`_ system and patch are submitted
via `pull requests`_.

We use `Travis`_ coupled with `Coveralls`_ as continious integration tools.

.. _`Read The Docs`: http://django-dbbackup.readthedocs.org/
.. _`GitHub issues`: https://github.com/django-dbbackup/django-dbbackup/issues
.. _`pull requests`: https://github.com/django-dbbackup/django-dbbackup/pulls
.. _Travis: https://travis-ci.org/django-dbbackup/django-dbbackup
.. _Coveralls: https://coveralls.io/github/django-dbbackup/django-dbbackup
13 changes: 0 additions & 13 deletions TODO.md

This file was deleted.

7 changes: 6 additions & 1 deletion dbbackup/__init__.py
@@ -1 +1,6 @@
VERSION = "2.0.5a"
"Management commands to help backup and restore a project database to \
AmazonS3, Dropbox or local disk."
VERSION = __version__ = "2.0.5a"
__author__ = 'Michael Shepanski'
__email__ = 'mjs7231@gmail.com'
__url__ = 'https://github.com/django-dbbackup/django-dbbackup'
2 changes: 1 addition & 1 deletion dbbackup/management/commands/dbbackup.py
Expand Up @@ -39,7 +39,7 @@ def handle(self, **options):
self.quiet = options.get('quiet')
try:
self.clean = options.get('clean')
self.clean_keep = getattr(settings, 'DBBACKUP_CLEANUP_KEEP', 10)
self.clean_keep = settings.CLEANUP_KEEP
self.database = options.get('database')
self.servername = options.get('servername')
self.compress = options.get('compress')
Expand Down
1 change: 1 addition & 0 deletions requirements-tests.txt
Expand Up @@ -2,3 +2,4 @@ pep8
flake8
mock
coverage
python-gnupg
24 changes: 11 additions & 13 deletions setup.py
@@ -1,27 +1,25 @@
import os
from setuptools import setup, find_packages

from dbbackup import VERSION


def get_path(fname):
return os.path.join(os.path.dirname(__file__), fname)
import dbbackup


def get_requirements():
return open('requirements.txt').read().splitlines()


def get_test_requirements():
return open('requirements-tests.txt').read().splitlines()


setup(
name='django-dbbackup',
version=VERSION,
description='Management commands to help backup and restore a project database to AmazonS3, Dropbox or local disk.',
author='Michael Shepanski',
author_email='mjs7231@gmail.com',
version=dbbackup.__version__,
description=dbbackup.__doc__,
author=dbbackup.__author__,
author_email=dbbackup.__email__,
install_requires=get_requirements(),
tests_require=('mock', 'python-gnupg'),
tests_require=get_test_requirements(),
license='BSD',
url='https://github.com/mjs7231/django-dbbackup',
url='https://github.com/django-dbbackup/django-dbbackup',
keywords=['django', 'dropbox', 'database', 'backup', 'amazon', 's3'],
packages=find_packages(exclude=['tests.runtests.main']),
test_suite='tests.runtests.main',
Expand Down

0 comments on commit 878e3e0

Please sign in to comment.