@@ -51,27 +51,15 @@ def setup_argparser(self):
51
51
def setup_fed_subparsers (self ):
52
52
"""Register the fedora specific targets"""
53
53
54
- self .register_retire ()
54
+ # Don't register again the retire command as it is already done
55
+ # by pyrpkg. Starting Python 3.11, it creates an error.
56
+ # https://github.com/python/cpython/pull/18605
57
+ #self.register_retire()
55
58
56
59
# Don't register the update command, as rpmfusion does not have a
57
60
# bodhi instance to send update requests to
58
61
#self.register_update()
59
62
60
- # Target registry goes here
61
- def register_retire (self ):
62
- """Register the retire target"""
63
-
64
- retire_parser = self .subparsers .add_parser (
65
- 'retire' ,
66
- help = 'Retire a package' ,
67
- description = 'This command will remove all files from the repo, '
68
- 'leave a dead.package file, push the changes and '
69
- 'retire the package in pkgdb.'
70
- )
71
- retire_parser .add_argument ('reason' ,
72
- help = 'Reason for retiring the package' )
73
- retire_parser .set_defaults (command = self .retire )
74
-
75
63
# Target functions go here
76
64
def _format_update_clog (self , clog ):
77
65
''' Format clog for the update template. '''
0 commit comments