Skip to content

Commit 213da42

Browse files
authored
Migrate to python 3.7 (#52) and prepare for release v2.0.0
* Apply 2to3 to get initial version and fix remaining incompatibilities * Update portals and refactor HDF5 (including pytables) and mzML portals * Update dependencies and test environment - Travis and AppVeyor * Add mybinder and initial python notebook (#47) * Add RTD and clean up docs folder (#51)
1 parent 2f552fe commit 213da42

File tree

77 files changed

+3349
-11186
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

77 files changed

+3349
-11186
lines changed

.gitignore

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,7 @@ nosetests.xml
4545
coverage.xml
4646
*,cover
4747
.hypothesis/
48+
debug.py
4849

4950
# Translations
5051
*.mo
@@ -63,6 +64,7 @@ instance/
6364

6465
# Sphinx documentation
6566
docs/_build/
67+
docs/source/images/alignment.graffle
6668

6769
# PyBuilder
6870
target/
@@ -82,12 +84,16 @@ celerybeat-schedule
8284
# virtualenv
8385
.venv
8486
venv/
87+
venv-py3/
8588
ENV/
8689

8790
# PyCharm
8891
# User-specific stuff:
8992
.idea/
9093

94+
# vscode
95+
.vscode
96+
9197
# R-lanaguage
9298
# History files
9399
.Rhistory

.readthedocs.yml

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
# .readthedocs.yml
2+
# Read the Docs configuration file
3+
# See https://docs.readthedocs.io/en/stable/config-file/v2.html for details
4+
5+
# Required
6+
version: 2
7+
8+
# Build documentation in the docs/ directory with Sphinx
9+
sphinx:
10+
configuration: docs/source/conf.py
11+
12+
# Optionally build your docs in additional formats such as PDF and ePub
13+
formats: all
14+
15+
conda:
16+
environment: environment.yml
17+
18+
python:
19+
version: 3.7
20+
install:
21+
- method: pip
22+
path: .

.travis.yml

Lines changed: 5 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,23 +1,20 @@
1+
dist: xenial
12
language: python
23
python:
3-
- "2.7"
4+
- "3.7"
45

56
install:
67
- sudo apt-get update
7-
- if [[ "$TRAVIS_PYTHON_VERSION" == "2.7" ]]; then
8-
wget https://repo.continuum.io/miniconda/Miniconda2-latest-Linux-x86_64.sh -O miniconda.sh;
9-
else
10-
wget https://repo.continuum.io/miniconda/Miniconda3-latest-Linux-x86_64.sh -O miniconda.sh;
11-
fi
8+
- wget https://repo.continuum.io/miniconda/Miniconda3-latest-Linux-x86_64.sh -O miniconda.sh;
129
- bash miniconda.sh -b -p $HOME/miniconda
1310
- export PATH="$HOME/miniconda/bin:$PATH"
1411
- hash -r
1512
- conda config --set always_yes yes --set changeps1 no
1613
- conda update -q conda
1714
- conda info -a
18-
19-
- conda create -q -n test-environment python=$TRAVIS_PYTHON_VERSION coverage green codecov --file conda-requirements.txt -c conda-forge -c bioconda
15+
- conda env create -n test-environment -f environment.yml
2016
- source activate test-environment
17+
- conda install coverage green codecov -c conda-forge
2118
- python setup.py install
2219

2320
script:

README.rst

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
DIMSpy
22
======
3-
|Version| |Py versions| |Git| |Bioconda| |Build Status (Travis)| |Build Status (AppVeyor)| |License| |RTD doc| |codecov|
3+
|Version| |Py versions| |Git| |Bioconda| |Build Status (Travis)| |Build Status (AppVeyor)| |License| |RTD doc| |codecov| |binder|
44

55
Python package to process direct-infusion mass spectrometry-based metabolomics and lipidomics data
66

@@ -67,3 +67,7 @@ Released under the GNU General Public License v3.0 (see `LICENSE file <https://g
6767

6868
.. |codecov| image:: https://codecov.io/gh/computational-metabolomics/dimspy/branch/master/graph/badge.svg
6969
:target: https://codecov.io/gh/computational-metabolomics/dimspy
70+
71+
.. |binder| image:: https://mybinder.org/badge_logo.svg
72+
:target: https://mybinder.org/v2/gh/computational-metabolomics/dimspy/master?filepath=notebooks%2Fworkflow.ipynb
73+

appveyor.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ build: false
22

33
environment:
44
matrix:
5-
- PYTHON_VERSION: 2.7
5+
- PYTHON_VERSION: 3.7
66
MINICONDA: C:\Miniconda-x64
77

88
init:
@@ -13,7 +13,7 @@ install:
1313
- conda config --set always_yes yes --set changeps1 no
1414
- conda update -q conda
1515
- conda info -a
16-
- "conda create -q -n test-environment python=%PYTHON_VERSION% --file conda-requirements.txt -c conda-forge -c bioconda -c pythonnet"
16+
- conda env create -n test-environment -f environment_win.yml
1717
- activate test-environment
1818
- python setup.py install
1919

binder/environment.yml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
name: dimspy
2+
channels:
3+
- conda-forge
4+
- bioconda
5+
- computational-metabolomics
6+
dependencies:
7+
- python=3.7
8+
- dimspy
9+

conda-requirements.txt

Lines changed: 0 additions & 9 deletions
This file was deleted.

0 commit comments

Comments
 (0)