changeset 320:1ba8ed29148e

Fix package name, use README for long_description
author Augie Fackler <durin42@gmail.com>
date Sun, 03 May 2009 22:01:23 -0500
parents 9c10656ce71e
children b6c6d32c8ef1 33736e2e25f0
files setup.py
diffstat 1 files changed, 4 insertions(+), 5 deletions(-) [+]
line wrap: on
line diff
--- a/setup.py
+++ b/setup.py
@@ -1,12 +1,10 @@
 #!/usr/bin/env python
 # -*- coding: utf-8 -*-
-
+import os
 import sys
 if not hasattr(sys, 'version_info') or sys.version_info < (2, 4, 0, 'final'):
     raise SystemExit("Mercurial requires python 2.4 or later.")
 
-from __init__ import __doc__
-
 try:
     from distutils.command.build_py import build_py_2to3 as build_py
 except ImportError:
@@ -14,7 +12,7 @@ except ImportError:
 from distutils.core import setup
 
 setup(
-    name = 'HgSubversion',
+    name = 'hgsubversion',
     version = '0.0.1',
     url = 'http://bitbucket.org/durin42/hgsubversion',
     license = 'GNU GPL',
@@ -22,7 +20,8 @@ setup(
     author_email = 'hgsubversion@googlegroups.com',
     description = ('hgsubversion is a Mercurial extension for working with '
                    'Subversion repositories.'),
-    long_description = __doc__,
+    long_description = open(os.path.join(os.path.dirname(__file__),
+                                         'README')).read(),
     keywords = 'mercurial',
     packages = ['hgext.hgsubversion', 'hgext.hgsubversion.svnwrap'],
     package_dir = {'hgext.hgsubversion': ''},