Update hacking version

update the hacking to latest, due to[1]

[1]: https://github.com/openstack/oslo.privsep/blob/master/HACKING.rst

Change-Id: I760d81aa7b19c8df15bf9f187de8ea4945579a9c
Closes-Bug: #1815714
This commit is contained in:
ZhijunWei 2018-12-28 22:52:08 +08:00
parent 225e975abf
commit b033c2f346
2 changed files with 7 additions and 8 deletions

View File

@ -12,7 +12,7 @@
# License for the specific language governing permissions and limitations # License for the specific language governing permissions and limitations
# under the License. # under the License.
'''Privilege separation ("privsep") daemon. """Privilege separation ("privsep") daemon.
To ease transition this supports 2 alternative methods of starting the To ease transition this supports 2 alternative methods of starting the
daemon, all resulting in a helper process running with elevated daemon, all resulting in a helper process running with elevated
@ -41,7 +41,7 @@ privileges and open socket(s) to the original process:
The privsep daemon exits when the communication channel is closed, The privsep daemon exits when the communication channel is closed,
(which usually occurs when the unprivileged process exits). (which usually occurs when the unprivileged process exits).
''' """
from concurrent import futures from concurrent import futures
import enum import enum
@ -56,11 +56,6 @@ import sys
import tempfile import tempfile
import threading import threading
if platform.system() == 'Linux':
import fcntl
import grp
import pwd
import eventlet import eventlet
from oslo_config import cfg from oslo_config import cfg
from oslo_log import log as logging from oslo_log import log as logging
@ -71,6 +66,10 @@ from oslo_privsep._i18n import _
from oslo_privsep import capabilities from oslo_privsep import capabilities
from oslo_privsep import comm from oslo_privsep import comm
if platform.system() == 'Linux':
import fcntl
import grp
import pwd
LOG = logging.getLogger(__name__) LOG = logging.getLogger(__name__)

View File

@ -2,7 +2,7 @@
# of appearance. Changing the order has an impact on the overall integration # of appearance. Changing the order has an impact on the overall integration
# process, which may cause wedges in the gate later. # process, which may cause wedges in the gate later.
hacking!=0.13.0,<0.14,>=0.12.0 # Apache-2.0 hacking>=1.1.0,<1.2.0 # Apache-2.0
oslotest>=3.2.0 # Apache-2.0 oslotest>=3.2.0 # Apache-2.0
mock>=2.0.0 # BSD mock>=2.0.0 # BSD
fixtures>=3.0.0 # Apache-2.0/BSD fixtures>=3.0.0 # Apache-2.0/BSD