From 9842210f32e7d5a95b00bad5e36029e16ee678ca Mon Sep 17 00:00:00 2001 From: Guillaume Lemaitre Date: Sat, 7 Oct 2017 13:58:22 +0200 Subject: [PATCH] MAINT Update and synchronize python badge in README (#350) --- README.rst | 9 +++------ conda-recipe/conda_deployement.sh | 26 +++++++++++--------------- 2 files changed, 14 insertions(+), 21 deletions(-) diff --git a/README.rst b/README.rst index faa9ec03e..1b86d0d48 100644 --- a/README.rst +++ b/README.rst @@ -4,7 +4,7 @@ .. _scikit-learn-contrib: https://github.com/scikit-learn-contrib -|Landscape|_ |Travis|_ |AppVeyor|_ |Codecov|_ |CircleCI|_ |Python27|_ |Python35|_ |Pypi|_ |Gitter|_ +|Landscape|_ |Travis|_ |AppVeyor|_ |Codecov|_ |CircleCI|_ |PythonVersion|_ |Pypi|_ |Gitter|_ .. |Landscape| image:: https://landscape.io/github/scikit-learn-contrib/imbalanced-learn/master/landscape.svg?style=flat .. _Landscape: https://landscape.io/github/scikit-learn-contrib/imbalanced-learn/master @@ -21,11 +21,8 @@ .. |CircleCI| image:: https://circleci.com/gh/scikit-learn-contrib/imbalanced-learn.svg?style=shield&circle-token=:circle-token .. _CircleCI: https://circleci.com/gh/scikit-learn-contrib/imbalanced-learn/tree/master -.. |Python27| image:: https://img.shields.io/badge/python-2.7-blue.svg -.. _Python27: https://badge.fury.io/py/scikit-learn - -.. |Python35| image:: https://img.shields.io/badge/python-3.5-blue.svg -.. _Python35: https://badge.fury.io/py/scikit-learn +.. |PythonVersion| image:: https://img.shields.io/pypi/pyversions/imbalanced-learn.svg +.. _PythonVersion: https://img.shields.io/pypi/pyversions/imbalanced-learn.svg .. |Pypi| image:: https://badge.fury.io/py/imbalanced-learn.svg .. _Pypi: https://badge.fury.io/py/imbalanced-learn diff --git a/conda-recipe/conda_deployement.sh b/conda-recipe/conda_deployement.sh index 08bbc6b92..a1efd4e14 100755 --- a/conda-recipe/conda_deployement.sh +++ b/conda-recipe/conda_deployement.sh @@ -2,20 +2,16 @@ # This script is used to build and upload package to conda cloud # in an automatic manner -for pyv in {2.7,3.5,3.6} ; do - mkdir build_conda - conda build --python=$pyv --output-folder build_conda imbalanced-learn - conda convert --platform all build_conda/*.tar.bz2 \ - -o build_conda/ - dirs=`ls -l "$PWD/build_conda"` - for d in build_conda/*/ ; do - for file in $d* - do - if [[ -f $file ]]; then - # upload each package - anaconda upload $file - fi - done +mkdir build_conda +conda build build_conda imbalanced-learn +dirs=`ls -l "$PWD/build_conda"` +for d in build_conda/*/ ; do + for file in $d* + do + if [[ -f $file ]]; then + # upload each package + anaconda upload $file + fi done - rm -r build_conda done +rm -r build_conda