Patchwork [1,of,2,STABLE] setup.py: add metadata to register package to PyPI

login
register
mail settings
Submitter Benoit Boissinot
Date March 9, 2013, 9:16 p.m.
Message ID <229f531e76c296c4ea40.1362863777@pouchy.lan>
Download mbox | patch
Permalink /patch/1096/
State Accepted
Commit 3f59cb1ccc73671b5aaf9f91eef2a466be1ff1e2
Headers show

Comments

Benoit Boissinot - March 9, 2013, 9:16 p.m.
# HG changeset patch
# User Benoit Boissinot <benoit.boissinot@ens-lyon.org>
# Date 1362388408 -3600
#      Mon Mar 04 10:13:28 2013 +0100
# Branch stable
# Node ID 229f531e76c296c4ea407a27ec53dac26d406425
# Parent  605c7c94fd70dcdb2ed695e8420e6ddae10a3a5b
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).

Patch

diff --git a/setup.py b/setup.py
--- a/setup.py
+++ b/setup.py
@@ -519,11 +519,36 @@ 
 
 setup(name='mercurial',
       version=setupversion,
-      author='Matt Mackall',
-      author_email='mpm@selenic.com',
+      author='Matt Mackall and many others',
+      author_email='mercurial@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,