mirror of
https://github.com/rocky/python-uncompyle6.git
synced 2024-11-23 13:09:49 +00:00
12 lines
310 B
Makefile
12 lines
310 B
Makefile
PHONY=check test pytest
|
|
SHELL=/bin/bash
|
|
|
|
PYTHON ?= python
|
|
|
|
#: Run all tests
|
|
test check pytest:
|
|
@PYTHON_VERSION=`$(PYTHON) -V 2>&1 | cut -d ' ' -f 2 | cut -d'.' -f1,2`; \
|
|
if [[ $$PYTHON_VERSION > 3.2 ]] || [[ $$PYTHON_VERSION == 2.7 ]] || [[ $$PYTHON_VERSION == 2.6 ]]; then \
|
|
$(PYTHON) -m pytest .; \
|
|
fi
|