Bugfix 1491: Replacing pkg_resources for importlib.metadata
[osm/RO.git] / tox.ini
diff --git a/tox.ini b/tox.ini
index 2122fb5..61f96bd 100644 (file)
--- a/tox.ini
+++ b/tox.ini
@@ -194,11 +194,12 @@ commands =
 #######################################################################################
 [testenv:pip-compile]
 deps =  pip-tools==5.5.0
+skip_install = true
 commands =
-        - sh -c 'for file in requirements*.in ; do pip-compile -rU --no-header $file ;\
-        out=`echo $file | sed "s/.in/.txt/"` ; \
-        head -16 tox.ini >> $out ;\
-        done'
+        - sh -c "for file in requirements*.in ; do pip-compile -rU --no-header $file ;\
+        out=`echo $file | sed 's/.in/.txt/'` ; \
+        sed -i -e '1 e head -16 tox.ini' $out ;\
+        done"
 whitelist_externals = sh