mirror of
https://github.com/borgbackup/borg.git
synced 2025-02-25 15:33:39 +00:00
Merge pull request #4019 from ThomasWaldmann/py37-1.1
Py37 (1.1 backport)
This commit is contained in:
commit
105a23ac0e
4 changed files with 16 additions and 9 deletions
14
.travis.yml
14
.travis.yml
|
@ -9,6 +9,10 @@ cache:
|
||||||
# note: use py 3.5.2, it has lzma support. 3.5(.0) on travis.org/trusty does not.
|
# note: use py 3.5.2, it has lzma support. 3.5(.0) on travis.org/trusty does not.
|
||||||
matrix:
|
matrix:
|
||||||
include:
|
include:
|
||||||
|
- python: 3.4
|
||||||
|
os: linux
|
||||||
|
dist: trusty
|
||||||
|
env: TOXENV=flake8
|
||||||
- python: 3.4
|
- python: 3.4
|
||||||
os: linux
|
os: linux
|
||||||
dist: trusty
|
dist: trusty
|
||||||
|
@ -21,14 +25,10 @@ matrix:
|
||||||
os: linux
|
os: linux
|
||||||
dist: trusty
|
dist: trusty
|
||||||
env: TOXENV=py36
|
env: TOXENV=py36
|
||||||
- python: 3.4
|
- python: 3.7
|
||||||
os: linux
|
os: linux
|
||||||
dist: trusty
|
dist: xenial
|
||||||
env: TOXENV=flake8
|
env: TOXENV=py37
|
||||||
- python: "3.6-dev"
|
|
||||||
os: linux
|
|
||||||
dist: trusty
|
|
||||||
env: TOXENV=py36
|
|
||||||
- language: generic
|
- language: generic
|
||||||
os: osx
|
os: osx
|
||||||
osx_image: xcode8.3
|
osx_image: xcode8.3
|
||||||
|
|
1
setup.py
1
setup.py
|
@ -830,6 +830,7 @@ def run(self):
|
||||||
'Programming Language :: Python :: 3.4',
|
'Programming Language :: Python :: 3.4',
|
||||||
'Programming Language :: Python :: 3.5',
|
'Programming Language :: Python :: 3.5',
|
||||||
'Programming Language :: Python :: 3.6',
|
'Programming Language :: Python :: 3.6',
|
||||||
|
'Programming Language :: Python :: 3.7',
|
||||||
'Topic :: Security :: Cryptography',
|
'Topic :: Security :: Cryptography',
|
||||||
'Topic :: System :: Archiving :: Backup',
|
'Topic :: System :: Archiving :: Backup',
|
||||||
],
|
],
|
||||||
|
|
|
@ -3673,7 +3673,13 @@ def basic_parser(self):
|
||||||
|
|
||||||
@pytest.fixture
|
@pytest.fixture
|
||||||
def subparsers(self, basic_parser):
|
def subparsers(self, basic_parser):
|
||||||
return basic_parser.add_subparsers(title='required arguments', metavar='<command>')
|
if sys.version_info >= (3, 7):
|
||||||
|
# py37 pre-release defaults to unwanted required=True, in 3.7.0+ it was fixed to =False
|
||||||
|
return basic_parser.add_subparsers(title='required arguments', metavar='<command>', required=False)
|
||||||
|
else:
|
||||||
|
# py36 does not support required=... argument (but behaves like required=False).
|
||||||
|
# note: use below call for 3.6 and 3.7 when there are no alphas/betas/RCs of 3.7.0 around any more.
|
||||||
|
return basic_parser.add_subparsers(title='required arguments', metavar='<command>')
|
||||||
|
|
||||||
@pytest.fixture
|
@pytest.fixture
|
||||||
def parser(self, basic_parser):
|
def parser(self, basic_parser):
|
||||||
|
|
2
tox.ini
2
tox.ini
|
@ -2,7 +2,7 @@
|
||||||
# fakeroot -u tox --recreate
|
# fakeroot -u tox --recreate
|
||||||
|
|
||||||
[tox]
|
[tox]
|
||||||
envlist = py{34,35,36},flake8
|
envlist = py{34,35,36,37},flake8
|
||||||
|
|
||||||
[testenv]
|
[testenv]
|
||||||
deps =
|
deps =
|
||||||
|
|
Loading…
Reference in a new issue