openmedialibrary_platform_d.../lib/python3.7/site-packages/setuptools/command/register.py

19 lines
534 B
Python
Raw Normal View History

2018-12-31 23:25:26 +00:00
from distutils import log
import distutils.command.register as orig
class register(orig.register):
__doc__ = orig.register.__doc__
def run(self):
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
)