Skip to content

Commit

Permalink
Remove Python 2.7 stuff
Browse files Browse the repository at this point in the history
I don't really want to support that version, so there's no need to have
it in the continuous integration builds or anywhere else. Hope I did
catch every occurrence.
  • Loading branch information
gnn committed Nov 22, 2018
1 parent da4cee8 commit 1bd49cf
Show file tree
Hide file tree
Showing 7 changed files with 8 additions and 58 deletions.
6 changes: 0 additions & 6 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,12 +10,6 @@ env:
- TOXENV=docs
matrix:
include:
- python: '2.7'
env:
- TOXENV=py27-cover,report,coveralls,codecov
- python: '2.7'
env:
- TOXENV=py27-nocov
- python: '3.4'
env:
- TOXENV=py34-cover,report,coveralls,codecov
Expand Down
29 changes: 3 additions & 26 deletions appveyor.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,33 +7,10 @@ environment:
WITH_COMPILER: 'cmd /E:ON /V:ON /C .\ci\appveyor-with-compiler.cmd'
matrix:
- TOXENV: check
TOXPYTHON: C:\Python27\python.exe
PYTHON_HOME: C:\Python27
PYTHON_VERSION: '2.7'
PYTHON_ARCH: '32'
- TOXENV: 'py27-cover,report,codecov'
TOXPYTHON: C:\Python27\python.exe
PYTHON_HOME: C:\Python27
PYTHON_VERSION: '2.7'
PYTHON_ARCH: '32'
- TOXENV: 'py27-cover,report,codecov'
TOXPYTHON: C:\Python27-x64\python.exe
WINDOWS_SDK_VERSION: v7.0
PYTHON_HOME: C:\Python27-x64
PYTHON_VERSION: '2.7'
PYTHON_ARCH: '64'

- TOXENV: 'py27-nocov'
TOXPYTHON: C:\Python27\python.exe
PYTHON_HOME: C:\Python27
PYTHON_VERSION: '2.7'
TOXPYTHON: C:\Python34\python.exe
PYTHON_HOME: C:\Python34
PYTHON_VERSION: '3.4'
PYTHON_ARCH: '32'
- TOXENV: 'py27-nocov'
TOXPYTHON: C:\Python27-x64\python.exe
WINDOWS_SDK_VERSION: v7.0
PYTHON_HOME: C:\Python27-x64
PYTHON_VERSION: '2.7'
PYTHON_ARCH: '64'

- TOXENV: 'py34-cover,report,codecov'
TOXPYTHON: C:\Python34\python.exe
Expand Down
4 changes: 0 additions & 4 deletions ci/appveyor-bootstrap.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,6 @@
GET_PIP_URL = "https://bootstrap.pypa.io/get-pip.py"
GET_PIP_PATH = "C:\get-pip.py"
URLS = {
("2.7", "64"): BASE_URL + "2.7.13/python-2.7.13.amd64.msi",
("2.7", "32"): BASE_URL + "2.7.13/python-2.7.13.msi",
("3.4", "64"): BASE_URL + "3.4.4/python-3.4.4.amd64.msi",
("3.4", "32"): BASE_URL + "3.4.4/python-3.4.4.msi",
("3.5", "64"): BASE_URL + "3.5.4/python-3.5.4-amd64.exe",
Expand All @@ -29,8 +27,6 @@
}
INSTALL_CMD = {
# Commands are allowed to fail only if they are not the last command. Eg: uninstall (/x) allowed to fail.
"2.7": [["msiexec.exe", "/L*+!", "install.log", "/qn", "/x", "{path}"],
["msiexec.exe", "/L*+!", "install.log", "/qn", "/i", "{path}", "TARGETDIR={home}"]],
"3.4": [["msiexec.exe", "/L*+!", "install.log", "/qn", "/x", "{path}"],
["msiexec.exe", "/L*+!", "install.log", "/qn", "/i", "{path}", "TARGETDIR={home}"]],
"3.5": [["{path}", "/quiet", "TargetDir={home}"]],
Expand Down
6 changes: 3 additions & 3 deletions ci/templates/appveyor.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,9 @@ environment:
WITH_COMPILER: 'cmd /E:ON /V:ON /C .\ci\appveyor-with-compiler.cmd'
matrix:
- TOXENV: check
TOXPYTHON: C:\Python27\python.exe
PYTHON_HOME: C:\Python27
PYTHON_VERSION: '2.7'
TOXPYTHON: C:\Python34\python.exe
PYTHON_HOME: C:\Python34
PYTHON_VERSION: '3.4'
PYTHON_ARCH: '32'
{% for env, config in tox_environments|dictsort %}{{ '' }}{% if env.startswith(('py2', 'py3')) %}
- TOXENV: '{{ env }}{% if config.cover %},report,codecov{% endif %}'
Expand Down
2 changes: 1 addition & 1 deletion ci/templates/tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ envlist =

[testenv]
basepython =
{docs,spell}: {env:TOXPYTHON:python2.7}
{docs,spell}: {env:TOXPYTHON:python3}
{bootstrap,clean,check,report,codecov,coveralls}: {env:TOXPYTHON:python3}
setenv =
PYTHONPATH={toxinidir}/tests
Expand Down
1 change: 0 additions & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,6 @@ def read(*names, **kwargs):
'Operating System :: POSIX',
'Operating System :: Microsoft :: Windows',
'Programming Language :: Python',
'Programming Language :: Python :: 2.7',
'Programming Language :: Python :: 3',
'Programming Language :: Python :: 3.4',
'Programming Language :: Python :: 3.5',
Expand Down
18 changes: 1 addition & 17 deletions tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,6 @@ envlist =
clean,
check,
docs,
py27-cover,
py27-nocov,
py34-cover,
py34-nocov,
py35-cover,
Expand All @@ -21,7 +19,7 @@ envlist =

[testenv]
basepython =
{docs,spell}: {env:TOXPYTHON:python2.7}
{docs,spell}: {env:TOXPYTHON:python3}
{bootstrap,clean,check,report,codecov,coveralls}: {env:TOXPYTHON:python3}
setenv =
PYTHONPATH={toxinidir}/tests
Expand Down Expand Up @@ -104,20 +102,6 @@ commands = coverage erase
skip_install = true
deps = coverage

[testenv:py27-cover]
basepython = {env:TOXPYTHON:python2.7}
setenv =
{[testenv]setenv}
usedevelop = true
commands =
{posargs:nosetests --with-coverage --cover-package=oemof.tabular}
deps =
{[testenv]deps}
coverage

[testenv:py27-nocov]
basepython = {env:TOXPYTHON:python2.7}

[testenv:py34-cover]
basepython = {env:TOXPYTHON:python3.4}
setenv =
Expand Down

0 comments on commit 1bd49cf

Please sign in to comment.