diff options
| -rwxr-xr-x | setuptools.egg-info/entry_points.txt | 1 | ||||
| -rwxr-xr-x | setuptools.txt | 4 | ||||
| -rw-r--r-- | setuptools/command/__init__.py | 1 | ||||
| -rwxr-xr-x | setuptools/command/register.py | 10 |
4 files changed, 16 insertions, 0 deletions
diff --git a/setuptools.egg-info/entry_points.txt b/setuptools.egg-info/entry_points.txt index a0c3f3b8..6e48f078 100755 --- a/setuptools.egg-info/entry_points.txt +++ b/setuptools.egg-info/entry_points.txt @@ -38,6 +38,7 @@ setopt = setuptools.command.setopt:setopt build_py = setuptools.command.build_py:build_py saveopts = setuptools.command.saveopts:saveopts egg_info = setuptools.command.egg_info:egg_info +register = setuptools.command.register:register upload = setuptools.command.upload:upload install_egg_info = setuptools.command.install_egg_info:install_egg_info alias = setuptools.command.alias:alias diff --git a/setuptools.txt b/setuptools.txt index 5dad2b9a..4c1e1e67 100755 --- a/setuptools.txt +++ b/setuptools.txt @@ -2507,6 +2507,10 @@ XXX Release Notes/Change History ---------------------------- +0.6b4 + * Fix ``register`` not obeying name/version set by ``egg_info`` command, if + ``egg_info`` wasn't explicitly run first on the same command line. + 0.6b3 * Fix ``bdist_egg`` not including files in subdirectories of ``.egg-info``. diff --git a/setuptools/command/__init__.py b/setuptools/command/__init__.py index d5e965e6..678f4e61 100644 --- a/setuptools/command/__init__.py +++ b/setuptools/command/__init__.py @@ -2,6 +2,7 @@ __all__ = [ 'alias', 'bdist_egg', 'bdist_rpm', 'build_ext', 'build_py', 'develop', 'easy_install', 'egg_info', 'install', 'install_lib', 'rotate', 'saveopts', 'sdist', 'setopt', 'test', 'upload', 'install_egg_info', 'install_scripts', + 'register', ] diff --git a/setuptools/command/register.py b/setuptools/command/register.py new file mode 100755 index 00000000..3b2e0859 --- /dev/null +++ b/setuptools/command/register.py @@ -0,0 +1,10 @@ +from distutils.command.register import register as _register + +class register(_register): + __doc__ = _register.__doc__ + + def run(self): + # Make sure that we are using valid current name/version info + self.run_command('egg_info') + _register.run(self) + |
