venv added, updated

This commit is contained in:
Norbert
2024-09-13 09:46:28 +02:00
parent 577596d9f3
commit 82af8c809a
4812 changed files with 640223 additions and 2 deletions

View File

@@ -0,0 +1,22 @@
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)