From slash@dotnetslash.net Thu May 1 01:16:42 2003 From: slash@dotnetslash.net (Mark W. Alexander) Date: Wed, 30 Apr 2003 20:16:42 -0400 (EDT) Subject: [Catalog-sig] PEP 314: latest draft In-Reply-To: <E19AZ28-0002Ib-00@ute.mems-exchange.org> Message-ID: <Pine.LNX.4.44.0304302000440.4058-100000@llave.eproinet.com> On Tue, 29 Apr 2003, Andrew Kuchling wrote: > Here's the current draft of PEP 314. A number of XXX comments have > been removed; version declarations can now be included in the > Conflicts and Obsoletes fields; the Classifiers field from PEP 301 > is now included. > > An open issue: with the addition of Classifiers, should the > Platforms and License fields be deprecated and/or removed? Someone already mentioned that License should be required, so I agree that it should be retained independent of the Classifiers. Platforms could go either way, so let me throw out another idea: Platforms could be a some kind of attribute that maps the package name to the differing naming requirements of binary packagers. For example, Debian packages must be all lower case. Solaris packages have (an extremely annoying, and I know you agree with the annoyances of Solaris ;) 9 character limitation. This also implies that "linux2" is insufficient as a "platform". Something that indicates the OS native package format would be more helpful. It's my firm belief, however, that the metadata should contain all the information that's required for those who would like to write bdist commands, and with the exception of the previous paragraphs annoyance, I think you've covered that. Now another question for thought. The metadata corresponds to what? The source distribution or a binary package or both? I'd like to see Distutils progress to where multiple binary packages can be produced from a single source, ala Marc's mx series, only without the need to create custom setup classes (Marc's far more creative than I am). If we can ever get there, then the metadata would be most usefull if it was available for each binary package. Again, _if_ that's a reasonable target, then source distributions will need to be able to provide multiple instances of the metadata, one for each potential binary package. mwa -- Mark W. Alexander slash@dotnetslash.net From richardjones@optushome.com.au Thu May 1 13:26:31 2003 From: richardjones@optushome.com.au (Richard Jones) Date: Thu, 1 May 2003 22:26:31 +1000 Subject: [Catalog-sig] PEP 314: latest draft In-Reply-To: <Pine.LNX.4.44.0304302000440.4058-100000@llave.eproinet.com> References: <Pine.LNX.4.44.0304302000440.4058-100000@llave.eproinet.com> Message-ID: <200305012226.31765.richardjones@optushome.com.au> --Boundary-02=_3JRs+Zlx1NAC029 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Content-Description: signed data Content-Disposition: inline On Thursday 01 May 2003 10:16 am, Mark W. Alexander wrote: > On Tue, 29 Apr 2003, Andrew Kuchling wrote: > > Here's the current draft of PEP 314. A number of XXX comments have > > been removed; version declarations can now be included in the > > Conflicts and Obsoletes fields; the Classifiers field from PEP 301 > > is now included. > > > > An open issue: with the addition of Classifiers, should the > > Platforms and License fields be deprecated and/or removed? > > Someone already mentioned that License should be required, so I agree > that it should be retained independent of the Classifiers. There's been a suggestion that PyPI or distutils should enforce the=20 specification of at least one classifier for each of Development Status,=20 License, Operating System and possibly Natural Language. Richard --Boundary-02=_3JRs+Zlx1NAC029 Content-Type: application/pgp-signature Content-Description: signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.1 (GNU/Linux) iD8DBQA+sRJ3rGisBEHG6TARAowrAJ91keXPARy01qtQmydygI39n+mcJQCfZN12 mqfryEkM0+eRUtcR9gdxY40= =auOv -----END PGP SIGNATURE----- --Boundary-02=_3JRs+Zlx1NAC029-- From fredrik@pythonware.com Wed May 7 11:54:50 2003 From: fredrik@pythonware.com (Fredrik Lundh) Date: Wed, 7 May 2003 12:54:50 +0200 Subject: [Catalog-sig] PyPI PKG-INFO submission drops first classifier Message-ID: <b9aoja$grk$1@main.gmane.org> just noticed that the "upload your PKG-INFO file" feature on http://www.python.org/pypi?:action=submit_form seems to drop the first classifier. I cannot get the "register" command to work from here (pro- bably some firewall issue), so I've been using the PKG-INFO for the previous version as a template for each new release. today, I noticed that this approach didn't work as well as I had expected: pil 1.1.4a4: Development Status :: 6 - Mature Operating System :: OS Independent Programming Language :: Python Topic :: Multimedia :: Graphics Topic :: Multimedia :: Graphics :: Graphics Conversion Topic :: Software Development :: Libraries pil 1.1.4b1: Operating System :: OS Independent Programming Language :: Python Topic :: Multimedia :: Graphics Topic :: Multimedia :: Graphics :: Graphics Conversion Topic :: Software Development :: Libraries pil 1.1.4b2 (before correction): Programming Language :: Python Topic :: Multimedia :: Graphics Topic :: Multimedia :: Graphics :: Graphics Conversion Topic :: Software Development :: Libraries </F> From akuchlin@mems-exchange.org Wed May 7 15:49:07 2003 From: akuchlin@mems-exchange.org (Andrew Kuchling) Date: Wed, 7 May 2003 10:49:07 -0400 Subject: [Catalog-sig] PEP 314: latest draft In-Reply-To: <200304300807.37255.richardjones@optushome.com.au> References: <E19AZ28-0002Ib-00@ute.mems-exchange.org> <200304300807.37255.richardjones@optushome.com.au> Message-ID: <20030507144907.GA23752@ute.mems-exchange.org> --fUYQa+Pmc3FrFX/N Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Wed, Apr 30, 2003 at 08:07:37AM +1000, Richard Jones wrote: >I've had instances where users have included the entirety of their license= in=20 >the license field. The question is whether that's appropriate. I also vote= =20 Not according to PEP 241: "License: A string selected from a short list of choices, specifying the license covering the package." >I believe we should ask for adherence to the ReST format here. Simple=20 >paragraphs for most descriptions and use of ReST formatting if you want to= =20 >get fancy. At the moment I'm <pre> formatting the description in PyPI beca= use=20 >I don't know whether I can trust the input data. Is it OK to begin building a dependency on ReST into the Python core?=20 Maybe I'll bring this up on python-dev. >Download URL? Proposed text: Download-URL =20 A string containing the URL from which this version of the package=20 can be downloaded. (This means that the URL can't be something like ".../package-latest.tgz", but instead must be "../package-0.45.tgz".) >> A string containing at a minimum the author's name. Contact >> information can also be added, separating each line with >> newlines. > >PyPI will have to be modified to handle this spec :) Hm... that seems doubtful, and I've never seen it used. I've removed=20 the mention of separating each line. --amk (www.amk.ca) Prying curiosity means death. -- H.P. Lovecraft, "The Rats in the Walls" --fUYQa+Pmc3FrFX/N Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.0.6 (GNU/Linux) Comment: For info see http://www.gnupg.org iD8DBQE+uRzjkTvcXou9d/ARAiAYAJ9HFGXpXUlcQPYi7gEYr+kE1XqPvACdENAf cphnCIFzKor8h1cJ9L7eDBY= =5Nk2 -----END PGP SIGNATURE----- --fUYQa+Pmc3FrFX/N-- From akuchlin@mems-exchange.org Wed May 7 16:02:00 2003 From: akuchlin@mems-exchange.org (Andrew Kuchling) Date: Wed, 7 May 2003 11:02:00 -0400 Subject: [Catalog-sig] PEP 314: latest draft In-Reply-To: <1051661643.28927.882.camel@troglodyte.funhouse> References: <E19AZ28-0002Ib-00@ute.mems-exchange.org> <1051661643.28927.882.camel@troglodyte.funhouse> Message-ID: <20030507150200.GB23752@ute.mems-exchange.org> --V0207lvV8h4k8FAm Content-Type: text/plain; charset=us-ascii Content-Disposition: inline On Tue, Apr 29, 2003 at 05:14:05PM -0700, Kevin Turner wrote: >Since License is not optional, it might be good to retain it explicitly >in the interface. Otherwise you either end up distributing packages Not optional within the PKG-INFO data format, but it can be omitted in a setup.py in which case the License field will just get 'UNKNOWN'. >of Classifiers for required elements. The documentation for Classifiers >becomes more complicated as well, "multiple use but must include at >least one of ..." True. On the other hand, I don't know if PyPI looks at the license field and treats it as equivalent to "License :: whatever" so that searches by license work. (Similar question for Platform...) To my mind, having both classifiers and separate fields violates TOOWTDI. --amk (www.amk.ca) Grinding oppression of the masses is the only policy that pays dividends. -- The Collector, in "The Sunmakers" --V0207lvV8h4k8FAm Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.0.6 (GNU/Linux) Comment: For info see http://www.gnupg.org iD8DBQE+uR/okTvcXou9d/ARAv5YAJ9vunwYnFltAzQENmEUYW/LJS4mQgCglVLr VxF4NPyz1fDHls5U0u1wI6s= =Enfn -----END PGP SIGNATURE----- --V0207lvV8h4k8FAm-- From akuchlin@mems-exchange.org Wed May 7 19:28:10 2003 From: akuchlin@mems-exchange.org (Andrew Kuchling) Date: Wed, 7 May 2003 14:28:10 -0400 Subject: [Catalog-sig] PEP 314: latest draft In-Reply-To: <Pine.LNX.4.44.0304302000440.4058-100000@llave.eproinet.com> References: <E19AZ28-0002Ib-00@ute.mems-exchange.org> <Pine.LNX.4.44.0304302000440.4058-100000@llave.eproinet.com> Message-ID: <20030507182810.GA31207@ute.mems-exchange.org> On Wed, Apr 30, 2003 at 08:16:42PM -0400, Mark W. Alexander wrote: >Now another question for thought. The metadata corresponds to what? >The source distribution or a binary package or both? I'd like to see Either. There's already text describing a Supported-Platform field; I've pulled it out into its own section: Supported-Platform (multiple use) Binary distributions containing a PKG-INFO file will use the Supported-Platform field in their metadata to specify the OS and CPU for which the binary package was compiled. The semantics of the Supported-Platform field are not specified in this PEP. Example: Supported-Platform: RedHat 7.2 Supported-Platform: i386-win32-2791 I don't know what else would need to be provided for binary packages, but am open to suggestions. --amk (www.amk.ca) Rest is for the weary; sleep is for the dead. -- The Doctor, in "Attack of the Cybermen" From akuchlin@mems-exchange.org Wed May 14 18:29:23 2003 From: akuchlin@mems-exchange.org (Andrew Kuchling) Date: Wed, 14 May 2003 13:29:23 -0400 Subject: [Catalog-sig] Current draft of PEP 314 Message-ID: <E19G04B-0005oi-00@ute.mems-exchange.org> [Crossposted to Distutils-SIG and Catalog-SIG; followups set to Distutils-SIG.] Here's the current draft of PEP 314, which updates the format of the PKG-INFO file originally specified in PEP 241. From the section "Summary of Differences From PEP 241": * Metadata-Version is now 1.1. * Added the Classifiers field from PEP 301. * Added fields: Download-URL, Requires, Provides, Obsoletes, Conflicts. The remaining open issue is whether to deprecate the 'license' and 'platform' keyword arguments to setup(), on the grounds that the 'classifiers' list contains entries for this, and there should be only one way to do it. Comments welcome. --amk (www.amk.ca) Dream? Give me your hand. -- Death, in SANDMAN #69: "The Kindly Ones:13" PEP: 314 Title: Metadata for Python Software Packages v1.1 Version: $Revision: 1.15 $ Last-Modified: $Date: 2003/05/14 17:12:55 $ Author: A.M. Kuchling <amk@amk.ca> Status: Draft Type: Standards Track Content-type: text/plain Created: 12-Apr-2003 Python-Version: 2.3 Post-History: 29-Apr-2003 Replaces: 241 Introduction This PEP describes a mechanism for adding metadata to Python packages. It includes specifics of the field names, and their semantics and usage. This document specifies version 1.1 of the metadata format. Version 1.0 is specified in PEP 241. Including Metadata in Packages The Distutils 'sdist' command will extract the metadata fields from the arguments and write them to a file in the generated zipfile or tarball. This file will be named PKG-INFO and will be placed in the top directory of the source distribution (where the README, INSTALL, and other files usually go). Developers may not provide their own PKG-INFO file. The "sdist" command will, if it detects an existing PKG-INFO file, terminate with an appropriate error message. This should prevent confusion caused by the PKG-INFO and setup.py files being out of sync. The PKG-INFO file format is a single set of RFC-822 headers parseable by the rfc822.py module. The field names listed in the following section are used as the header names. Fields This section specifies the names and semantics of each of the supported metadata fields. Fields marked with "(Multiple use)" may be specified multiple times in a single PKG-INFO file. Other fields may only occur once in a PKG-INFO file. Fields marked with "(optional)" are not required to appear in a valid PKG-INFO file; all other fields must be present. Metadata-Version Version of the file format; currently "1.0" and "1.1" are the only legal values here. Example: Metadata-Version: 1.1 Name The name of the package. Example: Name: BeagleVote Version A string containing the package's version number. This field should be parseable by one of the Version classes (StrictVersion or LooseVersion) in the distutils.version module. Example: Version: 1.0a2 Platform (multiple use) A comma-separated list of platform specifications, summarizing the operating systems supported by the package. The major supported platforms are listed below, but this list is necessarily incomplete. POSIX, MacOS, Windows, BeOS, PalmOS. Example: Platform: POSIX, Windows Supported-Platform (multiple use) Binary distributions containing a PKG-INFO file will use the Supported-Platform field in their metadata to specify the OS and CPU for which the binary package was compiled. The semantics of the Supported-Platform field are not specified in this PEP. Example: Supported-Platform: RedHat 7.2 Supported-Platform: i386-win32-2791 Summary A one-line summary of what the package does. Example: Summary: A module for collecting votes from beagles. Description (optional) A longer description of the package that can run to several paragraphs. Software that deals with metadata should not assume any maximum size for this field, though people shouldn't include their instruction manual as the description. The contents of this field can be written using reStructuredText markup [1]. For programs that work with the metadata, supporting markup is optional; programs can also display the contents of the field as-is. This means that authors should be conservative in the markup they use. Example: Description: This module collects votes from beagles in order to determine their electoral wishes. Do *not* try to use this module with basset hounds; it makes them grumpy. Keywords (optional) A list of additional keywords to be used to assist searching for the package in a larger catalog. Example: Keywords: dog puppy voting election Home-page (optional) A string containing the URL for the package's home page. Example: Home-page: http://www.example.com/~cschultz/bvote/ Download-URL A string containing the URL from which this version of the package can be downloaded. (This means that the URL can't be something like ".../package-latest.tgz", but instead must be "../package-0.45.tgz".) Author (optional) A string containing the author's name at a minimum; additional contact information may be provided. Example: Author: C. Schultz, Universal Features Syndicate, Los Angeles, CA <cschultz@peanuts.example.com> Author-email A string containing the author's e-mail address. It can contain a name and e-mail address in the legal forms for a RFC-822 'From:' header. It's not optional because cataloging systems can use the e-mail portion of this field as a unique key representing the author. A catalog might provide authors the ability to store their GPG key, personal home page, and other additional metadata *about the author*, and optionally the ability to associate several e-mail addresses with the same person. Author-related metadata fields are not covered by this PEP. Example: Author-email: "C. Schultz" <cschultz@example.com> License A string selected from a short list of choices, specifying the license covering the package. Some licenses result in the software being freely redistributable, so packagers and resellers can automatically know that they're free to redistribute the software. Other licenses will require a careful reading by a human to determine how the software can be repackaged and resold. The choices are: Artistic, BSD, DFSG, GNU GPL, GNU LGPL, "MIT", Mozilla PL, "public domain", Python, Qt PL, Zope PL, unknown, nocommercial, nosell, nosource, shareware, other Definitions of some of the licenses are: DFSG The license conforms to the Debian Free Software Guidelines, but does not use one of the other DFSG conforming licenses listed here. More information is available at: http://www.debian.org/social_contract#guidelines Python Python 1.6 or higher license. Version 1.5.2 and earlier are under the MIT license. public domain Software is public domain, not copyrighted. unknown Status is not known nocommercial Free private use but commercial use not permitted nosell Free use but distribution for profit by arrangement nosource Freely distributable but no source code shareware Payment is requested if software is used other General category for other non-DFSG licenses Some of these licenses can be interpreted to mean the software is freely redistributable. The list of redistributable licenses is: Artistic, BSD, DFSG, GNU GPL, GNU LGPL, "MIT", Mozilla PL, "public domain", Python, Qt PL, Zope PL, nosource, shareware Note that being redistributable does not mean a package qualifies as free software, 'nosource' and 'shareware' being examples. Example: License: MIT Classifier (multiple use) Each entry is a string giving a single classification value for the package. Classifiers are described in PEP 301 [2]. Examples: Classifier: Development Status :: 4 - Beta Classifier: Environment :: Console (Text Based) Requires (multiple use) Each entry contains a string describing some other component or module required by this package. The format of a requirement string is simple: an arbitrary sequence of characters, optionally followed by a version declaration within parentheses. Leading and trailing whitespace are ignored, and whitespace within the string is normalized to a single space. A version declaration is a series of conditional operators and version numbers, separated by commas. Conditional operators must be one of "<", ">", "<=", ">=", "==", and "!=". Version numbers must be in the format accepted by the distutils.version.StrictVersion class: two or three dot-separated numeric components, with an optional "pre-release" tag on the end consisting of the letter 'a' or 'b' followed by a number. Example version numbers are "1.0", "2.3a2", "1.3.99", Any number of conditional operators can be specified, e.g. the string ">1.0, !=1.3.4, <2.0" is a legal version declaration. All of the following are possible requirement strings: "rfc822", "zlib (>=1.1.4)", "XML parser". There's no canonical list of what strings should be used; the Python community is left to choose its own standards. Example: Requires: re Requires: sys Requires: zlib Requires: pyexpat (>1.0) Requires: DB-API 2.0 module Provides (multiple use) Each entry contains a string describing a component or module that will be provided by this package once it is installed. These strings should match the ones used in Requirements fields. Version declarations cannot be supplied; instead the package's version number will be used. Example: Provides: xml Provides: xml.utils Provides: xml.utils.iso8601 Provides: xml.dom Obsoletes (multiple use) Each entry contains a string describing a component or module that this package renders obsolete, meaning that the two packages should not be installed at the same time. Version declarations can be supplied. The most common use of this field will be in case a package name changes, e.g. Gorgon 2.3 gets subsumed into Torqued Python 1.0. When you install Torqued Python, the Gorgon package should be removed. Example: Obsoletes: Gorgon Conflicts (multiple use) Each entry contains a string describing a component or module that conflicts with this package, meaning that the two packages should not be installed at the same time. Version declarations can be supplied. Conflict resolution probably isn't very important for Python programs, because few extensions will cause problems for other extensions, unless they happen to be using the same package name. This field name is being defined here for future use. Conflicts: Gorgon Summary of Differences From PEP 241 * Metadata-Version is now 1.1. * Added the Classifiers field from PEP 301. * Added fields: Download-URL, Requires, Provides, Obsoletes, Conflicts. Open issues With the addition of the 'Classifiers' field, should the Platform and License fields be removed? Acknowledgements Richard Jones suggested using reST for the Description field. References [1] reStructuredText http://docutils.sourceforge.net/ [2] PEP 301 http://www.python.org/peps/pep-0301.html Copyright This document has been placed in the public domain. Local Variables: mode: indented-text indent-tabs-mode: nil End: