File tree Expand file tree Collapse file tree 4 files changed +34
-2
lines changed Expand file tree Collapse file tree 4 files changed +34
-2
lines changed Original file line number Diff line number Diff line change
1
+ cython
2
+ numpy
3
+ fasteners
Original file line number Diff line number Diff line change
1
+ # Tox (http://tox.testrun.org/) is a tool for running tests
2
+ # in multiple virtualenvs. This configuration file will run the
3
+ # test suite on all supported python versions. To use it, "pip install tox"
4
+ # and then run "tox" from this directory.
5
+
6
+ [tox]
7
+ envlist = py27, py34, py35
8
+
9
+ [testenv]
10
+ setenv =
11
+ PYTHONHASHSEED = 42
12
+ commands =
13
+ python setup.py build_ext --inplace
14
+ nosetests -v --stop
15
+ deps =
16
+ nose
17
+ setuptools
18
+ setuptools_scm
19
+ -rrequirements.txt
Original file line number Diff line number Diff line change
1
+ # -*- coding: utf-8 -*-
2
+ from __future__ import absolute_import , print_function , division
3
+
4
+
5
+ import sys
6
+
7
+
8
+ PY2 = sys .version_info [0 ] == 2
9
+
10
+ if PY2 :
11
+ pass
Original file line number Diff line number Diff line change 6
6
from __future__ import absolute_import, print_function, division
7
7
from threading import RLock
8
8
import itertools
9
- # TODO PY2 compatibility
10
9
from functools import reduce
11
10
import operator
12
11
import sys
@@ -531,7 +530,7 @@ cdef class PersistentChunk(BaseChunk):
531
530
532
531
# move temporary file into place
533
532
if temp_path is not None :
534
- os.replace (temp_path, self ._path)
533
+ os.rename (temp_path, self ._path)
535
534
536
535
cdef void put(self , char * source):
537
536
cdef:
You can’t perform that action at this time.
0 commit comments