Declare python 3.5 to be the minimal version
python 2 is long gone. Code in https://github.com/wummel/patool/pull/93 needs python3
This commit is contained in:
parent
8bb375e2f4
commit
81a178b028
13
.travis.yml
13
.travis.yml
|
@ -1,7 +1,6 @@
|
||||||
language: python
|
language: python
|
||||||
dist: bionic
|
dist: bionic
|
||||||
python:
|
python:
|
||||||
- "2.7"
|
|
||||||
- "3.5"
|
- "3.5"
|
||||||
- "3.6"
|
- "3.6"
|
||||||
- "3.7"
|
- "3.7"
|
||||||
|
@ -26,8 +25,6 @@ before_install:
|
||||||
# Note: pigz gives test errors on Travis CI since option "--" is not
|
# Note: pigz gives test errors on Travis CI since option "--" is not
|
||||||
# supported, but pigz 2.3.1 supports it. Must be an older version.
|
# supported, but pigz 2.3.1 supports it. Must be an older version.
|
||||||
|
|
||||||
# lzma is shipped with python 3 but requires 3rd party bindings on python2
|
|
||||||
- if [[ $TRAVIS_PYTHON_VERSION == 2.7 ]]; then pip install pyliblzma; fi
|
|
||||||
|
|
||||||
# command to install dependencies
|
# command to install dependencies
|
||||||
install:
|
install:
|
||||||
|
@ -37,14 +34,8 @@ install:
|
||||||
# command to run tests
|
# command to run tests
|
||||||
script:
|
script:
|
||||||
- make localbuild
|
- make localbuild
|
||||||
- if [ $TRAVIS_PYTHON_VERSION = 3.3 ]; then
|
- COVERAGE="coverage run"
|
||||||
COVERAGE= ;
|
- $COVERAGE python -m pytest -v tests/
|
||||||
PYTEST="python -m pytest";
|
|
||||||
else
|
|
||||||
COVERAGE="coverage run" ;
|
|
||||||
PYTEST=`which pytest`;
|
|
||||||
fi
|
|
||||||
- $COVERAGE $PYTEST -v tests/
|
|
||||||
|
|
||||||
after_success:
|
after_success:
|
||||||
- if [ ! -z "$COVERAGE" ]; then codecov; fi
|
- if [ ! -z "$COVERAGE" ]; then codecov; fi
|
||||||
|
|
|
@ -19,8 +19,8 @@ Setup file for the distuils module.
|
||||||
"""
|
"""
|
||||||
from __future__ import print_function
|
from __future__ import print_function
|
||||||
import sys
|
import sys
|
||||||
if not hasattr(sys, "version_info") or sys.version_info < (2, 7, 0, "final", 0):
|
if not hasattr(sys, "version_info") or sys.version_info < (3, 5):
|
||||||
raise SystemExit("This program requires Python 2.7 or later.")
|
raise SystemExit("This program requires Python 3.5 or later.")
|
||||||
import os
|
import os
|
||||||
import re
|
import re
|
||||||
from setuptools import setup
|
from setuptools import setup
|
||||||
|
@ -219,12 +219,12 @@ installed.
|
||||||
'Topic :: System :: Archiving',
|
'Topic :: System :: Archiving',
|
||||||
'Development Status :: 5 - Production/Stable',
|
'Development Status :: 5 - Production/Stable',
|
||||||
'License :: OSI Approved :: GNU General Public License (GPL)',
|
'License :: OSI Approved :: GNU General Public License (GPL)',
|
||||||
'Programming Language :: Python :: 2',
|
|
||||||
'Programming Language :: Python :: 2.7',
|
|
||||||
'Programming Language :: Python :: 3',
|
'Programming Language :: Python :: 3',
|
||||||
'Programming Language :: Python :: 3.3',
|
|
||||||
'Programming Language :: Python :: 3.4',
|
|
||||||
'Programming Language :: Python :: 3.5',
|
'Programming Language :: Python :: 3.5',
|
||||||
|
'Programming Language :: Python :: 3.6',
|
||||||
|
'Programming Language :: Python :: 3.7',
|
||||||
|
'Programming Language :: Python :: 3.8',
|
||||||
|
'Programming Language :: Python :: 3.9',
|
||||||
'Operating System :: OS Independent',
|
'Operating System :: OS Independent',
|
||||||
],
|
],
|
||||||
distclass = MyDistribution,
|
distclass = MyDistribution,
|
||||||
|
|
Loading…
Reference in New Issue