annotate roundup/dist/command/install_lib.py @ 7800:2d4684e4702d

fix: enhancement to history command output and % template fix. Rather than using the key field, use the label field for descriptions. Call cls.labelprop(default_to_id=True) so it returns id rather than the first sorted property name. If labelprop() returns 'id' or 'title', we return nothing. 'id' means there is no label set and no properties named 'name' or 'title'. So have the caller do whatever it wants (prepend classname for example) when there is no human readable name. This prevents %(name)s%(key)s from producing: 23(23). Also don't accept the 'title' property. Titles can be too long. Arguably we could: '%(name)20s' to limit the title length. However without ellipses or something truncating the title might be confusing. So again pretend there is no human readable name.
author John Rouillard <rouilj@ieee.org>
date Tue, 12 Mar 2024 11:52:17 -0400
parents 42bf0a707763
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
4516
85dfe17c182e Installation:
Bernhard Reiter <Bernhard.Reiter@intevation.de>
parents:
diff changeset
1 from roundup.dist.command.build import build_message_files, check_manifest
6647
42bf0a707763 issue2551183 - Replace references to distutils in roundup/dist/command
John Rouillard <rouilj@ieee.org>
parents: 4516
diff changeset
2 from setuptools.command.install_lib import install_lib as base
4516
85dfe17c182e Installation:
Bernhard Reiter <Bernhard.Reiter@intevation.de>
parents:
diff changeset
3
85dfe17c182e Installation:
Bernhard Reiter <Bernhard.Reiter@intevation.de>
parents:
diff changeset
4 class install_lib(base):
85dfe17c182e Installation:
Bernhard Reiter <Bernhard.Reiter@intevation.de>
parents:
diff changeset
5
85dfe17c182e Installation:
Bernhard Reiter <Bernhard.Reiter@intevation.de>
parents:
diff changeset
6 def run(self):
85dfe17c182e Installation:
Bernhard Reiter <Bernhard.Reiter@intevation.de>
parents:
diff changeset
7 check_manifest()
85dfe17c182e Installation:
Bernhard Reiter <Bernhard.Reiter@intevation.de>
parents:
diff changeset
8 build_message_files(self)
85dfe17c182e Installation:
Bernhard Reiter <Bernhard.Reiter@intevation.de>
parents:
diff changeset
9 base.run(self)

Roundup Issue Tracker: http://roundup-tracker.org/