Skip to content

Commit 4852078

Browse files
authored
Merge pull request pypa/distutils#294 from pypa/debt/pypi-commands
Removed PyPI commands (register, upload) and supporting logic.
2 parents 6ce5426 + 2e6f25c commit 4852078

File tree

9 files changed

+1
-1341
lines changed

9 files changed

+1
-1341
lines changed

conftest.py

Lines changed: 0 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -82,29 +82,6 @@ def temp_cwd(tmp_path):
8282
yield
8383

8484

85-
@pytest.fixture
86-
def pypirc(request, save_env, distutils_managed_tempdir):
87-
from distutils.core import Distribution, PyPIRCCommand
88-
89-
self = request.instance
90-
self.tmp_dir = self.mkdtemp()
91-
os.environ['HOME'] = self.tmp_dir
92-
os.environ['USERPROFILE'] = self.tmp_dir
93-
self.rc = os.path.join(self.tmp_dir, '.pypirc')
94-
self.dist = Distribution()
95-
96-
class command(PyPIRCCommand):
97-
def __init__(self, dist):
98-
super().__init__(dist)
99-
100-
def initialize_options(self):
101-
pass
102-
103-
finalize_options = initialize_options
104-
105-
self._cmd = command
106-
107-
10885
# from pytest-dev/pytest#363
10986
@pytest.fixture(scope="session")
11087
def monkeysession(request):

distutils/command/__init__.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,10 +16,8 @@
1616
'install_scripts',
1717
'install_data',
1818
'sdist',
19-
'register',
2019
'bdist',
2120
'bdist_dumb',
2221
'bdist_rpm',
2322
'check',
24-
'upload',
2523
]

distutils/command/register.py

Lines changed: 0 additions & 311 deletions
This file was deleted.

0 commit comments

Comments
 (0)