mirror of
https://github.com/pre-commit/pre-commit.git
synced 2026-02-17 08:14:42 +04:00
Merge pull request #325 from pre-commit/py35_appveyor
Use python3.5 in appveyor over py34
This commit is contained in:
commit
c16479b94a
2 changed files with 11 additions and 5 deletions
11
appveyor.yml
11
appveyor.yml
|
|
@ -1,12 +1,11 @@
|
||||||
environment:
|
environment:
|
||||||
matrix:
|
matrix:
|
||||||
- TOXENV: py27
|
- TOXENV: py27
|
||||||
- TOXENV: py34
|
- TOXENV: py35
|
||||||
|
|
||||||
install:
|
install:
|
||||||
- "SET PATH=C:\\Python34;C:\\Python34\\Scripts;%PATH%"
|
- "SET PATH=C:\\Python35;C:\\Python35\\Scripts;%PATH%"
|
||||||
- pip install tox
|
- pip install tox virtualenv --upgrade
|
||||||
- pip install virtualenv --upgrade
|
|
||||||
- "mkdir -p C:\\Temp"
|
- "mkdir -p C:\\Temp"
|
||||||
- "SET TMPDIR=C:\\Temp"
|
- "SET TMPDIR=C:\\Temp"
|
||||||
|
|
||||||
|
|
@ -18,3 +17,7 @@ before_test:
|
||||||
- git config --global user.email "user@example.com"
|
- git config --global user.email "user@example.com"
|
||||||
|
|
||||||
test_script: tox
|
test_script: tox
|
||||||
|
|
||||||
|
cache:
|
||||||
|
- '%LOCALAPPDATA%\pip\cache'
|
||||||
|
- '%USERPROFILE%\.pre-commit'
|
||||||
|
|
|
||||||
|
|
@ -175,7 +175,10 @@ def rmtree(path):
|
||||||
"""On windows, rmtree fails for readonly dirs."""
|
"""On windows, rmtree fails for readonly dirs."""
|
||||||
def handle_remove_readonly(func, path, exc): # pragma: no cover (windows)
|
def handle_remove_readonly(func, path, exc): # pragma: no cover (windows)
|
||||||
excvalue = exc[1]
|
excvalue = exc[1]
|
||||||
if func in (os.rmdir, os.remove) and excvalue.errno == errno.EACCES:
|
if (
|
||||||
|
func in (os.rmdir, os.remove, os.unlink) and
|
||||||
|
excvalue.errno == errno.EACCES
|
||||||
|
):
|
||||||
os.chmod(path, stat.S_IRWXU | stat.S_IRWXG | stat.S_IRWXO)
|
os.chmod(path, stat.S_IRWXU | stat.S_IRWXG | stat.S_IRWXO)
|
||||||
func(path)
|
func(path)
|
||||||
else:
|
else:
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue