Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #83561
| Path | csiph.com!usenet.pasdenom.info!gegeweb.org!aioe.org!news.stack.nl!newsfeed.xs4all.nl!newsfeed3.news.xs4all.nl!xs4all!newsgate.cistron.nl!newsgate.news.xs4all.nl!post.news.xs4all.nl!not-for-mail |
|---|---|
| Return-Path | <python-python-list@m.gmane.org> |
| X-Original-To | python-list@python.org |
| Delivered-To | python-list@mail.python.org |
| X-Spam-Status | OK 0.006 |
| X-Spam-Evidence | '*H*': 0.99; '*S*': 0.00; 'inspired': 0.05; 'tree': 0.05; 'duplicate': 0.07; 'transform': 0.07; 'received:80.91': 0.09; 'received:80.91.229': 0.09; 'received:gmane.org': 0.09; 'received:list': 0.09; '\xe2\x80\x94': 0.09; 'python': 0.11; 'stored': 0.12; 'itself.': 0.14; '*only*': 0.16; '8bit%:32': 0.16; 'advocating': 0.16; 'approaches.': 0.16; 'deletes': 0.16; 'do)': 0.16; 'finney': 0.16; 'metadata.': 0.16; "package's": 0.16; 'programmatic': 0.16; 'received:80.91.229.3': 0.16; 'received:plane.gmane.org': 0.16; 'recorded': 0.16; 'setuptools': 0.16; 'url:debian': 0.16; 'apps': 0.16; 'so.': 0.16; 'code.': 0.18; 'library': 0.18; 'module': 0.19; 'later': 0.20; 'putting': 0.22; 'this?': 0.23; 'header:User-Agent:1': 0.23; 'parse': 0.24; 'earlier': 0.24; 'people,': 0.24; "i've": 0.25; 'source': 0.25; 'developers': 0.25; 'header:X-Complaints-To:1': 0.27; 'installed': 0.27; 'record': 0.27; 'idea': 0.28; 'rest': 0.29; "i'm": 0.30; 'code': 0.31; "d'aprano": 0.31; 'omitted': 0.31; 'steven': 0.31; 'writes:': 0.31; 'allows': 0.31; 'there.': 0.32; 'this.': 0.32; 'entirely': 0.33; 'packaging': 0.33; 'knows': 0.35; 'but': 0.35; 'version': 0.36; 'maintained': 0.36; "didn't": 0.36; 'thanks': 0.36; "i'll": 0.36; 'url:org': 0.36; 'should': 0.36; 'application': 0.37; 'two': 0.37; 'ben': 0.38; 'needed': 0.38; 'whatever': 0.38; 'to:addr:python-list': 0.38; 'files': 0.38; 'to:addr:python.org': 0.39; 'received:org': 0.40; 'how': 0.40; 'even': 0.60; 'read': 0.60; 'easy': 0.60; 'future': 0.60; 'include:': 0.61; 'new': 0.61; 'skip:* 10': 0.61; 'simple': 0.61; "you'll": 0.62; 'information': 0.63; 'such': 0.63; 'places': 0.64; 'skip:\xe2 10': 0.65; 'between': 0.67; '8bit%:40': 0.68; 'advantages': 0.68; 'money': 0.72; '8bit%:43': 0.74; 'banks': 0.74; '8bit%:46': 0.78; '8bit%:24': 0.84; 'points,': 0.84; 'received:125': 0.84; 'subject:Using': 0.84; 'subject:source': 0.84; 'approach.': 0.91; '\xe2\x80\x9cthe': 0.91 |
| X-Injected-Via-Gmane | http://gmane.org/ |
| To | python-list@python.org |
| From | Ben Finney <ben+python@benfinney.id.au> |
| Subject | Re: Using a ChangeLog as a canonical source of package metadata |
| Date | Mon, 12 Jan 2015 07:21:25 +1100 |
| References | <54ae0917$0$2738$c3e8da3$76491128@news.astraweb.com> <mailman.17465.1420701187.18130.python-list@python.org> <54ae6715$0$12987$c3e8da3$5496439d@news.astraweb.com> <mailman.17488.1420762070.18130.python-list@python.org> <54b2be27$0$13000$c3e8da3$5496439d@news.astraweb.com> |
| Mime-Version | 1.0 |
| Content-Type | text/plain; charset=utf-8 |
| Content-Transfer-Encoding | 8bit |
| X-Gmane-NNTP-Posting-Host | jigong.madmonks.org |
| X-Public-Key-ID | 0xAC128405 |
| X-Public-Key-Fingerprint | 517C F14B B2F3 98B0 CB35 4855 B8B2 4C06 AC12 8405 |
| X-Public-Key-URL | http://www.benfinney.id.au/contact/bfinney-pubkey.asc |
| X-Post-From | Ben Finney <bignose+hates-spam@benfinney.id.au> |
| User-Agent | Gnus/5.13 (Gnus v5.13) Emacs/24.4 (gnu/linux) |
| Cancel-Lock | sha1:EykkIhugMOZFuwuXx9MapYF04JQ= |
| X-BeenThere | python-list@python.org |
| X-Mailman-Version | 2.1.15 |
| Precedence | list |
| List-Id | General discussion list for the Python programming language <python-list.python.org> |
| List-Unsubscribe | <https://mail.python.org/mailman/options/python-list>, <mailto:python-list-request@python.org?subject=unsubscribe> |
| List-Archive | <http://mail.python.org/pipermail/python-list/> |
| List-Post | <mailto:python-list@python.org> |
| List-Help | <mailto:python-list-request@python.org?subject=help> |
| List-Subscribe | <https://mail.python.org/mailman/listinfo/python-list>, <mailto:python-list-request@python.org?subject=subscribe> |
| Newsgroups | comp.lang.python |
| Message-ID | <mailman.17593.1421007692.18130.python-list@python.org> (permalink) |
| Lines | 59 |
| NNTP-Posting-Host | 2001:888:2000:d::a6 |
| X-Trace | 1421007692 news.xs4all.nl 2872 [2001:888:2000:d::a6]:43952 |
| X-Complaints-To | abuse@xs4all.nl |
| Xref | csiph.com comp.lang.python:83561 |
Show key headers only | View raw
Steven D'Aprano <steve+comp.lang.python@pearwood.info> writes: > I currently read this metadata from the Python code itself. The > advantages of putting the metadata into the source code include: > > - the source code is the definitive source of information about itself; The Changelog document should be in the same source tree and maintained by the same people, so I don't count that as a difference between the two approaches. > - even if the user deletes the README and CHANGELOG files, they can > still find the metadata; Perhaps I didn't emphasise it, but: The approach I'm advocating (as inspired by Debian packaging tools) has the version metadata *canonically* recorded in the Changelog, but not *only* stored there. The packaging tools parse the version metadata from the Changelog, then duplicate whatever metadata is needed in various other places — such as for programmatic access by the package's own code. > - if your application wants to report a version number (as many apps > do) then it is easy for them to do so. The idea is to parse from the Changelog the version metadata, and record it in Setuptools metadata. Then the ‘pkg_resources’ module of Setuptools allows programmatic access to that metadata. Thanks for enumerating those points, I think they are adequately addressed by this approach. > > I've now produced a small Python library which knows how to > > transform a reST Changelog to package metadata; and how to get that > > package metadata into and out of a Python distribution with > > Distutils. > > Sounds interesting. Where can we see this? It is the approach used in ‘python-daemon’ version 2. Find the source at <URL:https://alioth.debian.org/projects/python-daemon/>. The ‘ChangeLog’, ‘setup.py’, ‘version.py’, ‘daemon/_metadata.py’ files are the relevant ones to examine. Since this is a new approach I'm trying, I flubbed a couple of versions: you'll need version 2.0.1 or later (I omitted the ‘version’ module entirely from the earlier distribution), and you'll need ‘docutils’ already installed (a future ‘python-daemon’ distribution will declare this dependency). I'll be interested to see how Python developers like this. -- \ “The process by which banks create money is so simple that the | `\ mind is repelled.” —John Kenneth Galbraith, _Money: Whence It | _o__) Came, Where It Went_, 1975 | Ben Finney
Back to comp.lang.python | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
Announce: PyPrimes 0.2.1a Steven D'Aprano <steve@pearwood.info> - 2015-01-08 04:35 +0000
Re: Announce: PyPrimes 0.2.1a Ben Finney <ben+python@benfinney.id.au> - 2015-01-08 18:12 +1100
Re: Announce: PyPrimes 0.2.1a Steven D'Aprano <steve+comp.lang.python@pearwood.info> - 2015-01-08 22:16 +1100
Re: Announce: PyPrimes 0.2.1a Irmen de Jong <irmen.NOSPAM@xs4all.nl> - 2015-01-08 23:32 +0100
Re: Announce: PyPrimes 0.2.1a Steven D'Aprano <steve+comp.lang.python@pearwood.info> - 2015-01-09 11:41 +1100
Re: Announce: PyPrimes 0.2.1a Chris Angelico <rosuav@gmail.com> - 2015-01-09 11:50 +1100
Re: Announce: PyPrimes 0.2.1a alister <alister.nospam.ware@ntlworld.com> - 2015-01-09 09:05 +0000
Re: Announce: PyPrimes 0.2.1a Ben Finney <ben+python@benfinney.id.au> - 2015-01-09 22:01 +1100
Re: Announce: PyPrimes 0.2.1a alister <alister.nospam.ware@ntlworld.com> - 2015-01-09 11:42 +0000
Where to learn current best Python packaging practices (was: Announce: PyPrimes 0.2.1a) Ben Finney <ben+python@benfinney.id.au> - 2015-01-09 12:11 +1100
Re: Where to learn current best Python packaging practices (was: Announce: PyPrimes 0.2.1a) Rustom Mody <rustompmody@gmail.com> - 2015-01-08 17:39 -0800
Re: Where to learn current best Python packaging practices (was: Announce: PyPrimes 0.2.1a) Rick Johnson <rantingrickjohnson@gmail.com> - 2015-01-08 17:42 -0800
Re: Where to learn current best Python packaging practices Ben Finney <ben+python@benfinney.id.au> - 2015-01-09 13:37 +1100
PyPI files should not change their payload (was: Announce: PyPrimes 0.2.1a) Ben Finney <ben+python@benfinney.id.au> - 2015-01-09 10:55 +1100
Re: PyPI files should not change their payload (was: Announce: PyPrimes 0.2.1a) Steven D'Aprano <steve+comp.lang.python@pearwood.info> - 2015-01-09 11:38 +1100
Using a ChangeLog as a canonical source of package metadata (was: Announce: PyPrimes 0.2.1a) Ben Finney <ben+python@benfinney.id.au> - 2015-01-09 11:06 +1100
Re: Using a ChangeLog as a canonical source of package metadata (was: Announce: PyPrimes 0.2.1a) Steven D'Aprano <steve+comp.lang.python@pearwood.info> - 2015-01-12 05:17 +1100
Re: Using a ChangeLog as a canonical source of package metadata Ben Finney <ben+python@benfinney.id.au> - 2015-01-12 07:21 +1100
Re: Using a ChangeLog as a canonical source of package metadata wxjmfauth@gmail.com - 2015-01-11 12:37 -0800
Re: Using a ChangeLog as a canonical source of package metadata Steven D'Aprano <steve@pearwood.info> - 2015-01-12 05:44 +0000
Re: Using a ChangeLog as a canonical source of package metadata wxjmfauth@gmail.com - 2015-01-12 05:24 -0800
Re: Using a ChangeLog as a canonical source of package metadata Steven D'Aprano <steve@pearwood.info> - 2015-01-13 06:59 +0000
Re: Using a ChangeLog as a canonical source of package metadata wxjmfauth@gmail.com - 2015-01-13 00:09 -0800
Re: Using a ChangeLog as a canonical source of package metadata Steven D'Aprano <steve@pearwood.info> - 2015-01-13 08:22 +0000
Re: Using a ChangeLog as a canonical source of package metadata Ben Finney <ben+python@benfinney.id.au> - 2015-01-14 21:59 +1100
Re: Using a ChangeLog as a canonical source of package metadata (was: Announce: PyPrimes 0.2.1a) Chris Angelico <rosuav@gmail.com> - 2015-01-09 11:16 +1100
Re: Announce: PyPrimes 0.2.1a Christian Gollwitzer <auriocus@gmx.de> - 2015-01-08 08:27 +0100
Re: Announce: PyPrimes 0.2.1a Steven D'Aprano <steve+comp.lang.python@pearwood.info> - 2015-01-08 22:20 +1100
csiph-web