[PATCH] setup.py: add metadata to register package to PyPI

Benoit Boissinot bboissin at gmail.com
Wed Apr 11 17:42:44 CDT 2012


# HG changeset patch
# User Benoit Boissinot <benoit.boissinot at ens-lyon.org>
# Date 1334179903 -7200
# Node ID d37d3e33ba3cb7dc8ad94383dae4a7267dd1a71b
# Parent  ee163a9cf37c5783b7707f3264e3be901255ce25
setup.py: add metadata to register package to PyPI

This allows updating PyPI with just 'setup.py register' (assuming the user is
an owner or maintainer of the PyPI package).

diff --git a/setup.py b/setup.py
--- a/setup.py
+++ b/setup.py
@@ -472,13 +472,38 @@
     if xcode4:
         os.environ['ARCHFLAGS'] = ''
 
-setup(name='mercurial',
+setup(name='Mercurial',
       version=setupversion,
-      author='Matt Mackall',
-      author_email='mpm at selenic.com',
+      author='Matt Mackall and many others',
+      author_email='mercurial at selenic.com',
       url='http://mercurial.selenic.com/',
-      description='Scalable distributed SCM',
-      license='GNU GPLv2+',
+      download_url='http://mercurial.selenic.com/release/'
+      description=('Fast scalable distributed SCM (revision control, version '
+                   'control) system'),
+      long_description=('Mercurial is a distributed SCM tool written in Python.'
+                        ' It is used by a number of large projects that require'
+                        ' fast, reliable distributed revision control, such as '
+                        'Mozilla.'),
+      license='GNU GPLv2 or any later version',
+      classifiers=[
+          'Development Status :: 6 - Mature',
+          'Environment :: Console',
+          'Intended Audience :: Developers',
+          'Intended Audience :: System Administrators',
+          'License :: OSI Approved :: GNU General Public License (GPL)',
+          'Natural Language :: Danish',
+          'Natural Language :: English',
+          'Natural Language :: German',
+          'Natural Language :: Italian',
+          'Natural Language :: Japanese',
+          'Natural Language :: Portuguese (Brazilian)',
+          'Operating System :: Microsoft :: Windows',
+          'Operating System :: OS Independent',
+          'Operating System :: POSIX',
+          'Programming Language :: C',
+          'Programming Language :: Python',
+          'Topic :: Software Development :: Version Control',
+      ],
       scripts=scripts,
       packages=packages,
       py_modules=pymodules,


More information about the Mercurial-devel mailing list