X-Git-Url: https://osm.etsi.org/gitweb/?a=blobdiff_plain;f=tox.ini;h=4a9dcbfc57eb1441ec5b4528e6b214538de804a6;hb=6fde451071635031f809ded6954463cdc2c6bb56;hp=b29a4145d49879031f4facc1b0e9ae8aade05f62;hpb=6683456ee66a599d2685832edbde82e66647b223;p=osm%2FNG-SA.git diff --git a/tox.ini b/tox.ini index b29a414..4a9dcbf 100644 --- a/tox.ini +++ b/tox.ini @@ -57,7 +57,7 @@ commands = ####################################################################################### [testenv:flake8] -deps = flake8 +deps = flake8==5.0.4 flake8-import-order skip_install = true commands = @@ -103,6 +103,23 @@ commands = done" +####################################################################################### +[testenv:dist] +deps = {[testenv]deps} + -r{toxinidir}/requirements-dist.txt + +# In the commands, we copy the requirements.txt to be presented as a source file (.py) +# so it gets included in the .deb package for others to consume +commands = + sh -c 'cp requirements.txt src/osm_ngsa/requirements.txt' + sh -c 'cp README.rst src/osm_ngsa/README.rst' + python3 setup.py --command-packages=stdeb.command sdist_dsc + sh -c 'cd deb_dist/osm-ngsa*/ && dpkg-buildpackage -rfakeroot -uc -us' + sh -c 'rm src/osm_ngsa/requirements.txt' + sh -c 'rm src/osm_ngsa/README.rst' +whitelist_externals = sh + + ####################################################################################### [flake8] ignore =