Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commitc485e66

Browse files
committed
deps, PY2: retractbackports.tempfile dep
1 parent47efb41 commitc485e66

File tree

4 files changed

+5
-6
lines changed

4 files changed

+5
-6
lines changed

‎.appveyor.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ install:
5454
)
5555
-pip install nose ddt wheel codecov
5656
-IF "%PYTHON_VERSION%"=="2.7" (
57-
pip install mock contextlib2 backports.tempfile
57+
pip install mock contextlib2
5858
)
5959

6060
## Copied from `init-tests-after-clone.sh`.

‎.travis.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ install:
1818
-git submodule update --init --recursive
1919
-git fetch --tags
2020
-pip install codecov flake8 ddt sphinx
21-
-if [ "$TRAVIS_PYTHON_VERSION" == '2.7' ]; then pip install mock contextlib2 backports.tempfile; fi
21+
-if [ "$TRAVIS_PYTHON_VERSION" == '2.7' ]; then pip install mock contextlib2; fi
2222

2323
# generate some reflog as git-python tests need it (in master)
2424
-./init-tests-after-clone.sh

‎git/test/lib/helper.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -23,10 +23,8 @@
2323
try:
2424
fromunittestimportmock
2525
fromcontextlibimportExitStack
26-
fromtempfileimportTemporaryDirectory
2726
exceptImportError:# PY2
2827
fromcontextlib2importExitStack# @UnusedImport
29-
frombackports.tempfileimportTemporaryDirectory# @UnusedImport
3028

3129

3230
ospd=osp.dirname
@@ -243,7 +241,9 @@ def cleanup_clone(repo):
243241
gc.collect()
244242

245243
withExitStack()asstack:
246-
clone_dir=stack.enter_context(TemporaryDirectory(prefix=clone_prefix))
244+
clone_dir=tempfile.mkdtemp(prefix=clone_prefix)
245+
stack.callback(rmtree,clone_dir)
246+
247247
clone=repo.clone(clone_dir,**clone_kwargs)
248248
stack.callback(cleanup_clone,clone)
249249

‎requirements.txt

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
11
gitdb>=0.6.4
22
mock# PY2 only
33
contextlib2# PY2 only
4-
backports.tempfile# PY2 only

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp