diff --git a/.circleci/config.yml b/.circleci/config.yml index 3e21b5069..ca1d34853 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -37,8 +37,8 @@ jobs: name: github pages deployment command: | source activate testenv - if [ "${CIRCLE_BRANCH}" == "maint/0.1" ]; then - echo "Deploying dev docs."; + if [ "${CIRCLE_BRANCH}" == "maint/0.2" ]; then + echo "Deploying stable docs for ${CIRCLE_BRANCH}."; git config --global user.email "circle@mne.com"; git config --global user.name "Circle Ci"; cd doc; diff --git a/README.rst b/README.rst index 0f88a195a..6c0f5ae09 100644 --- a/README.rst +++ b/README.rst @@ -10,7 +10,7 @@ :alt: Travis -.. image:: https://ci.appveyor.com/api/projects/status/g6jqpv31sp7q103s/branch/master?svg=true "Appveyor" +.. image:: https://ci.appveyor.com/api/projects/status/d4u70pht341cwqxb/branch/master?svg=true :target: https://ci.appveyor.com/project/mne-tools/mne-bids/branch/master :alt: Appveyor diff --git a/doc/conf.py b/doc/conf.py index 666870379..3b15e598f 100644 --- a/doc/conf.py +++ b/doc/conf.py @@ -24,6 +24,8 @@ import sphinx_gallery # noqa import sphinx_bootstrap_theme +import mne_bids + # -- General configuration ------------------------------------------------ # If your documentation needs a minimal Sphinx version, state it here. @@ -64,16 +66,16 @@ copyright = u'%s, MNE Developers. Last updated on %s' % (td.year, td.isoformat()) -author = u'Mainak Jas' +author = u'MNE Developers' # The version info for the project you're documenting, acts as replacement for # |version| and |release|, also used in various other places throughout the # built documents. # # The short X.Y version. -version = u'0.2.dev0' +version = mne_bids.__version__ # The full version, including alpha/beta/rc tags. -release = u'0.2.dev0' +release = version # The language for content autogenerated by Sphinx. Refer to documentation # for a list of supported languages. diff --git a/doc/whats_new.rst b/doc/whats_new.rst index 1040bf978..39708d962 100644 --- a/doc/whats_new.rst +++ b/doc/whats_new.rst @@ -12,11 +12,25 @@ What's new? Current ------- -- Add a reader for BIDS compatible raw files, by `Mainak Jas`_ (`#135 `_) +Changelog +~~~~~~~~~ + +Bug +~~~ + +API +~~~ + +.. _changes_0_2: + +Version 0.2 +----------- Changelog ~~~~~~~~~ +- Add a reader for BIDS compatible raw files, by `Mainak Jas`_ (`#135 `_) + Bug ~~~ @@ -47,6 +61,23 @@ API - Remove Pandas requirement to reduce number of dependencies, by `Matt Sanderson`_ (`#122 `_) - Use more modern API of event_from_annotations in MNE for extracting events in .vhdr and .set files, by `Mainak Jas`_ (`#167 `_) +Authors +~~~~~~~ + +People who contributed to this release (in alphabetical order): + +* Alexandre Gramfort +* Chris Holdgraf +* Clemens Brunner +* Dominik Welke +* Ezequiel Mikulan +* Mainak Jas +* Matt Sanderson +* Maximilien Chaumon +* Romain Quentin +* Stefan Appelhoff +* Teon Brooks + .. _changes_0_1: Version 0.1 @@ -81,7 +112,7 @@ Bug Authors ~~~~~~~ -People who contributed to this release (in alphabetical order): +People who contributed to this release (in alphabetical order): * Alexandre Gramfort * Chris Holdgraf diff --git a/mne_bids/__init__.py b/mne_bids/__init__.py index a90954da6..ab43c68c6 100644 --- a/mne_bids/__init__.py +++ b/mne_bids/__init__.py @@ -1,6 +1,6 @@ """MNE software for easily interacting with BIDS compatible datasets.""" -__version__ = '0.2.dev0' +__version__ = '0.2' from .write import (write_raw_bids, make_bids_folders, make_bids_basename, # noqa: E501 F401 diff --git a/setup.py b/setup.py index c0b776ab5..9595f48bc 100644 --- a/setup.py +++ b/setup.py @@ -1,6 +1,19 @@ #! /usr/bin/env python +"""Setup MNE-BIDS.""" +import os from setuptools import setup, find_packages +# get the version +version = None +with open(os.path.join('mne_bids', '__init__.py'), 'r') as fid: + for line in (line.strip() for line in fid): + if line.startswith('__version__'): + version = line.split('=')[1].strip().strip('\'') + break +if version is None: + raise RuntimeError('Could not determine version') + + descr = """Experimental code for BIDS using MNE.""" DISTNAME = 'mne-bids' @@ -10,7 +23,7 @@ URL = 'https://mne-tools.github.io/mne-bids/' LICENSE = 'BSD (3-clause)' DOWNLOAD_URL = 'http://github.com/mne-tools/mne-bids' -VERSION = '0.2.dev0' +VERSION = version if __name__ == "__main__": setup(name=DISTNAME,