Files
Solax/myenv/lib/python3.12/site-packages/setuptools/command/register.py
2024-09-13 09:46:28 +02:00

23 lines
605 B
Python

from setuptools.errors import RemovedCommandError
from ..dist import Distribution
import distutils.command.register as orig
from distutils import log
class register(orig.register):
"""Formerly used to register packages on PyPI."""
distribution: Distribution # override distutils.dist.Distribution with setuptools.dist.Distribution
def run(self):
msg = (
"The register command has been removed, use twine to upload "
"instead (https://pypi.org/p/twine)"
)
self.announce("ERROR: " + msg, log.ERROR)
raise RemovedCommandError(msg)