From 2be5446098b0b521fc9d5cf28f78021ba10f4f01 Mon Sep 17 00:00:00 2001 From: Thomas Waldmann Date: Tue, 11 Dec 2018 00:53:43 +0100 Subject: [PATCH] Revert "drop support for python 3.5, fixes #3919" This reverts commit 55314f807e89d19f50fb4682adca0fb84ab0d1aa. --- .travis.yml | 12 ++++++++++-- .travis/install.sh | 4 ++++ Vagrantfile | 4 ++-- setup.py | 3 ++- src/borg/archiver.py | 4 ++-- tox.ini | 2 +- 6 files changed, 21 insertions(+), 8 deletions(-) diff --git a/.travis.yml b/.travis.yml index 9f6561c6e..63e907fe3 100644 --- a/.travis.yml +++ b/.travis.yml @@ -8,10 +8,10 @@ cache: matrix: include: - - python: 3.6 + - python: 3.5 os: linux dist: trusty - env: TOXENV=flake8 + env: TOXENV=py35 - python: 3.6 os: linux dist: trusty @@ -28,6 +28,14 @@ matrix: os: linux dist: xenial env: TOXENV=py37 + - python: 3.5 + os: linux + dist: xenial + env: TOXENV=flake8 + - language: generic + os: osx + osx_image: xcode8.3 + env: TOXENV=py35 - language: generic os: osx osx_image: xcode8.3 diff --git a/.travis/install.sh b/.travis/install.sh index 7363aa64c..5bad12264 100755 --- a/.travis/install.sh +++ b/.travis/install.sh @@ -19,6 +19,10 @@ if [[ "$(uname -s)" == 'Darwin' ]]; then brew install Caskroom/cask/osxfuse case "${TOXENV}" in + py35) + pyenv install 3.5.2 + pyenv global 3.5.2 + ;; py36) pyenv install 3.6.0 pyenv global 3.6.0 diff --git a/Vagrantfile b/Vagrantfile index a1e070b0d..3775cd1d1 100644 --- a/Vagrantfile +++ b/Vagrantfile @@ -140,7 +140,7 @@ def install_borg(fuse) . ~/.bash_profile cd /vagrant/borg . borg-env/bin/activate - pip install -U wheel # upgrade wheel, too old for 3.6 + pip install -U wheel # upgrade wheel, too old for 3.5 cd borg pip install -r requirements.d/development.txt python setup.py clean @@ -310,6 +310,6 @@ Vagrant.configure(2) do |config| b.vm.provision "run tests", :type => :shell, :privileged => false, :inline => run_tests("darwin64") end - # TODO: create more VMs with python 3.6 and openssl 1.1. + # TODO: create more VMs with python 3.5+ and openssl 1.1. # See branch 1.1-maint for a better equipped Vagrantfile (but still on py34 and openssl 1.0). end diff --git a/setup.py b/setup.py index 20ace0fb5..dee1c0388 100644 --- a/setup.py +++ b/setup.py @@ -276,6 +276,7 @@ def run(self): 'Operating System :: POSIX :: Linux', 'Programming Language :: Python', 'Programming Language :: Python :: 3', + 'Programming Language :: Python :: 3.5', 'Programming Language :: Python :: 3.6', 'Programming Language :: Python :: 3.7', 'Topic :: Security :: Cryptography', @@ -302,5 +303,5 @@ def run(self): setup_requires=['setuptools_scm>=1.7'], install_requires=install_requires, extras_require=extras_require, - python_requires='>=3.6', + python_requires='>=3.5', ) diff --git a/src/borg/archiver.py b/src/borg/archiver.py index 998d8067d..44ccc6df0 100644 --- a/src/borg/archiver.py +++ b/src/borg/archiver.py @@ -2138,11 +2138,11 @@ def do_break_lock(self, args, repository): {now} The current local date and time, by default in ISO-8601 format. - You can also supply your own `format string `_, e.g. {now:%Y-%m-%d_%H:%M:%S} + You can also supply your own `format string `_, e.g. {now:%Y-%m-%d_%H:%M:%S} {utcnow} The current UTC date and time, by default in ISO-8601 format. - You can also supply your own `format string `_, e.g. {utcnow:%Y-%m-%d_%H:%M:%S} + You can also supply your own `format string `_, e.g. {utcnow:%Y-%m-%d_%H:%M:%S} {user} The user name (or UID, if no name is available) of the user running borg. diff --git a/tox.ini b/tox.ini index dc09fac0d..7a549e9e0 100644 --- a/tox.ini +++ b/tox.ini @@ -2,7 +2,7 @@ # fakeroot -u tox --recreate [tox] -envlist = py{36,37},flake8 +envlist = py{35,36,37},flake8 [testenv] deps =