From e8f3bd75ab62e0b192eba1151a1a3078ef930d6c Mon Sep 17 00:00:00 2001 From: mshandrovskiy Date: Tue, 21 Aug 2018 11:53:08 -0700 Subject: [PATCH 1/2] add ci, make things pythonic --- .travis.yml | 10 ++++++++++ CHANGELOG | 5 +++++ Makefile | 7 +------ docs/.DS_Store | Bin 6148 -> 0 bytes sdiff/__init__.py | 2 +- sdiff/compare.py | 4 +--- sdiff/parser.py | 4 +--- sdiff/tree_utils.py | 4 +++- setup.py | 6 +++--- 9 files changed, 25 insertions(+), 17 deletions(-) create mode 100644 .travis.yml delete mode 100644 docs/.DS_Store diff --git a/.travis.yml b/.travis.yml new file mode 100644 index 0000000..a25dbaf --- /dev/null +++ b/.travis.yml @@ -0,0 +1,10 @@ +language: python +python: + - "3.6" +# command to install dependencies +install: + - pip install -r requirements-dev.txt +# command to run tests +script: + - flake8 sdiff tests + - nosetests \ No newline at end of file diff --git a/CHANGELOG b/CHANGELOG index c2ff4bd..fc0b2a9 100644 --- a/CHANGELOG +++ b/CHANGELOG @@ -1,3 +1,8 @@ +0.2.0 (2018-08-21) +------------------ + +- Upgrade to python 3.6 + 0.1.3 (2015-08-13) ------------------ diff --git a/Makefile b/Makefile index bbaf14a..734960f 100644 --- a/Makefile +++ b/Makefile @@ -1,9 +1,7 @@ # Some simple testing tasks (sorry, UNIX only). PYTHON=venv/bin/python3 -PSERVE=venv/bin/gunicorn --paste PIP=venv/bin/pip -EI=venv/bin/easy_install NOSE=venv/bin/nosetests FLAKE=venv/bin/flake8 FLAGS= @@ -21,7 +19,7 @@ install: $(PYTHON) ./setup.py install flake: - $(FLAKE) event_pipe tests + $(FLAKE) sdiff tests test: flake $(NOSE) -s $(FLAGS) @@ -29,9 +27,6 @@ test: flake vtest: $(NOSE) -s -v $(FLAGS) -testloop: - while sleep 1; do $(NOSE) -s $(FLAGS); done - cov cover coverage: $(NOSE) -s --with-cover --cover-html --cover-html-dir ./coverage $(FLAGS) echo "open file://`pwd`/coverage/index.html" diff --git a/docs/.DS_Store b/docs/.DS_Store deleted file mode 100644 index 5008ddfcf53c02e82d7eee2e57c38e5672ef89f6..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 6148 zcmeH~Jr2S!425mzP>H1@V-^m;4Wg<&0T*E43hX&L&p$$qDprKhvt+--jT7}7np#A3 zem<@ulZcFPQ@L2!n>{z**++&mCkOWA81W14cNZlEfg7;MkzE(HCqgga^y>{tEnwC%0;vJ&^%eQ zLs35+`xjp>T0 Date: Tue, 21 Aug 2018 12:11:17 -0700 Subject: [PATCH 2/2] Update .travis.yml --- .travis.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.travis.yml b/.travis.yml index a25dbaf..24218f9 100644 --- a/.travis.yml +++ b/.travis.yml @@ -1,10 +1,10 @@ language: python python: - - "3.6" + - "3.6.6" # command to install dependencies install: - pip install -r requirements-dev.txt # command to run tests script: - flake8 sdiff tests - - nosetests \ No newline at end of file + - nosetests