mirror of
https://github.com/TECHNOFAB11/bumpver.git
synced 2025-12-12 14:30:09 +01:00
37 lines
1 KiB
Makefile
37 lines
1 KiB
Makefile
|
|
|
|
## Start the development http server in debug mode
|
|
## This is just to illustrate how to add your
|
|
## extra targets outside of the main makefile.
|
|
.PHONY: serve
|
|
serve:
|
|
echo "Not Implemented"
|
|
|
|
|
|
COMPAT_TEST_FILES = $(shell ls -1 test/*.py 2>/dev/null | awk '{ printf " compat_"$$0 }')
|
|
|
|
compat_test/%.py: test/%.py
|
|
@mkdir -p compat_test/;
|
|
$(DEV_ENV)/bin/lib3to6 $< > $@.tmp;
|
|
mv $@.tmp $@;
|
|
|
|
|
|
## Run pytest integration tests
|
|
.PHONY: test_compat
|
|
test_compat: $(COMPAT_TEST_FILES)
|
|
rm -rf compat_test/fixtures;
|
|
mkdir -p compat_test/fixtures;
|
|
cp -R test/fixtures compat_test/
|
|
|
|
# install the package and run the test suite against it.
|
|
rm -rf build/test_wheel;
|
|
mkdir -p build/test_wheel;
|
|
$(DEV_ENV_PY) setup.py bdist_wheel --dist-dir build/test_wheel;
|
|
|
|
IFS=' ' read -r -a env_pys <<< "$(CONDA_ENV_BIN_PYTHON_PATHS)"; \
|
|
for i in $${!env_pys[@]}; do \
|
|
env_py=$${env_pys[i]}; \
|
|
$${env_py} -m pip install --upgrade build/test_wheel/*.whl; \
|
|
ENABLE_BACKTRACE=0 PYTHONPATH="" ENV=$${ENV-dev} \
|
|
$${env_py} -m pytest --verbose compat_test/ -k novcs_bump; \
|
|
done;
|