]> git.phdru.name Git - sqlconvert.git/commitdiff
Use ppu to cleanup pip cache
authorOleg Broytman <phd@phdru.name>
Sat, 17 Jun 2017 17:26:57 +0000 (20:26 +0300)
committerOleg Broytman <phd@phdru.name>
Sat, 17 Jun 2017 17:56:10 +0000 (20:56 +0300)
Use remove-old-files.py from ppu to cleanup pip cache at Travis and AppVeyor.

.travis.yml
appveyor.yml
devscripts/requirements/requirements.txt
docs/news.rst
tox.ini

index d1f382bc9f79f89bef02996ee88f26e0967ba564..5a2588301ac687ec6697e8975be36579d808b08b 100644 (file)
@@ -40,7 +40,10 @@ env:
   - TOXENV=py34-flake8
 
 install:
-  - travis_retry pip install tox
+  - travis_retry pip install tox ppu
 
 script:
   - tox
+
+before_cache:
+  - remove-old-files.py -o 180 ~/.cache/pip
index 2cc3783cd16d3d1ef12c61d32cf1084972a4c3d1..0113fa5e69e4ebb6a8c6e4827fad848ad52726f7 100644 (file)
@@ -136,10 +136,13 @@ install:
   - "python --version"
   - "python -c \"import struct; print(struct.calcsize('P') * 8)\""
   - "pip --version"
-  - "pip install tox"
+  - "pip install tox ppu"
 
 # No build step - we don't have C extensions
 build: false
 
 test_script:
   - "tox -e %TOX_ENV%"
+
+after_test:
+  - "remove-old-files.py -o 180 %LOCALAPPDATA%\\pip\\Cache"
index d1a7b7b52d921a1dd68a13107828959ef016e0d6..abe3d944ad92404eba46bb869f69722dcde87511 100644 (file)
@@ -5,4 +5,3 @@ SQLObject>=2.2.1; python_version >= '2.7' and python_version < '3.0'
 SQLObject>=3.0.0; python_version >= '3.4'
 m_lib.defenc>=1.0
 m_lib>=3.1
-ppu
index cb8e9ba34dddc631db631beb1322268e2426e1c2..dd51ecc0e3c79f2bc000fcec8337ad777c4f8387 100644 (file)
@@ -1,6 +1,12 @@
 News
 ====
 
+Version 0.2.3 (2017-06-??)
+--------------------------
+
+* Use remove-old-files.py from ppu to cleanup pip cache
+  at Travis and AppVeyor.
+
 Version 0.2.2 (2017-06-10)
 --------------------------
 
diff --git a/tox.ini b/tox.ini
index c360621c994e75fa7ea3ca15a5c4c56bd69600b8..ce326fbb6ec7c98a8c4490306ce9cd94770d12aa 100644 (file)
--- a/tox.ini
+++ b/tox.ini
@@ -19,17 +19,19 @@ passenv = PGPASSWORD
 sitepackages = True
 # Don't fail or warn on uninstalled commands
 whitelist_externals =
-    flake8
     createdb
     dropdb
+    flake8
+    cmp.py
+    rm.py
 
 [general]
 commands =
     {[testenv]commands}
     {envpython} -m pytest --cov=sqlconvert
     {envpython} {envbindir}/mysql2sql -P demo/demo.sql test.out
-    {envpython} {envbindir}/cmp.py -i tests/mysql2sql/test.out test.out
-    {envpython} {envbindir}/rm.py test.out
+    cmp.py -i tests/mysql2sql/test.out test.out
+    rm.py test.out
 
 [testenv:py27]
 commands = {[general]commands}
@@ -88,9 +90,9 @@ commands = {[postgres-w32]commands}
 [sqlite]
 commands =
     {[testenv]commands}
-    -{envpython} {envbindir}/rm.py /tmp/test.sqdb
+    -rm.py /tmp/test.sqdb
     {envpython} -m pytest --cov=sqlconvert -D sqlite:///tmp/test.sqdb
-    {envpython} {envbindir}/rm.py /tmp/test.sqdb
+    rm.py /tmp/test.sqdb
 
 [testenv:py27-sqlite]
 commands = {[sqlite]commands}
@@ -107,9 +109,9 @@ commands = {[sqlite]commands}
 [sqlite-w32]
 commands =
     {[testenv]commands}
-    -{envpython} {envbindir}/rm.py C:/projects/sqlconvert/test.sqdb
+    -rm.py C:/projects/sqlconvert/test.sqdb
     pytest --cov=sqlconvert -D sqlite:/C:/projects/sqlconvert/test.sqdb?debug=1
-    {envpython} {envbindir}/rm.py C:/projects/sqlconvert/test.sqdb
+    rm.py C:/projects/sqlconvert/test.sqdb
 
 [testenv:py27-sqlite-w32]
 commands = {[sqlite-w32]commands}