diff --git a/README.rst b/README.rst index 8d06ca0..336ca46 100644 --- a/README.rst +++ b/README.rst @@ -28,8 +28,11 @@ Should suffice with doing: Needless to say, no installation is needed just to use the module. A mere: - import pydot + import pydot_ng should do it, provided that the directory containing the modules is on Python module search path. +This library is API compatible with original pydot so you can use it like this: + + import pydot_ng as pydot diff --git a/pydot_ng/__init__.py b/pydot_ng/__init__.py index ed8d1de..dd8855b 100644 --- a/pydot_ng/__init__.py +++ b/pydot_ng/__init__.py @@ -10,8 +10,6 @@ pydot Homepage: http://code.google.com/p/pydot/ Graphviz: http://www.graphviz.org/ DOT Language: http://www.graphviz.org/doc/info/lang.html -Programmed and tested with Graphviz 2.26.3 and Python 2.6 on OSX 10.6.4 - Copyright (c) 2005-2011 Ero Carrera Distributed under MIT license [http://opensource.org/licenses/mit-license.html]. @@ -20,7 +18,6 @@ Distributed under MIT license [http://opensource.org/licenses/mit-license.html]. from __future__ import division, print_function __author__ = 'Ero Carrera' -__version__ = '1.0.29' __license__ = 'MIT' import os diff --git a/setup.py b/setup.py index f5181b6..ccb8d4a 100644 --- a/setup.py +++ b/setup.py @@ -1,15 +1,18 @@ #!/usr/bin/env python +from codecs import open +import os from setuptools import setup -import pydot_ng -import os os.environ['COPY_EXTENDED_ATTRIBUTES_DISABLE'] = 'true' os.environ['COPYFILE_DISABLE'] = 'true' +with open('README.rst', 'r', 'utf-8') as f: + readme = f.read() + setup( name='pydot_ng', - version=pydot_ng.__version__, + version='1.0.0', description='Python interface to Graphviz\'s Dot', author='Ero Carrera', author_email='ero@dkbza.org', @@ -28,7 +31,7 @@ setup( 'Topic :: Scientific/Engineering :: Visualization', 'Topic :: Software Development :: Libraries :: Python Modules' ], - long_description="\n".join(pydot_ng.__doc__.split('\n')), + long_description=readme, packages=['pydot_ng'], package_dir={'pydot_ng': 'pydot_ng'}, install_requires=[