Commits

Michael Forbes committed c183fd0

Added setup.py and corrected an import error with client code string.
Current code is pip-installable. Needs manifest etc. for PyPi.

  • Participants
  • Parent commits ba0b903

Comments (0)

Files changed (3)

 README.html
+asyncplot.egg-info
 
 syntax: glob
 *.pyc

File asyncplot/client.py

 
 _CLIENTCOMMAND = """
 import cPickle
-import client
+import asyncplot.client
 Plotter = cPickle.loads(%(Plotter)s)
-c = client.Client(Plotter=Plotter, host=%(host)s, port=%(port)i)
+c = asyncplot.client.Client(Plotter=Plotter, host=%(host)s, port=%(port)i)
 c.run()
 """
 
+import os
+from setuptools import setup
+
+
+# Utility function to read the README file.
+# Used for the long_description.  It's nice, because now 1) we have a top level
+# README file and 2) it's easier to type in the README file than to put a raw
+# string in below ...
+def read(fname):
+    return open(os.path.join(os.path.dirname(__file__), fname)).read()
+
+setup(
+    name="asyncplot",
+    version="0.1",
+    author="Michael McNeil Forbes",
+    author_email="michael.forbes+python@gmail.com",
+    description="Asynchronous client-server library for simple plotting.",
+    license="BSD",
+    keywords="asynchronous plotting matplotlib",
+    url="https://bitbucket.org/mforbes/asyncplot",
+    packages=['asyncplot'],
+    long_description=read('README.rst'),
+    classifiers=[
+        "Development Status :: 3 - Alpha",
+        "Topic :: Utilities",
+        "License :: OSI Approved :: BSD License",
+    ],
+)