2018-12-15 00:08:54 +00:00
|
|
|
from distutils import log
|
2013-10-11 17:28:32 +00:00
|
|
|
import distutils.command.register as orig
|
|
|
|
|
2014-08-12 08:44:01 +00:00
|
|
|
|
2013-10-11 17:28:32 +00:00
|
|
|
class register(orig.register):
|
|
|
|
__doc__ = orig.register.__doc__
|
|
|
|
|
|
|
|
def run(self):
|
2018-12-15 00:08:54 +00:00
|
|
|
try:
|
|
|
|
# Make sure that we are using valid current name/version info
|
|
|
|
self.run_command('egg_info')
|
|
|
|
orig.register.run(self)
|
|
|
|
finally:
|
|
|
|
self.announce(
|
|
|
|
"WARNING: Registering is deprecated, use twine to "
|
|
|
|
"upload instead (https://pypi.org/p/twine/)",
|
|
|
|
log.WARN
|
|
|
|
)
|