From 50c60404667d07e4237900fecc09df304d673965 Mon Sep 17 00:00:00 2001 From: Eric Coissac Date: Tue, 26 May 2015 10:39:28 +0200 Subject: [PATCH] description of the obitools3 package for the python installer --- MANIFEST.in | 5 ++-- requirements.txt | 1 + setup.py | 63 ++++++++++++++++++++++++++++++++++++++++++++++++ 3 files changed, 67 insertions(+), 2 deletions(-) diff --git a/MANIFEST.in b/MANIFEST.in index 95c028b..e4cd15c 100644 --- a/MANIFEST.in +++ b/MANIFEST.in @@ -1,10 +1,11 @@ include setup.py recursive-include distutils.ext *.py *.c *.pem -recursive-include src *.pyx *.pxd *.c *.h *.cfiles +recursive-include python *.pyx *.pxd *.c *.h *.cfiles +recursive-include src *.c *.h recursive-include doc/sphinx/source *.txt *.rst *.py recursive-include doc/sphinx/sphinxext *.py -include doc/sphinx/make.bat include doc/sphinx/Makefile +include doc/sphinx/Doxyfile include README.txt include requirements.txt diff --git a/requirements.txt b/requirements.txt index fef5fde..6b08d55 100644 --- a/requirements.txt +++ b/requirements.txt @@ -2,3 +2,4 @@ Cython>=0.21 Sphinx>=1.2.0 ipython>=3.0.0 +breathe>=4.0.0 diff --git a/setup.py b/setup.py index e69de29..822522a 100644 --- a/setup.py +++ b/setup.py @@ -0,0 +1,63 @@ +#!/usr/bin/env python + +import sys + +PACKAGE = "OBITools3" +VERSION = "0.0.0" +AUTHOR = 'Eric Coissac' +EMAIL = 'eric@coissac.eu' +URL = 'metabarcoding.org/obitools3' +LICENSE = 'CeCILL-V2' +DESCRIPTION ="Scripts and library for DNA metabarcoding", + +SRC = 'python' +CSRC = 'src' + +classifiers=['Development Status :: 1 - Planning', + 'Environment :: Console', + 'Intended Audience :: Science/Research', + 'License :: Other/Proprietary License', + 'Operating System :: Unix', + 'Programming Language :: Python', + 'Programming Language :: Python :: 3', + 'Topic :: Scientific/Engineering :: Bio-Informatics', + 'Topic :: Utilities', + ] + + +PYTHONMIN='3.4' + + +sys.path.append('distutils.ext') +sys.path.append(SRC) + +if __name__=="__main__": + + try: + from obitools3 import version + VERSION = version.version + except ImportError: + pass + + from obidistutils.serenity import serenity_mode + + serenity=serenity_mode(PACKAGE,VERSION) + + from obidistutils.core import setup + from obidistutils.core import CTOOLS + from obidistutils.core import CEXES + from obidistutils.core import FILES + + setup(name=PACKAGE, + description=DESCRIPTION, + classifiers=classifiers, + version=VERSION, + author=AUTHOR, + author_email=EMAIL, + license=LICENSE, + url=URL, + python_src=SRC, + sse='sse2', + serenity=serenity, + pythonmin=PYTHONMIN) +