[med-svn] [python-mne] 246/376: ENH : setup.py + packaging
Yaroslav Halchenko
debian at onerussian.com
Fri Nov 27 17:23:00 UTC 2015
This is an automated email from the git hooks/post-receive script.
yoh pushed a commit to annotated tag v0.1
in repository python-mne.
commit b59e350237ad108fb190737c3f4c9b708cd96b2b
Author: Alexandre Gramfort <alexandre.gramfort at inria.fr>
Date: Thu May 12 17:24:21 2011 -0400
ENH : setup.py + packaging
---
.gitignore | 9 ++++++++
mne/time_frequency/tests/__init__.py | 0
setup.cfg | 25 ++++++++++++++++----
setup.py | 44 ++++++++++++++++++++++++++++++++----
4 files changed, 68 insertions(+), 10 deletions(-)
diff --git a/.gitignore b/.gitignore
index 02b9aba..95fc382 100755
--- a/.gitignore
+++ b/.gitignore
@@ -7,6 +7,15 @@
*~
.#*
*.swp
+*.lprof
+*.npy
+*.zip
+*.tar.*
+*.egg*
+*.tmproj
+tmtags
+auto_examples
+MNE-sample-data
build
dist/
diff --git a/mne/time_frequency/tests/__init__.py b/mne/time_frequency/tests/__init__.py
new file mode 100644
index 0000000..e69de29
diff --git a/setup.cfg b/setup.cfg
index bcd477b..2b0467a 100755
--- a/setup.cfg
+++ b/setup.cfg
@@ -1,10 +1,25 @@
[aliases]
-# python2.7 has upgraded unittest and it is no longer compatible with some
-# of our tests, so we run all through nose
-test = nosetests
+release = egg_info -RDb ''
+# Make sure the sphinx docs are built each time we do a dist.
+bdist = build_sphinx bdist
+sdist = build_sphinx sdist
+# Make sure a zip file is created each time we build the sphinx docs
+build_sphinx = generate_help build_sphinx zip_help
+# Make sure the docs are uploaded when we do an upload
+upload = upload upload_help
+
+[egg_info]
+tag_build = .dev
+
+[bdist_rpm]
+doc-files = doc
[nosetests]
+verbosity = 2
detailed-errors = 1
-with-doctest = 1
+with-coverage = 1
cover-package = mne
-
+#pdb = 1
+#pdb-failures = 1
+with-doctest = 1
+doctest-extension=rst
diff --git a/setup.py b/setup.py
index b6b6b8e..e407e97 100755
--- a/setup.py
+++ b/setup.py
@@ -5,21 +5,46 @@
descr = """MNE python project for MEG and EEG data analysis."""
import os
+import sys
+import mne
DISTNAME = 'mne'
DESCRIPTION = 'MNE python project for MEG and EEG data analysis'
LONG_DESCRIPTION = descr
MAINTAINER = 'Alexandre Gramfort'
MAINTAINER_EMAIL = 'gramfort at nmr.mgh.harvard.edu'
-URL = 'http://github.com/mne/mne'
+URL = 'http://github.com/mne-tools/mne-python'
LICENSE = 'BSD (3-clause)'
-DOWNLOAD_URL = 'http://github.com/mne/mne'
-VERSION = '0.1.git'
+DOWNLOAD_URL = 'http://github.com/mne-tools/mne-python'
+VERSION = mne.__version__
import setuptools # we are using a setuptools namespace
from numpy.distutils.core import setup
+# For some commands, use setuptools
+if len(set(('develop', 'sdist', 'release', 'bdist_egg', 'bdist_rpm',
+ 'bdist', 'bdist_dumb', 'bdist_wininst', 'install_egg_info',
+ 'build_sphinx', 'egg_info', 'easy_install', 'upload',
+ )).intersection(sys.argv)) > 0:
+ from setupegg import extra_setuptools_args
+
+# extra_setuptools_args is injected by the setupegg.py script, for
+# running the setup with setuptools.
+if not 'extra_setuptools_args' in globals():
+ extra_setuptools_args = dict()
+
+
+# if nose available, provide test command
+try:
+ from nose.commands import nosetests
+ cmdclass = extra_setuptools_args.pop('cmdclass', {})
+ cmdclass['test'] = nosetests
+ cmdclass['nosetests'] = nosetests
+ extra_setuptools_args['cmdclass'] = cmdclass
+except ImportError:
+ pass
+
if __name__ == "__main__":
if os.path.exists('MANIFEST'): os.remove('MANIFEST')
@@ -46,5 +71,14 @@ if __name__ == "__main__":
'Operating System :: POSIX',
'Operating System :: Unix',
'Operating System :: MacOS'
- ]
- )
+ ],
+ platforms='any',
+ packages=['mne', 'mne.tests',
+ 'mne.fiff', 'mne.fiff.tests',
+ 'mne.datasets', 'mne.datasets.sample',
+ 'mne.stats', 'mne.stats.tests',
+ 'mne.artifacts', 'mne.artifacts.tests',
+ 'mne.minimum_norm', 'mne.minimum_norm.tests',
+ 'mne.layouts',
+ 'mne.time_frequency', 'mne.time_frequency.tests'],
+ **extra_setuptools_args)
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/debian-med/python-mne.git
More information about the debian-med-commit
mailing list