forked from autoreject/autoreject
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
2 changed files
with
14 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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' | ||
|
@@ -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, | ||
|