File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 66import subprocess
77import sys
88
9- from distutils .core import Command
10- from setuptools import setup
9+ import setuptools
1110
1211
1312def get_version ():
@@ -17,7 +16,7 @@ def get_version():
1716 return eval (line .split ('=' )[- 1 ]) # pylint: disable=eval-used
1817
1918
20- class PylintCommand (Command ):
19+ class PylintCommand (setuptools . Command ):
2120 user_options = []
2221
2322 def initialize_options (self ):
@@ -52,7 +51,7 @@ def run(self):
5251 pylint .lint .Run (files + pylint_opts )
5352
5453
55- class RPMCommand (Command ):
54+ class RPMCommand (setuptools . Command ):
5655 description = ("Build src and binary rpms and output them "
5756 "in the source directory" )
5857 user_options = []
@@ -75,7 +74,7 @@ def run(self):
7574 subprocess .check_call (cmd )
7675
7776
78- class ManCommand (Command ):
77+ class ManCommand (setuptools . Command ):
7978 description = ("Regenerate manpages from rst" )
8079 user_options = []
8180
@@ -117,7 +116,7 @@ def _parse_requirements(fname):
117116 return ret
118117
119118
120- setup (
119+ setuptools . setup (
121120 name = 'python-bugzilla' ,
122121 version = get_version (),
123122 description = 'Library and command line tool for interacting with Bugzilla' ,
You can’t perform that action at this time.
0 commit comments