diff options
| author | ?ric Araujo <merwok@netwok.org> | 2011-08-31 16:25:02 +0200 |
|---|---|---|
| committer | ?ric Araujo <merwok@netwok.org> | 2011-08-31 16:25:02 +0200 |
| commit | 9cd820dae2d4142970f51e71bce9414293d0ab44 (patch) | |
| tree | 6492832d33e50e9c1950dd069ff961ae8afd2a76 | |
| parent | 6d6499fd8bc272709671a1bdb34c1e91dd1898cf (diff) | |
| parent | 067d376016954b35f3e822bb4a3744ff778b80b9 (diff) | |
| download | disutils2-9cd820dae2d4142970f51e71bce9414293d0ab44.tar.gz | |
Branch merge. Will clean up later.
| -rw-r--r-- | distutils2/create.py | 37 | ||||
| -rw-r--r-- | distutils2/database.py | 2 | ||||
| -rw-r--r-- | distutils2/metadata.py | 8 | ||||
| -rw-r--r-- | distutils2/tests/test_dist.py | 3 | ||||
| -rwxr-xr-x | pysetup | 5 |
5 files changed, 28 insertions, 27 deletions
diff --git a/distutils2/create.py b/distutils2/create.py index a9aef32..2f25375 100644 --- a/distutils2/create.py +++ b/distutils2/create.py @@ -45,35 +45,36 @@ _DEFAULT_CFG = '.pypkgcreate' _helptext = { 'name': ''' -The name of the program to be packaged, usually a single word composed -of lower-case characters such as "python", "sqlalchemy", or "CherryPy". +The name of the project to be packaged, usually a single word composed +of lower-case characters such as "zope.interface", "sqlalchemy" or +"CherryPy". ''', 'version': ''' -Version number of the software, typically 2 or 3 numbers separated by dots -such as "1.00", "0.6", or "3.02.01". "0.1.0" is recommended for initial -development. +Version number of the software, typically 2 or 3 numbers separated by +dots such as "1.0", "0.6b3", or "3.2.1". "0.1.0" is recommended for +initial development. ''', 'summary': ''' -A one-line summary of what this project is or does, typically a sentence 80 -characters or less in length. +A one-line summary of what this project is or does, typically a sentence +80 characters or less in length. ''', 'author': ''' The full name of the author (typically you). ''', 'author_email': ''' -E-mail address of the project author (typically you). +Email address of the project author. ''', 'do_classifier': ''' Trove classifiers are optional identifiers that allow you to specify the intended audience by saying things like "Beta software with a text UI -for Linux under the PSF license". However, this can be a somewhat involved -process. +for Linux under the PSF license". However, this can be a somewhat +involved process. ''', 'packages': ''' -You can provide a package name contained in your project. +Python packages included in the project. ''', 'modules': ''' -You can provide a python module contained in your project. +Pure Python modules included in the project. ''', 'extra_files': ''' You can provide extra files/dirs contained in your project. @@ -81,15 +82,15 @@ It has to follow the template syntax. XXX add help here. ''', 'home_page': ''' -The home page for the project, typically starting with "http://". +The home page for the project, typically a public Web page. ''', 'trove_license': ''' -Optionally you can specify a license. Type a string that identifies a common -license, and then you can select a list of license specifiers. +Optionally you can specify a license. Type a string that identifies a +common license, and then you can select a list of license specifiers. ''', 'trove_generic': ''' Optionally, you can set other trove identifiers for things such as the -human language, programming language, user interface, etc... +human language, programming language, user interface, etc. ''', 'setup.py found': ''' The setup.py script will be executed to retrieve the metadata. @@ -477,12 +478,12 @@ class MainProgram(object): self.data['version'] = ask('Current version number', self.data.get('version'), _helptext['version']) - self.data['summary'] = ask('Package summary', + self.data['summary'] = ask('Project description summary', self.data.get('summary'), _helptext['summary'], lengthy=True) self.data['author'] = ask('Author name', self.data.get('author'), _helptext['author']) - self.data['author_email'] = ask('Author e-mail address', + self.data['author_email'] = ask('Author email address', self.data.get('author_email'), _helptext['author_email']) self.data['home_page'] = ask('Project home page', self.data.get('home_page'), _helptext['home_page'], diff --git a/distutils2/database.py b/distutils2/database.py index 3fafafd..985dd56 100644 --- a/distutils2/database.py +++ b/distutils2/database.py @@ -196,7 +196,7 @@ class Distribution(object): A local absolute path is an absolute path in which occurrences of ``'/'`` have been replaced by the system separator given by ``os.sep``. - :parameter local: flag to say if the path should be returned a local + :parameter local: flag to say if the path should be returned as a local absolute path :type local: boolean diff --git a/distutils2/metadata.py b/distutils2/metadata.py index 8cb8794..0050588 100644 --- a/distutils2/metadata.py +++ b/distutils2/metadata.py @@ -183,14 +183,6 @@ _UNICODEFIELDS = ('Author', 'Maintainer', 'Summary', 'Description') _MISSING = object() -class NoDefault(object): - """Marker object used for clean representation""" - def __repr__(self): - return '<NoDefault>' - -_MISSING = NoDefault() - - class Metadata(object): """The metadata of a release. diff --git a/distutils2/tests/test_dist.py b/distutils2/tests/test_dist.py index 90f1828..f662624 100644 --- a/distutils2/tests/test_dist.py +++ b/distutils2/tests/test_dist.py @@ -279,8 +279,11 @@ class DistributionTestCase(support.TempdirManager, class MetadataTestCase(support.TempdirManager, support.LoggingCatcher, + support.EnvironRestorer, unittest.TestCase): + restore_environ = ['HOME'] + def setUp(self): super(MetadataTestCase, self).setUp() self.argv = sys.argv, sys.argv[:] @@ -0,0 +1,5 @@ +#!/usr/bin/env python +from distutils2.run import main + +if __name__ == "__main__": + main() |
