Skip to content

Commit

Permalink
Merge pull request #294 from pypa/debt/pypi-commands
Browse files Browse the repository at this point in the history
Removed PyPI commands (register, upload) and supporting logic.
  • Loading branch information
jaraco authored Sep 6, 2024
2 parents 6ce5426 + 2e6f25c commit 4852078
Show file tree
Hide file tree
Showing 9 changed files with 1 addition and 1,341 deletions.
23 changes: 0 additions & 23 deletions conftest.py
Original file line number Diff line number Diff line change
Expand Up @@ -82,29 +82,6 @@ def temp_cwd(tmp_path):
yield


@pytest.fixture
def pypirc(request, save_env, distutils_managed_tempdir):
from distutils.core import Distribution, PyPIRCCommand

self = request.instance
self.tmp_dir = self.mkdtemp()
os.environ['HOME'] = self.tmp_dir
os.environ['USERPROFILE'] = self.tmp_dir
self.rc = os.path.join(self.tmp_dir, '.pypirc')
self.dist = Distribution()

class command(PyPIRCCommand):
def __init__(self, dist):
super().__init__(dist)

def initialize_options(self):
pass

finalize_options = initialize_options

self._cmd = command


# from pytest-dev/pytest#363
@pytest.fixture(scope="session")
def monkeysession(request):
Expand Down
2 changes: 0 additions & 2 deletions distutils/command/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,10 +16,8 @@
'install_scripts',
'install_data',
'sdist',
'register',
'bdist',
'bdist_dumb',
'bdist_rpm',
'check',
'upload',
]
311 changes: 0 additions & 311 deletions distutils/command/register.py

This file was deleted.

Loading

0 comments on commit 4852078

Please sign in to comment.