You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
18 lines
534 B
18 lines
534 B
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
|
|
)
|
|
|