Skip to content

Commit 47e10cd

Browse files
committed
Release 7.0: Improve sanity checks, provide escape hatch (#18, #22)
1 parent 0841eb8 commit 47e10cd

File tree

3 files changed

+29
-3
lines changed

3 files changed

+29
-3
lines changed

CHANGELOG.rst

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,32 @@ to `semantic versioning`_.
1111
.. _Keep a Changelog: http://keepachangelog.com/
1212
.. _semantic versioning: http://semver.org/
1313

14+
`Release 7.0`_ (2020-02-12)
15+
---------------------------
16+
17+
**Significant changes:**
18+
19+
- Sanity checks are done to ensure the directory with backups exists, is
20+
readable and is writable. However `#18`_ made it clear that such sanity
21+
checks can misjudge the situation, which made me realize an escape hatch
22+
should be provided. The new ``--force`` option makes ``rotate-backups``
23+
continue even if sanity checks fail.
24+
25+
- Skip the sanity check that the directory with backups is writable when the
26+
``--removal-command`` option is given (because custom removal commands imply
27+
custom semantics, see `#18`_ for an example).
28+
29+
**Miscellaneous changes:**
30+
31+
- Start testing on Python 3.7 and document compatibility.
32+
- Dropped Python 2.6 (I don't think anyone still cares about this 😉).
33+
- Copied Travis CI workarounds for MacOS from :pypi:`humanfriendly`.
34+
- Updated ``Makefile`` to use Python 3 for local development.
35+
- Bumped copyright to 2020.
36+
37+
.. _Release 7.0: https://github.com/xolox/python-rotate-backups/compare/6.0...7.0
38+
.. _#18: https://github.com/xolox/python-rotate-backups/issues/18
39+
1440
`Release 6.0`_ (2018-08-03)
1541
---------------------------
1642

requirements.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
coloredlogs >= 5.1
44
executor >= 19.2
5-
humanfriendly >= 3.4
5+
humanfriendly >= 6.1
66
naturalsort >= 1.4
77
property-manager >= 2.3
88
python-dateutil >= 2.2

rotate_backups/__init__.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# rotate-backups: Simple command line interface for backup rotation.
22
#
33
# Author: Peter Odding <peter@peterodding.com>
4-
# Last Change: February 11, 2020
4+
# Last Change: February 12, 2020
55
# URL: https://github.com/xolox/python-rotate-backups
66

77
"""
@@ -43,7 +43,7 @@
4343
from verboselogs import VerboseLogger
4444

4545
# Semi-standard module versioning.
46-
__version__ = '6.0'
46+
__version__ = '7.0'
4747

4848
# Initialize a logger for this module.
4949
logger = VerboseLogger(__name__)

0 commit comments

Comments
 (0)