Skip to content

Commit

Permalink
Bump up version -> 0.1
Browse files Browse the repository at this point in the history
  • Loading branch information
jasmainak committed Jun 11, 2018
1 parent bd9df0c commit 36c1499
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 1 deletion.
2 changes: 2 additions & 0 deletions autoreject/__init__.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
__version__ = '0.1'

from .autoreject import _GlobalAutoReject, _AutoReject, AutoReject
from .autoreject import RejectLog
from .autoreject import compute_thresholds, validation_curve, get_rejection_threshold
Expand Down
13 changes: 12 additions & 1 deletion setup.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,18 @@
#! /usr/bin/env python
import os
import setuptools # noqa; we are using a setuptools namespace
from numpy.distutils.core import setup

# get the version (don't import autoreject here to avoid dependency)
version = None
with open(os.path.join('autoreject', '__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 = """Automated rejection and repair of epochs in M/EEG."""

DISTNAME = 'autoreject'
Expand All @@ -10,7 +21,7 @@
MAINTAINER_EMAIL = '[email protected]'
LICENSE = 'BSD (3-clause)'
DOWNLOAD_URL = 'https://github.com/autoreject/autoreject.git'
VERSION = '0.1.dev0'
VERSION = version

if __name__ == "__main__":
setup(name=DISTNAME,
Expand Down

0 comments on commit 36c1499

Please sign in to comment.