Commits

Jakub Zalewski committed 8e15b99

init

Comments (0)

Files changed (7)

+*.py[cod]
+
+# C extensions
+*.so
+
+# Packages
+*.egg
+*.egg-info
+dist
+build
+eggs
+parts
+bin
+var
+sdist
+develop-eggs
+.installed.cfg
+lib
+lib64
+
+# Installer logs
+pip-log.txt
+
+# Unit test / coverage reports
+.coverage
+.tox
+nosetests.xml
+
+# Translations
+*.mo
+
+# Mr Developer
+.mr.developer.cfg
+.project
+.pydevproject
+
+# Complexity
+output/*.html
+output/*/index.html
+
+# Sphinx
+docs/_build
+# Config file for automatic testing at travis-ci.org
+
+language: python
+
+python:
+  - "3.3"
+  - "2.7"
+  - "2.6"
+  - "pypy"
+
+# command to install dependencies, e.g. pip install -r requirements.txt --use-mirrors
+install: pip install -r requirements.txt
+
+before_script:
+  - psql -c 'create database fpgb_source_test;' -U postgres
+  - psql -c 'create database fpgb_target_test;' -U postgres
+
+# command to run tests, e.g. python setup.py test
+script: python setup.py test
+
+after_success:
+  - coveralls
+=======
+Credits
+=======
+
+Development Lead
+----------------
+
+* Jakub Zalewski <zalew7@gmail.com>
+
+Contributors
+------------
+
+None yet. Why not be the first?
+The MIT License (MIT)
+
+Copyright (c) 2013 Jakub Zalewski
+
+Permission is hereby granted, free of charge, to any person obtaining a copy of
+this software and associated documentation files (the "Software"), to deal in
+the Software without restriction, including without limitation the rights to
+use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of
+the Software, and to permit persons to whom the Software is furnished to do so,
+subject to the following conditions:
+
+The above copyright notice and this permission notice shall be included in all
+copies or substantial portions of the Software.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS
+FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR
+COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
+IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
+CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
+
+===============================
+Fabric PostgreSQL Backup
+===============================
+
+.. image:: https://badge.fury.io/py/fabric-pgbackup.png
+    :target: http://badge.fury.io/py/fabric-pgbackup
+
+.. image:: https://travis-ci.org/zalew/fabric-pgbackup.png?branch=master
+    :target: https://travis-ci.org/zalew/fabric-pgbackup
+
+.. image:: https://coveralls.io/repos/zalew/fabric-pgbackup/badge.png
+    :target: https://coveralls.io/r/zalew/fabric-pgbackup
+
+.. image:: https://pypip.in/d/fabric-pgbackup/badge.png
+    :target: https://crate.io/packages/fabric-pgbackup?version=latest
+
+PostgreSQL backup/restore utilities for Fabric
+
+* PyPI: https://pypi.python.org/pypi/fabric-pgbackup/
+* GitHub: https://github.com/zalew/fabric-pgbackup/
+* BitBucket: https://bitbucket.org/zalew/fabric-pgbackup/
+
+* Docs: http://fabric-pgbackup.rtfd.org
+* Issues: https://github.com/zalew/fabric-pgbackup/issues
+* License: MIT
+
+Features
+--------
+
+* TODO
+
+Install
+--------
+
+.. code-block:: shell
+
+    pip install fabric-pgbackup
+
+Usage
+--------
+
+.. code-block:: python
+
+    # fabfile.py
+    from fabric_pgbackup import *
+
+.. code-block:: python
+
+    # config
+
+**Backup**
+
+.. code-block:: shell
+
+    fab pg_backup
+
+**Restore**
+
+.. code-block:: shell
+
+    fab pg_restore
+
+See more in docs: http://fabric-pgbackup.rtfd.org
+
+
+#!/usr/bin/env python
+# -*- coding: utf-8 -*-
+
+import os
+import sys
+
+
+try:
+    from setuptools import setup
+except ImportError:
+    from distutils.core import setup
+
+if sys.argv[-1] == 'publish':
+    os.system('python setup.py sdist upload')
+    sys.exit()
+
+readme = open('README.rst').read()
+history = open('HISTORY.rst').read().replace('.. :changelog:', '')
+
+setup(
+    name='fabric-pgbackup',
+    version='0.1.0',
+    description='PostgreSQL backup/restore utilities for Fabric',
+    long_description=readme + '\n\n' + history,
+    author='Jakub Zalewski',
+    author_email='zalew7@gmail.com',
+    url='https://github.com/zalew/fabric-pgbackup',
+    packages=[
+        'fabric_pgbackup',
+    ],
+    include_package_data=True,
+    install_requires=[
+        'fabric',
+        'psycopg2',
+    ],
+    license="MIT",
+    zip_safe=False,
+    keywords='fabric-pgbackup',
+    classifiers=[
+        'Development Status :: 2 - Pre-Alpha',
+        'Intended Audience :: Developers',
+        'License :: OSI Approved :: MIT License',
+        'Natural Language :: English',
+        "Programming Language :: Python :: 2",
+        'Programming Language :: Python :: 2.6',
+        'Programming Language :: Python :: 2.7',
+    ],
+    test_suite='tests',
+)
+[tox]
+envlist = py26, py27, py33
+
+[testenv]
+setenv =
+    PYTHONPATH = {toxinidir}:{toxinidir}/fabric-pgbackup
+commands = python setup.py test
+deps =
+    -r{toxinidir}/requirements.txt