Commits

Aleš Erjavec committed e4af8eb

Added more package meta information to the setup.py script.

Comments (0)

Files changed (1)

 from collections import namedtuple
 
 try:
-    from setuptools import setup
+    import setuptools
 except ImportError:
-    import distutils_setup
-    distutils_setup.use_setuptools()
-    from setuptools import setup
-
-from setuptools import find_packages
+    import ez_setup
+    ez_setup.use_setuptools()
 
 from numpy.distutils.misc_util import Configuration
 
+from setuptools import setup, find_packages
+
+
 from ConfigParser import SafeConfigParser
 
 
-NAME = "orangekit-earth"
-
+NAME = "orangekit.earth"
+VERSION = "0.0.1"
 DESCRIPTION = "A Python interface for the earth package by Stephen Milborrow"
-
 LONG_DESCRIPTION = open("README.txt", "rb").read()
+AUTHOR = "Bioinformatics Laboratory, FRI UL"
+AUTHOR_EMAIL = "contact@orange.biolab.si"
+URL = "https://bitbucket.org/biolab/orangekit-earth"
+LICENSE = "GPLv3"
 
 PACKAGES = find_packages()
 
 
     return config
 
+ENTRY_POINTS = {
+    "orange.addons": (
+        "regression__earth = orangekit.earth.earth"
+    ),
+    "orange.widgets": (
+        "Earth = orangekit.earth.widgets.OWEarth"
+    )
+}
+
+INSTALL_REQUIRES = (
+    "Orange >= 2.7"
+)
+
+SETUP_REQUIRES = (
+    "setuptools",
+    "numpy",
+)
+
+KEYWORDS = (
+    "mars",
+    "earth"
+    "multivariate adaptive regression splines"
+    "machine learning"
+    "orange add-on"
+)
+
+CLASSIFIERS = (
+    "Environment :: Console",
+    "Environment :: Plugins",
+    "Programming Language :: Python",
+    "License :: OSI Approved :: GNU General Public License v3 or later (GPLv3+)",
+    "Operating System :: OS Independent",
+    "Topic :: Scientific/Engineering :: Artificial Intelligence",
+    "Topic :: Software Development :: Libraries :: Python Modules",
+    "Intended Audience :: Education",
+    "Intended Audience :: Science/Research",
+    "Intended Audience :: Developers",
+)
+
 
 def setup_package():
-    setup(**configuration("orangekit").todict())
+    config = configuration("orangekit").todict()
+    del config["name"]
+    print config
+    setup(name=NAME,
+          version=VERSION,
+          description=DESCRIPTION,
+          long_description=LONG_DESCRIPTION,
+          author=AUTHOR,
+          author_email=AUTHOR_EMAIL,
+          url=URL,
+          license=LICENSE,
+          keywords=KEYWORDS,
+          classifiers=CLASSIFIERS,
+          packages=PACKAGES,
+          install_requires=INSTALL_REQUIRES,
+          setup_requires=SETUP_REQUIRES,
+          entry_points=ENTRY_POINTS,
+          zip_safe=False,
+          include_package_data=True,
+          **config)
 
 if __name__ == "__main__":
     setup_package()