fork https://github.com/3liz/quickosm mit kleinen fixes fuer qgis2
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

Makefile 2.7KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980
  1. # Makefile for QuickOSM
  2. test: clean_pyc pep8 test_suite
  3. test_suite:
  4. @echo
  5. @echo "---------------------"
  6. @echo "Regression Test Suite"
  7. @echo "---------------------"
  8. @-export PYTHONPATH=`pwd`:$(PYTHONPATH);export QGIS_DEBUG=0;export QGIS_LOG_FILE=/dev/null;export QGIS_DEBUG_FILE=/dev/null;nosetests -v --with-id --with-coverage --cover-package=core 3>&1 1>&2 2>&3 3>&- || true
  9. i18n_prepare:
  10. @echo Updating strings
  11. @pylupdate4 -noobsolete QuickOSM.pro
  12. main_window:
  13. @echo pyuic4 main_window.ui > ui/main_window.py
  14. @pyuic4 ui/main_window.ui > ui/main_window_temp.py
  15. @sed -re 's/import resources_rc/from QuickOSM import resources_rc/g' ui/main_window_temp.py > ui/main_window.py
  16. @rm ui/main_window_temp.py
  17. quick_query:
  18. @echo pyuic4 ui/quick_query.ui > ui/quick_query.py
  19. @pyuic4 ui/quick_query.ui > ui/quick_query_temp.py
  20. @sed -re 's/import resources_rc/from QuickOSM import resources_rc/g' ui/quick_query_temp.py > ui/quick_query.py
  21. @rm ui/quick_query_temp.py
  22. my_queries:
  23. @echo pyuic4 ui/my_queries.ui > ui/my_queries.py
  24. @pyuic4 ui/my_queries.ui > ui/my_queries_temp.py
  25. @sed -re 's/import resources_rc/from QuickOSM import resources_rc/g' ui/my_queries_temp.py > ui/my_queries.py
  26. @rm ui/my_queries_temp.py
  27. osm_file:
  28. @echo pyuic4 ui/osm_file.ui > ui/osm_file.py
  29. @pyuic4 ui/osm_file.ui > ui/osm_file_temp.py
  30. @sed -re 's/import resources_rc/from QuickOSM import resources_rc/g' ui/osm_file_temp.py > ui/osm_file.py
  31. @rm ui/osm_file_temp.py
  32. query:
  33. @echo pyuic ui/query.ui > ui/query_temp.py
  34. @pyuic4 ui/query.ui > ui/query_temp.py
  35. @sed -re 's/import resources_rc/from QuickOSM import resources_rc/g' ui/query_temp.py > ui/query.py
  36. @rm ui/query_temp.py
  37. save_query:
  38. @echo pyuic4 ui/save_query.ui > ui/save_query.py
  39. @pyuic4 ui/save_query.ui > ui/save_query_temp.py
  40. @sed -re 's/import resources_rc/from QuickOSM import resources_rc/g' ui/save_query_temp.py > ui/save_query.py
  41. @rm ui/save_query_temp.py
  42. clean_pyc:
  43. @echo "Cleaning python files"
  44. @find . -name "*.pyc" -type f -delete
  45. clean_ui:
  46. @echo "Cleaning UI files"
  47. @find . -name "*.ui" -type f -delete
  48. clean_test:
  49. @echo "Cleaning tests files"
  50. @find . -name test -exec rm -rf {} \;
  51. # Run pep8 style checking
  52. #http://pypi.python.org/pypi/pep8
  53. pep8:
  54. @echo
  55. @echo "-----------"
  56. @echo "PEP8 issues"
  57. @echo "-----------"
  58. @pep8 --version
  59. @pep8 --repeat --ignore=E203,E121,E122,E123,E124,E125,E126,E127,E128,E402 --exclude test/qgis_interface.py,test/utilities.py,resources_rc.py,./ui/main_window.py,./ui/my_queries.py,./ui/osm_file.py,./ui/save_query.py,./ui/query.py,./ui/quick_query.py . || true
  60. pylint:
  61. @echo
  62. @echo "-----------------"
  63. @echo "Pylint violations"
  64. @echo "-----------------"
  65. @pylint --version
  66. @pylint --reports=n --rcfile=pylintrc controller ui __init__.py quick_osm.py || true