diff setup.py @ 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 0291afdd7555
children 46e69be8e2c8
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': ''},