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