Skip to content

Commit

Permalink
release 0.2
Browse files Browse the repository at this point in the history
- in setup.py, auto extract version from init.py
- bump version
- update whatsnew
- update circle
- get version in shpinx config from package.__version__
- update author
- fix appveyor badge
  • Loading branch information
sappelhoff committed Apr 26, 2019
1 parent 63d9c6c commit 30e97ef
Show file tree
Hide file tree
Showing 6 changed files with 56 additions and 10 deletions.
4 changes: 2 additions & 2 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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 "[email protected]";
git config --global user.name "Circle Ci";
cd doc;
Expand Down
2 changes: 1 addition & 1 deletion README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
8 changes: 5 additions & 3 deletions doc/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down Expand Up @@ -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.
Expand Down
35 changes: 33 additions & 2 deletions doc/whats_new.rst
Original file line number Diff line number Diff line change
Expand Up @@ -12,11 +12,25 @@ What's new?
Current
-------

- Add a reader for BIDS compatible raw files, by `Mainak Jas`_ (`#135 <https://github.com/mne-tools/mne-bids/pull/135>`_)
Changelog
~~~~~~~~~

Bug
~~~

API
~~~

.. _changes_0_2:

Version 0.2
-----------

Changelog
~~~~~~~~~

- Add a reader for BIDS compatible raw files, by `Mainak Jas`_ (`#135 <https://github.com/mne-tools/mne-bids/pull/135>`_)

Bug
~~~

Expand Down Expand Up @@ -47,6 +61,23 @@ API
- Remove Pandas requirement to reduce number of dependencies, by `Matt Sanderson`_ (`#122 <https://github.com/mne-tools/mne-bids/pull/122>`_)
- Use more modern API of event_from_annotations in MNE for extracting events in .vhdr and .set files, by `Mainak Jas`_ (`#167 <https://github.com/mne-tools/mne-bids/pull/167/files>`_)

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
Expand Down Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion mne_bids/__init__.py
Original file line number Diff line number Diff line change
@@ -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
Expand Down
15 changes: 14 additions & 1 deletion setup.py
Original file line number Diff line number Diff line change
@@ -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'
Expand All @@ -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,
Expand Down

0 comments on commit 30e97ef

Please sign in to comment.