Changeset 1635:88033dab8187 in orange-bioinformatics


Ignore:
Timestamp:
04/17/12 00:33:51 (2 years ago)
Author:
mitar
Branch:
default
Message:

Updated setup.py file.

Files:
2 edited
1 moved

Legend:

Unmodified
Added
Removed
  • MANIFEST.in

    r1420 r1635  
    1 include *.py *.txt addon.xml 
    2 recursive-include widgets * 
    3 recursive-include doc * 
     1recursive-include Orange *.png 
     2recursive-include scripts * 
     3recursive-include tests * 
     4include COPYING 
     5include LICENSE 
     6include *.py *.txt *.rst 
  • README.rst

    r1630 r1635  
     1Orange Bioinformatics 
     2===================== 
     3 
     4Orange Bioinformatics is an add-on for Orange_ data mining software package. It 
     5extends Orange by providing common functionality for basic tasks in 
     6bioinformatics. It also provides widgets for Orange Canvas. 
     7 
     8.. _Orange: http://orange.biolab.si/ 
     9 
    110Installing 
    2 ========== 
     11---------- 
    312 
    413To install Bioinformatics add-on for Orange run:: 
  • setup.py

    r1596 r1635  
    11#!/usr/bin/env python 
    2 """\ 
    3 Orange Bioinformatics 
    4 ===================== 
    52 
    6 Orange Bioinformatics is an add-on for Orange data mining  
    7 software package. It extends Orange by providing common functionality 
    8 for basic tasks in bioinformatics. 
    9 """ 
     3import os 
    104 
    11 DOCLINES = __doc__.split("\n") 
     5from setuptools import setup, find_packages 
    126 
    13 try: 
    14     from setuptools import setup 
    15     have_setuptools = True 
    16 except ImportError: 
    17     from distutils.core import setup 
    18     have_setuptools = False 
     7NAME = 'Orange-Bioinformatics' 
    198 
    20 import os, glob 
     9VERSION = '1.1a' 
    2110 
    22 CLASSIFIERS = """\ 
    23 Development Status :: 4 - Beta 
    24 Programming Language :: Python 
    25 License :: OSI Approved :: GNU General Public License (GPL) 
    26 Operating System :: POSIX 
    27 Operating System :: Microsoft :: Windows 
    28 Topic :: Scientific/Engineering :: Visualization 
    29 Topic :: Scientific/Engineering :: Bio-Informatics 
    30 Intended Audience :: Education 
    31 Intended Audience :: Science/Research 
    32 """ 
     11DESCRIPTION = 'Orange Bioinformatics is an add-on for Orange data mining software package.' 
     12LONG_DESCRIPTION = open(os.path.join(os.path.dirname(__file__), 'README.rst')).read() 
     13AUTHOR = 'Bioinformatics Laboratory, FRI UL' 
     14AUTHOR_EMAIL = 'contact@orange.biolab.si' 
     15URL = 'http://orange.biolab.si/addons/' 
     16DOWNLOAD_URL = 'https://bitbucket.org/biolab/orange-bioinformatics/downloads' 
     17LICENSE = 'GPLv3' 
    3318 
    34 KEYWORDS = """\ 
    35 data mining  
    36 machine learning, 
    37 artificial intelligence 
    38 bioinformatics, 
    39 gene ontology 
    40 KEGG 
    41 expression profiles 
    42 """                       
     19KEYWORDS = ( 
     20    'data mining', 
     21    'machine learning', 
     22    'artificial intelligence', 
     23    'bioinformatics', 
     24    'gene ontology', 
     25    'KEGG', 
     26    'expression profiles', 
     27) 
    4328 
    44 NAME                = "Orange-Bioinformatics" 
    45 DESCRIPTION         = DOCLINES[0] 
    46 LONG_DESCRIPTION    = "\n".join(DOCLINES[3:]) 
    47 URL                 = "http://www.biolab.si/obi/" 
    48 DOWNLOAD_URL        = "https://bitbucket.org/biolab/orange-addon-bioinformatics/downloads" 
    49 LICENSE             = "GNU General Public License (GPL)" 
    50 CLASSIFIERS         = filter(None, CLASSIFIERS.split("\n")) 
    51 AUTHOR              = "Bioinformatics Laboratory, FRI UL" 
    52 AUTHOR_EMAIL        = "orange@fri.uni-lj.si" 
    53 KEYWORDS            = filter(None, KEYWORDS.split('\n')) 
     29CLASSIFIERS = ( 
     30    'Development Status :: 4 - Beta', 
     31    'Environment :: X11 Applications :: Qt', 
     32    'Environment :: Console', 
     33    'Environment :: Plugins', 
     34    'Programming Language :: Python', 
     35    'License :: OSI Approved :: GNU General Public License v3 or later (GPLv3+)', 
     36    'Operating System :: OS Independent', 
     37    'Topic :: Scientific/Engineering :: Artificial Intelligence', 
     38    'Topic :: Scientific/Engineering :: Visualization', 
     39    'Topic :: Scientific/Engineering :: Bio-Informatics', 
     40    'Topic :: Software Development :: Libraries :: Python Modules', 
     41    'Intended Audience :: Education', 
     42    'Intended Audience :: Science/Research', 
     43    'Intended Audience :: Developers', 
     44) 
    5445 
    55 MAYOR = 1 
    56 MINOR = 1 
    57 MICRO = 0 
    58 ISRELEASED = False 
     46PACKAGES = find_packages( 
     47    exclude = ('*.tests', '*.tests.*', 'tests.*', 'tests'), 
     48) 
     49  
     50PACKAGE_DATA = { 
     51} 
    5952 
    60 VERSION = "%i.%ia.%i" % (MAYOR, MINOR, MICRO) 
     53INSTALL_REQUIRES = ( 
     54    'Orange', 
     55    'suds', 
     56    'numpy', 
     57    'requests', 
     58    'scipy', 
     59    'oasa', 
     60    'bkchem', 
     61    'matplotlib', 
     62    'PIL', 
     63    'sqlite3', 
     64    'networkx', 
     65    'pygraphviz', 
     66    'PyQt4', 
     67    'openbabel', 
     68), 
    6169 
     70DEPENDENCY_LINKS = ( 
     71    'http://bkchem.zirael.org/download/bkchem-0.13.0.tar.gz', 
     72    'http://bkchem.zirael.org/download/oasa-0.13.1.tar.gz', 
     73) 
    6274 
    63 # list all documentation files that need to be included 
    64 docFiles = [] 
    65 for (dirp, dirns, n) in os.walk('doc'): 
    66     nr = [n1.replace('\\', '/') for n1 in n] 
    67     dirn = dirp.replace('\\', '/')[4:] 
    68     if len(dirn): 
    69         dirn = dirn + '/' 
    70     docFiles.extend( [dirn + n1r for n1r in nr if '.svn' not in dirp + '/' + n1r] ) 
     75ENTRY_POINTS = { 
     76    'orange.widgets': ( 
     77        'bioinformatics = Orange.bioinformatics.widgets', 
     78    ), 
     79} 
    7180 
    72 DEST_DIR="Orange/add-ons/Bioinformatics" 
     81NAMESPACE_PACKAGES = ( 
     82    'Orange', 
     83) 
    7384 
    74  
    75 if os.path.exists("VERSION.txt"): 
    76     VERSION = open("VERSION.txt", "rb").read() 
    77  
    78 if have_setuptools: 
    79     setuptool_args = {"install_requires": ["Orange", "suds"], 
    80                       "zip_safe": False, 
    81                      } 
    82 else: 
    83     setuptool_args = {} 
    84      
    85 PACKAGES = [ 'widgets', 'widgets.prototypes', 'doc', '', 
    86              'obiKEGG2', 'obiKEGG2.entry' ] 
    87      
    88 PACKAGE_DATA = {'widgets': ['icons/*.png'], 
    89                 'doc': docFiles, 
    90                 '':["addon.xml"] 
    91                 } 
    92                            
    93 if __name__ == "__main__": 
    94     setup(name = NAME, 
    95           version = VERSION, 
    96           description = DESCRIPTION, 
    97           long_description = LONG_DESCRIPTION, 
    98           author = AUTHOR, 
    99           author_email = AUTHOR_EMAIL, 
    100           url = URL, 
    101           download_url = DOWNLOAD_URL, 
    102           license = LICENSE, 
    103           keywords = KEYWORDS, 
    104           classifiers = CLASSIFIERS, 
    105           package_dir = {"": "."}, 
    106           packages = PACKAGES, 
    107           package_data = PACKAGE_DATA, 
    108           extra_path=("orange-bioinformatics", DEST_DIR), 
    109            
    110           **setuptool_args) 
     85if __name__ == '__main__': 
     86    setup( 
     87        name = NAME, 
     88        version = VERSION, 
     89        description = DESCRIPTION, 
     90        long_description = LONG_DESCRIPTION, 
     91        author = AUTHOR, 
     92        author_email = AUTHOR_EMAIL, 
     93        url = URL, 
     94        download_url = DOWNLOAD_URL, 
     95        license = LICENSE, 
     96        keywords = KEYWORDS, 
     97        classifiers = CLASSIFIERS, 
     98        packages = PACKAGES, 
     99        package_data = PACKAGE_DATA, 
     100        install_requires = INSTALL_REQUIRES, 
     101        dependency_links = DEPENDENCY_LINKS, 
     102        entry_points = ENTRY_POINTS, 
     103        namespace_packages = NAMESPACE_PACKAGES, 
     104        include_package_data = True, 
     105        zip_safe = False, 
     106    ) 
Note: See TracChangeset for help on using the changeset viewer.