Skip to content

Commit

Permalink
Release 7.0: Improve sanity checks, provide escape hatch (#18, #22)
Browse files Browse the repository at this point in the history
  • Loading branch information
xolox committed Feb 11, 2020
1 parent 0841eb8 commit 47e10cd
Show file tree
Hide file tree
Showing 3 changed files with 29 additions and 3 deletions.
26 changes: 26 additions & 0 deletions CHANGELOG.rst
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,32 @@ to `semantic versioning`_.
.. _Keep a Changelog: http://keepachangelog.com/
.. _semantic versioning: http://semver.org/

`Release 7.0`_ (2020-02-12)
---------------------------

**Significant changes:**

- Sanity checks are done to ensure the directory with backups exists, is
readable and is writable. However `#18`_ made it clear that such sanity
checks can misjudge the situation, which made me realize an escape hatch
should be provided. The new ``--force`` option makes ``rotate-backups``
continue even if sanity checks fail.

- Skip the sanity check that the directory with backups is writable when the
``--removal-command`` option is given (because custom removal commands imply
custom semantics, see `#18`_ for an example).

**Miscellaneous changes:**

- Start testing on Python 3.7 and document compatibility.
- Dropped Python 2.6 (I don't think anyone still cares about this 😉).
- Copied Travis CI workarounds for MacOS from :pypi:`humanfriendly`.
- Updated ``Makefile`` to use Python 3 for local development.
- Bumped copyright to 2020.

.. _Release 7.0: https://github.com/xolox/python-rotate-backups/compare/6.0...7.0
.. _#18: https://github.com/xolox/python-rotate-backups/issues/18

`Release 6.0`_ (2018-08-03)
---------------------------

Expand Down
2 changes: 1 addition & 1 deletion requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

coloredlogs >= 5.1
executor >= 19.2
humanfriendly >= 3.4
humanfriendly >= 6.1
naturalsort >= 1.4
property-manager >= 2.3
python-dateutil >= 2.2
Expand Down
4 changes: 2 additions & 2 deletions rotate_backups/__init__.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# rotate-backups: Simple command line interface for backup rotation.
#
# Author: Peter Odding <[email protected]>
# Last Change: February 11, 2020
# Last Change: February 12, 2020
# URL: https://github.com/xolox/python-rotate-backups

"""
Expand Down Expand Up @@ -43,7 +43,7 @@
from verboselogs import VerboseLogger

# Semi-standard module versioning.
__version__ = '6.0'
__version__ = '7.0'

# Initialize a logger for this module.
logger = VerboseLogger(__name__)
Expand Down

0 comments on commit 47e10cd

Please sign in to comment.