tools/python-resolve-deps: handle tox extras dependencies specified in deps
| | |
| | | cd $(@D) ; \ |
| | | ( $(COMPONENT_TEST_CMD) -qq --print-deps-to=- $(COMPONENT_TEST_TARGETS) \ |
| | | | $(WS_TOOLS)/python-resolve-deps \ |
| | | PYTHONPATH=$(PROTO_DIR)/$(PYTHON_DIR)/site-packages:$(PROTO_DIR)/$(PYTHON_LIB) \ |
| | | $(PYTHON) $(WS_TOOLS)/python-requires $(COMPONENT_NAME) \ |
| | | | $(GSED) -e 's/\#.*//' -e $$'s/^[ \t]*//' -e '/^$$/d' \ |
| | | -e 's/^\([a-zA-Z0-9]\([a-zA-Z0-9._-]*[a-zA-Z0-9]\)\{0,1\}\).*/\1/' \ |
| | | | tr '[A-Z]' '[a-z]' | $(GSED) -e 's/[._-]\{1,\}/-/g' ; \ |
| | |
| | | # dependencies |
| | | |
| | | while read line ; do |
| | | # some projects specify extra dependencies in form of .[extra] in deps |
| | | # key instead of using separate extras key |
| | | extra=${line#.[} |
| | | extra=${extra%]} |
| | | if [ ".[$extra]" == "$line" ] ; then |
| | | # run the command passed in as argument(s) to handle extras |
| | | eval "$@" $extra |
| | | continue |
| | | fi |
| | | |
| | | [ "${line:0:2}" == "-c" ] && continue |
| | | [ "${line:0:12}" == "--constraint" ] && continue |
| | | if [ "${line:0:2}" == "-r" ] ; then |