From 75e50fff055ae15d5686702fcfeda01691eee5f4 Mon Sep 17 00:00:00 2001 From: Leif Johnson Date: Tue, 11 Dec 2012 18:07:53 -0600 Subject: [PATCH] Add README.md to package manifest ; update setup.py to reflect best packaging know-how to date. --- MANIFEST.in | 1 + README.rst => README.md | 6 ++++-- setup.py | 13 +++++++------ 3 files changed, 12 insertions(+), 8 deletions(-) create mode 100644 MANIFEST.in rename README.rst => README.md (92%) diff --git a/MANIFEST.in b/MANIFEST.in new file mode 100644 index 0000000..bb3ec5f --- /dev/null +++ b/MANIFEST.in @@ -0,0 +1 @@ +include README.md diff --git a/README.rst b/README.md similarity index 92% rename from README.rst rename to README.md index a323404..325f8e1 100644 --- a/README.rst +++ b/README.md @@ -1,3 +1,5 @@ +# py-kohonen + This module contains some basic implementations of Kohonen-style vector quantizers: Self-Organizing Map (SOM), Neural Gas, and Growing Neural Gas. Kohonen-style vector quantizers use some sort of explicitly specified topology @@ -9,8 +11,8 @@ distribution. This process is also generally known as density estimation. The source distribution includes an interactive test module that uses PyGTK and Cairo to render a set of quantizers that move around in real time as samples are -drawn from a known distribution and fed to the quantizers. Run this test with :: +drawn from a known distribution and fed to the quantizers. Run this test with : - python kohonen_test.py + python kohonen_test.py Have fun ! diff --git a/setup.py b/setup.py index a27822a..6c562c8 100644 --- a/setup.py +++ b/setup.py @@ -1,23 +1,24 @@ +import os import setuptools setuptools.setup( name='lmj.kohonen', - version='1.1.1', - install_requires=['numpy'], + version='1.1.2', namespace_packages=['lmj'], - py_modules=['lmj.kohonen'], + packages=setuptools.find_packages(), author='Leif Johnson', author_email='leif@leifjohnson.net', - description='A small library of Kohonen-style vector quantizers.', - long_description=open('README.rst').read(), + description='A library of vector quantizers', + long_description=open(os.path.join(os.path.dirname(os.path.abspath(__file__)), 'README.md')).read(), license='MIT', + url='http://github.com/lmjohns3/py-kohonen', keywords=('kohonen ' 'self-organizing-map ' 'neural-gas ' 'growing-neural-gas ' 'vector-quantization ' 'machine-learning'), - url='http://github.com/lmjohns3/py-kohonen', + install_requires=['numpy'], classifiers=[ 'Development Status :: 5 - Production/Stable', 'Intended Audience :: Science/Research',