Skip to content

Commit

Permalink
Merge pull request #100 from yoshida-lab/feature/remove_py35_supprot_…
Browse files Browse the repository at this point in the history
…and_add_appveyor_ci

Remove py35 support and add Appveyor CI
  • Loading branch information
TsumiNa committed Mar 24, 2019
2 parents 3fc68d8 + e0246d9 commit c7661e8
Show file tree
Hide file tree
Showing 15 changed files with 21 additions and 95 deletions.
8 changes: 0 additions & 8 deletions .travis.yml
Expand Up @@ -9,10 +9,6 @@ git:

matrix:
include:
- os: linux
dist: xenial # use ubuntu 14.04lts
sudo: false # runs each build in a container on a shared host via Docker
env: PYENV=py35
- os: linux
dist: xenial
sudo: false
Expand All @@ -23,14 +19,10 @@ matrix:
dist: xenial
sudo: false
env: PYENV=py37
- os: osx
language: generic
env: PYENV=py35
- os: osx
language: generic
env: PYENV=py36
- os: osx
# skip: true
language: generic
env: PYENV=py37

Expand Down
3 changes: 2 additions & 1 deletion README.md
@@ -1,10 +1,11 @@
# What is XenonPy project

[![Join the chat at https://gitter.im/yoshida-lab/XenonPy](https://badges.gitter.im/yoshida-lab/XenonPy.svg)](https://gitter.im/yoshida-lab/XenonPy?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge&utm_content=badge)
[![Build Status](https://travis-ci.org/yoshida-lab/XenonPy.svg?branch=master)](https://travis-ci.org/yoshida-lab/XenonPy)
[![Build status](https://ci.appveyor.com/api/projects/status/vnh350xqffp6t9nk/branch/master?svg=true)](https://ci.appveyor.com/project/TsumiNa/xenonpy/branch/master)
[![codecov](https://codecov.io/gh/yoshida-lab/XenonPy/branch/master/graph/badge.svg)](https://codecov.io/gh/yoshida-lab/XenonPy)
[![Version](https://img.shields.io/github/tag/yoshida-lab/XenonPy.svg?maxAge=360)](https://github.com/yoshida-lab/XenonPy/releases/latest)
[![Python Versions](https://img.shields.io/pypi/pyversions/xenonpy.svg)](https://pypi.org/project/xenonpy/)
[![Join the chat at https://gitter.im/yoshida-lab/XenonPy](https://badges.gitter.im/yoshida-lab/XenonPy.svg)](https://gitter.im/yoshida-lab/XenonPy?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge&utm_content=badge)

**XenonPy** is a Python library that implements a comprehensive set of machine learning tools
for materials informatics. Its functionalities partially depend on PyTorch and R.
Expand Down
@@ -1,4 +1,4 @@
name: xepy36_cpu_linux
name: xepy36_cpu
channels:
- defaults
- pytorch
Expand Down
@@ -1,4 +1,4 @@
name: xepy37_cpu_linux
name: xepy37_cpu
channels:
- defaults
- pytorch
Expand Down
27 changes: 0 additions & 27 deletions devtools/conda_py35.yml

This file was deleted.

2 changes: 2 additions & 0 deletions devtools/conda_py36.yml
Expand Up @@ -23,5 +23,7 @@ dependencies:
- ruamel.yaml
- pymatgen==2019.3.13
- jupyterlab
- pybtex
- mordred
- yapf
- tqdm
2 changes: 2 additions & 0 deletions devtools/conda_py37.yml
Expand Up @@ -23,5 +23,7 @@ dependencies:
- ruamel.yaml
- pymatgen==2019.3.13
- jupyterlab
- pybtex
- mordred
- yapf
- tqdm
10 changes: 7 additions & 3 deletions docs/source/index.rst
Expand Up @@ -7,14 +7,15 @@
========================
What is XenonPy project
========================
.. image:: https://badges.gitter.im/yoshida-lab/XenonPy.svg
:alt: Join the chat at https://gitter.im/yoshida-lab/XenonPy
:target: https://gitter.im/yoshida-lab/XenonPy?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge&utm_content=badge

.. image:: https://travis-ci.org/yoshida-lab/XenonPy.svg?branch=master
:alt: Build Status
:target: https://travis-ci.org/yoshida-lab/XenonPy

.. image:: https://ci.appveyor.com/api/projects/status/vnh350xqffp6t9nk/branch/master?svg=true
:alt: Build Status
:target: https://ci.appveyor.com/project/TsumiNa/xenonpy

.. image:: https://codecov.io/gh/yoshida-lab/XenonPy/branch/master/graph/badge.svg
:target: https://codecov.io/gh/yoshida-lab/XenonPy

Expand All @@ -26,6 +27,9 @@ What is XenonPy project
:alt: Python Versions
:target: https://pypi.org/project/xenonpy/

.. image:: https://badges.gitter.im/yoshida-lab/XenonPy.svg
:alt: Join the chat at https://gitter.im/yoshida-lab/XenonPy
:target: https://gitter.im/yoshida-lab/XenonPy?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge&utm_content=badge

--------
Overview
Expand Down
3 changes: 2 additions & 1 deletion tests/datatools/test_storage.py
Expand Up @@ -39,7 +39,8 @@ def setup():

def test_storage_1(setup):
saver = setup['saver']
ret = '<{}> under `{}/.xenonpy/userdata` includes:'.format(setup['user_dataset'], Path.home())
ret = '<{}> under `{}` includes:'.format(setup['user_dataset'],
Path.home() / '.xenonpy' / 'userdata')
assert str(saver) == ret, 'no files'


Expand Down
12 changes: 2 additions & 10 deletions travis/before_install.sh
Expand Up @@ -31,10 +31,6 @@ conda info -a
case "${TRAVIS_OS_NAME}" in
osx)
case "${PYENV}" in
py35)
conda env create -f travis/osx/py35.yml
source activate xepy35
;;
py36)
conda env create -f travis/osx/py36.yml
source activate xepy36
Expand All @@ -47,16 +43,12 @@ case "${TRAVIS_OS_NAME}" in
;;
linux)
case "${PYENV}" in
py35)
conda env create -f travis/linux/py35.yml
source activate xepy35
;;
py36)
conda env create -f travis/linux/py36.yml
conda env create -f travis/linux-win/py36.yml
source activate xepy36
;;
py37)
conda env create -f travis/linux/py37.yml
conda env create -f travis/linux-win/py37.yml
source activate xepy37
;;
esac
Expand Down
File renamed without changes.
File renamed without changes.
21 changes: 0 additions & 21 deletions travis/linux/py35.yml

This file was deleted.

21 changes: 0 additions & 21 deletions travis/osx/py35.yml

This file was deleted.

3 changes: 2 additions & 1 deletion xenonpy/datatools/dataset.py
Expand Up @@ -51,7 +51,8 @@ def _nest(_f):
for f in files:
# select data
f = Path(f).resolve()
parent = str(f.parent).split('/')[-1]
parent = re.split(r'[\\/]', str(f.parent))[-1]
# parent = str(f.parent).split('/')[-1]
fn = f.name[:-(1 + len(patten))]
fn = self.__re__.sub('_', fn)
if parent in prefix:
Expand Down

0 comments on commit c7661e8

Please sign in to comment.