Skip to content

Commit 2965341

Browse files
author
Vladimir Kotal
authored
replace filelock with dependency (#2491)
fixes #2490
1 parent 7421b47 commit 2965341

File tree

7 files changed

+6
-446
lines changed

7 files changed

+6
-446
lines changed

opengrok-tools/requirements.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
certifi==2018.8.24
22
chardet==3.0.4
3+
filelock==3.0.10
34
idna==2.7
45
JsonForm==0.0.2
56
jsonschema==2.6.0

opengrok-tools/setup.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,8 @@ def get_version(version):
5656
'jsonschema==2.6.0',
5757
'pyyaml',
5858
'requests>=2.20.0',
59-
'resource'
59+
'resource',
60+
'filelock'
6061
],
6162
entry_points={
6263
'console_scripts': [

opengrok-tools/src/main/python/opengrok_tools/mirror.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,8 +36,8 @@
3636
import sys
3737
import tempfile
3838
from logging.handlers import RotatingFileHandler
39+
from filelock import Timeout, FileLock
3940

40-
from .utils.filelock import Timeout, FileLock
4141
from .utils.hook import run_hook
4242
from .utils.log import get_console_logger
4343
from .utils.opengrok import get_repos, get_config_value, get_repo_type

opengrok-tools/src/main/python/opengrok_tools/projadm.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,9 +34,9 @@
3434
import sys
3535
import tempfile
3636
from os import path
37+
from filelock import Timeout, FileLock
3738

3839
from .utils.command import Command
39-
from .utils.filelock import Timeout, FileLock
4040
from .utils.log import get_console_logger
4141
from .utils.opengrok import get_configuration, set_configuration, \
4242
add_project, delete_project, get_config_value

opengrok-tools/src/main/python/opengrok_tools/sync.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,9 +38,9 @@
3838
import tempfile
3939
from multiprocessing import Pool
4040
from os import path
41+
from filelock import Timeout, FileLock
4142

4243
from .utils.commandsequence import CommandSequence, CommandSequenceBase
43-
from .utils.filelock import Timeout, FileLock
4444
from .utils.opengrok import list_indexed_projects, get_config_value
4545
from .utils.readconfig import read_config
4646
from .utils.utils import is_web_uri

opengrok-tools/src/main/python/opengrok_tools/utils/__init__.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22
from . import command
33
from . import opengrok
44
from . import utils
5-
from . import filelock
65
from . import hook
76
from . import repofactory
87
from . import webutil
@@ -13,7 +12,6 @@
1312
'utils',
1413
'command',
1514
'commandsequence',
16-
'filelock',
1715
'hook',
1816
'repofactory',
1917
'webutil',

0 commit comments

Comments
 (0)