Compare commits

...
14 Commits
8 changed files with 59 additions and 6 deletions
+1
View File
@@ -2,3 +2,4 @@ syntax: glob
*.egg-info
*.pyc
*.swp
.tox
+7
View File
@@ -1 +1,8 @@
467d3a3ce9185e84ee51ca9156499162efd94f9a 0.0.2
7730ae34665c0dedf46deab90b32780abf6dbaff 0.0.3
4bb2e81fc77038be4499b7ea6797ab7d109460e0 0.0.4
b31d51b633701554e84f996cc0c73bad2990780b 0.0.5
b31d51b633701554e84f996cc0c73bad2990780b 0.0.5
aa8a807f4ba28f0652764ed14713ffea2fd6922d 0.0.5
aa8a807f4ba28f0652764ed14713ffea2fd6922d 0.0.5
569aef47a9b25c55b13753f94706f5d330219995 0.0.5
+12
View File
@@ -1,3 +1,15 @@
0.0.5
* Fixed regression with --verbose output being buffered. This means dropping the helpful error
message introduced in 0.0.4.
0.0.4
* Now using tox to run tests against multiple versions of Python in one go.
* Helpful error message about how to create a repository if one is missing.
* Troubleshooting section with steps to deal with broken pipes.
* Nosetests config file (setup.cfg) with defaults.
0.0.3
* After pruning, run attic's consistency checks on all archives.
+26 -5
View File
@@ -51,7 +51,7 @@ key-based ssh access to the desired user account on the remote host.
To install atticmatic, run the following command to download and install it:
sudo pip install hg+https://torsion.org/hg/atticmatic
sudo pip install --upgrade hg+https://torsion.org/hg/atticmatic
Then copy the following configuration files:
@@ -85,13 +85,34 @@ If you'd like to see the available command-line arguments, view the help:
## Running tests
To install test-specific dependencies, first run:
First install tox, which is used for setting up testing environments:
sudo python setup.py test
pip install tox
To actually run tests, run:
Then, to actually run tests, run:
nosetests --detailed-errors
tox
## Troubleshooting
### Broken pipe with remote repository
When running atticmatic on a large remote repository, you may receive errors
like the following, particularly while "attic check" is valiating backups for
consistency:
Write failed: Broken pipe
attic: Error: Connection closed by remote host
This error can be caused by an ssh timeout, which you can rectify by adding
the following to the ~/.ssh/config file on the client:
Host *
ServerAliveInterval 120
This should make the client keep the connection alive while validating
backups.
## Feedback
+2
View File
@@ -0,0 +1,2 @@
[nosetests]
detailed-errors=1
+1 -1
View File
@@ -2,7 +2,7 @@ from setuptools import setup, find_packages
setup(
name='atticmatic',
version='0.0.2',
version='0.0.5',
description='A wrapper script for Attic backup software that creates and prunes backups',
author='Dan Helfman',
author_email='witten@torsion.org',
+2
View File
@@ -0,0 +1,2 @@
flexmock==0.9.7
nose==1.3.4
+8
View File
@@ -0,0 +1,8 @@
[tox]
envlist=py27,py34
skipsdist=True
[testenv]
usedevelop=True
deps=-rtest_requirements.txt
commands = nosetests