2019-01-20 10:35:31 +00:00
|
|
|
from distutils import log
|
2016-01-31 14:44:46 +00:00
|
|
|
import distutils.command.register as orig
|
|
|
|
|
|
|
|
|
|
|
|
class register(orig.register):
|
|
|
|
__doc__ = orig.register.__doc__
|
|
|
|
|
|
|
|
def run(self):
|
2019-01-20 10:35:31 +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
|
|
|
|
)
|