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

19 lines
534 B
Python
Raw Permalink Normal View History

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
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
)