Skip to content

Commit

Permalink
Merge pull request #282 from jacebrowning/upgrade-tests
Browse files Browse the repository at this point in the history
Upgrade test dependencies
  • Loading branch information
jacebrowning committed Oct 8, 2022
2 parents 9c67310 + 151d41e commit 899c345
Show file tree
Hide file tree
Showing 4 changed files with 83 additions and 88 deletions.
2 changes: 1 addition & 1 deletion .appveyor.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ install:
- set PATH=C:\Python%PYTHON_MAJOR%%PYTHON_MINOR%\Scripts;%PATH%
# Install system dependencies
- curl -sSL https://install.python-poetry.org | python -
- set PATH=C:\Users\appveyor\AppData\Roaming\Python\Scripts;%PATH%
- set PATH=%USERPROFILE%\AppData\Roaming\Python\Scripts;%PATH%
- make doctor
# Install project dependencies
- make install
Expand Down
16 changes: 7 additions & 9 deletions bin/update
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
# -*- coding: utf-8 -*-

import os
from contextlib import suppress
import importlib
import tempfile
import shutil
Expand Down Expand Up @@ -48,30 +49,27 @@ def run():

def copy():
for filename in [
os.path.join('bin', 'update'),
os.path.join('bin', 'checksum'),
os.path.join('bin', 'open'),
os.path.join('bin', 'verchew'),
'.appveyor.yml',
'.coveragerc',
'.gitattributes',
'.gitignore',
'.isort.cfg',
'.mypy.ini',
'.pydocstyle.ini',
'.pylint.ini',
'.scrutinizer.yml',
'.travis.yml',
'.verchew.ini',
'CONTRIBUTING.md',
'Makefile',
os.path.join('bin', 'checksum'),
os.path.join('bin', 'open'),
os.path.join('bin', 'update'),
os.path.join('bin', 'verchew'),
'pytest.ini',
'scent.py',
]:
src = os.path.join(TMP, CONFIG['project_name'], filename)
dst = os.path.join(CWD, filename)
print("Updating " + filename)
shutil.copy(src, dst)
with suppress(FileNotFoundError):
shutil.copy(src, dst)


if __name__ == '__main__':
Expand Down
Loading

0 comments on commit 899c345

Please sign in to comment.