Skip to content

Commit

Permalink
TESTING: Remove testing for Python 2.7
Browse files Browse the repository at this point in the history
  • Loading branch information
JoostJM committed Feb 11, 2020
1 parent fbb6ac0 commit a5a7e61
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 48 deletions.
41 changes: 7 additions & 34 deletions .circleci/config.yml
Expand Up @@ -21,37 +21,21 @@ jobs:
command: echo -e "Host github.com\n\tStrictHostKeyChecking no\n" > /etc/ssh/ssh_config
- checkout
- run:
# Jupyter datascience notebook does not support python 2 anymore, install it manually.
# See also https://github.com/jupyter/docker-stacks/issues/432
# Next, install python 2 kernel globally, so it can be found from the root
name: Install Python 2 Kernel
name: Install pyradiomics in Python 3
command: |
conda create -n python2 python=2 ipykernel
pip install kernda --no-cache
$CONDA_DIR/envs/python2/bin/python -m ipykernel install
kernda -o -y /usr/local/share/jupyter/kernels/python2/kernel.json
pip uninstall kernda -y
- run:
name: Install pyradiomics in Python 2 and 3
command: |
source activate python2
python -m pip install --no-cache-dir -r requirements.txt
python -m pip install --no-cache-dir -r requirements-dev.txt
python setup.py install
source activate root
python -m pip install --no-cache-dir -r requirements.txt
python -m pip install --no-cache-dir -r requirements-dev.txt
python setup.py install
- run:
name: test notebooks in python 2 and 3
name: test notebooks in python 3
command: |
jupyter nbconvert --ExecutePreprocessor.kernel_name=python2 --ExecutePreprocessor.timeout=-1 --to notebook --output-dir /tmp --execute notebooks/helloRadiomics.ipynb notebooks/helloFeatureClass.ipynb notebooks/PyRadiomicsExample.ipynb
jupyter nbconvert --ExecutePreprocessor.kernel_name=python3 --ExecutePreprocessor.timeout=-1 --to notebook --output-dir /tmp --execute notebooks/helloRadiomics.ipynb notebooks/helloFeatureClass.ipynb notebooks/PyRadiomicsExample.ipynb
build-2.7: &build_template
build-3.5: &build_template
working_directory: /pyradiomics
docker:
- image: circleci/python:2.7-jessie
- image: circleci/python:3.5-jessie
user: root
steps:
- checkout
Expand All @@ -75,12 +59,6 @@ jobs:
root: .
paths: dist

build-3.5:
<<: *build_template
docker:
- image: circleci/python:3.5-jessie
user: root

build-3.6:
<<: *build_template
docker:
Expand Down Expand Up @@ -163,7 +141,6 @@ jobs:
name: Build Conda packages
command: |
mkdir /conda-bld
conda build ./conda --python=2.7 --croot /conda-bld
conda build ./conda --python=3.5 --croot /conda-bld
conda build ./conda --python=3.6 --croot /conda-bld
conda build ./conda --python=3.7 --croot /conda-bld
Expand All @@ -176,26 +153,22 @@ workflows:
version: 2
build_and_deploy:
jobs:
- build-2.7: &build_job_template
- build-3.5: &build_job_template
filters:
tags:
only:
- /^v?[0-9]+(\.[0-9]+)*(rc[0-9]+)?/
- build-3.5:
<<: *build_job_template
- build-3.6:
<<: *build_job_template
- build-3.7:
<<: *build_job_template
- test-notebooks:
requires:
- build-2.7
- build-3.5
- build-3.6
- build-3.7
- build-3.7:
<<: *build_job_template
- deploy: &deploy_template
requires:
- build-2.7
- build-3.5
- build-3.6
- build-3.7
Expand Down
7 changes: 0 additions & 7 deletions .travis.yml
Expand Up @@ -5,12 +5,6 @@ language: python
matrix:
include:

- os: osx
language: generic
env:
- PYTHON_VERSION=2.7.12
- PYTHON_SHORT_VERSION=2.7

- os: osx
language: generic
env:
Expand All @@ -34,7 +28,6 @@ cache:
- $HOME/.pyenv/versions/3.7.2
- $HOME/.pyenv/versions/3.6.5
- $HOME/.pyenv/versions/3.5.5
- $HOME/.pyenv/versions/2.7.12
- $HOME/downloads

before_install:
Expand Down
8 changes: 1 addition & 7 deletions appveyor.yml
Expand Up @@ -3,13 +3,7 @@ version: "0.0.1.{build}"
environment:
matrix:

# Visual Studio (Python 2 & 3, 64 bit)

- PYTHON_DIR: "C:\\Python27-x64"
PYTHON_VERSION: "2.7.x"
PYTHON_SHORT_VERSION: "2.7"
PYTHON_ARCH: "64"
BLOCK: "0"
# Visual Studio (Python 3, 64 bit)

- PYTHON_DIR: "C:\\Python35-x64"
PYTHON_VERSION: "3.5.x"
Expand Down

0 comments on commit a5a7e61

Please sign in to comment.