Skip to content

Commit 14ee89c

Browse files
committed
Add PEP 301 metadata.
1 parent 12471d6 commit 14ee89c

1 file changed

Lines changed: 42 additions & 2 deletions

File tree

setup.py

Lines changed: 42 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1056,12 +1056,52 @@ def set_dir_modes_visitor(self, mode, dirname, names):
10561056
def is_chmod_supported(self):
10571057
return hasattr(os, 'chmod')
10581058

1059+
SUMMARY = """
1060+
Python is an interpreted, interactive, object-oriented programming
1061+
language. It is often compared to Tcl, Perl, Scheme or Java.
1062+
1063+
Python combines remarkable power with very clear syntax. It has
1064+
modules, classes, exceptions, very high level dynamic data types, and
1065+
dynamic typing. There are interfaces to many system calls and
1066+
libraries, as well as to various windowing systems (X11, Motif, Tk,
1067+
Mac, MFC). New built-in modules are easily written in C or C++. Python
1068+
is also usable as an extension language for applications that need a
1069+
programmable interface.
1070+
1071+
The Python implementation is portable: it runs on many brands of UNIX,
1072+
on Windows, DOS, OS/2, Mac, Amiga... If your favorite system isn't
1073+
listed here, it may still be supported, if there's a C compiler for
1074+
it. Ask around on comp.lang.python -- or just try compiling Python
1075+
yourself.
1076+
"""
1077+
1078+
CLASSIFIERS = """
1079+
Development Status :: 3 - Alpha
1080+
Development Status :: 6 - Mature
1081+
License :: OSI Approved :: Python Software Foundation License
1082+
Natural Language :: English
1083+
Programming Language :: C
1084+
Programming Language :: Python
1085+
Topic :: Software Development
1086+
"""
1087+
10591088
def main():
10601089
# turn off warnings when deprecated modules are imported
10611090
import warnings
10621091
warnings.filterwarnings("ignore",category=DeprecationWarning)
1063-
setup(name = 'Python standard library',
1064-
version = '%d.%d' % sys.version_info[:2],
1092+
setup(# PyPI Metadata (PEP 301)
1093+
name = "Python",
1094+
version = sys.version.split()[0],
1095+
url = "http://www.python.org/%s" % sys.version[:3],
1096+
maintainer = "Guido van Rossum and the Python community",
1097+
maintainer_email = "python-dev@python.org",
1098+
description = "A high-level object-oriented programming language",
1099+
long_description = SUMMARY.strip(),
1100+
license = "PSF license",
1101+
classifiers = filter(None, CLASSIFIERS.split("\n")),
1102+
platforms = ["Many"],
1103+
1104+
# Build info
10651105
cmdclass = {'build_ext':PyBuildExt, 'install':PyBuildInstall,
10661106
'install_lib':PyBuildInstallLib},
10671107
# The struct module is defined here, because build_ext won't be

0 commit comments

Comments
 (0)