-# Copyright (C) 2016, 2017, 2018, 2019 The Meme Factory, Inc.
+# Copyright (C) 2016, 2017, 2018, 2019, 2020 The Meme Factory, Inc.
# http://www.karlpinc.com/
# This file is part of PGWUI_Testing.
# Karl O. Pinc <kop@karlpinc.com>
-PGWUI_NAME := testing
+PGWUI_COMPONENT := pgwui_testing
include Makefile_pgwui.mk
#
# Variables to customize:
-# PGWUI_NAME := example
+# PGWUI_COMPONENT := pgwui_example
# This works on debian...
TARGETS =
EXTRA_TARGETS = README.html
-SETUPTOOLS_STUFF = build dist src/pgwui_${PGWUI_NAME}.egg-info
+SETUPTOOLS_STUFF = build dist src/${PGWUI_COMPONENT}.egg-info
PYTEST_STUFF = .cache \
- src/pgwui_${PGWUI_NAME}/__pycache__ \
- src/pgwui_${PGWUI_NAME}/views/__pycache__ \
+ src/${PGWUI_COMPONENT}/__pycache__ \
+ src/${PGWUI_COMPONENT}/views/__pycache__ \
tests/__pycache__ tests/views/__pycache__
COVERAGE_STUFF = .coverage
TOX_STUFF = .tox
.PHONY: check
check: devel/pytest
devel/pytest/bin/flake8 .
- devel/pytest/bin/py.test --cov=pgwui_${PGWUI_NAME} tests
+ devel/pytest/bin/py.test --cov=${PGWUI_COMPONENT} tests
## check-unit Quick run of unit regression tests,
## only with the default python
.PHONY: check-unit
check-unit: devel/pytest
devel/pytest/bin/flake8 .
- devel/pytest/bin/py.test -m unittest --cov=pgwui_${PGWUI_NAME} tests
+ devel/pytest/bin/py.test -m unittest --cov=${PGWUI_COMPONENT} tests
## check-integration Quick run of integration regression tests,
## only with the default python
check-integration: devel/pytest
devel/pytest/bin/flake8 .
devel/pytest/bin/py.test -m integrationtest \
- --cov=pgwui_${PGWUI_NAME} tests
+ --cov=${PGWUI_COMPONENT} tests
## check-debug Start a regression test and drop into the Pdb
## debugger. Variables designate the test file
devel/pytest/bin/pip install --upgrade pip ; \
devel/pytest/bin/pip install --upgrade setuptools ; \
devel/pytest/bin/pip install --upgrade wheel ; \
- devel/pytest/bin/pip install dist/pgwui_${PGWUI_NAME}-*.tar.gz ; \
+ devel/pytest/bin/pip install dist/${PGWUI_COMPONENT}-*.tar.gz ; \
devel/pytest/bin/pip install flake8 ; \
devel/pytest/bin/pip install pytest-cov ; \
devel/pytest/bin/pip install -e '.[testing]' ; \
) \
else \
- ( devel/pytest/bin/pip uninstall -y pgwui_${PGWUI_NAME} ; \
- devel/pytest/bin/pip install dist/pgwui_${PGWUI_NAME}-*.tar.gz ; \
+ ( devel/pytest/bin/pip uninstall -y ${PGWUI_COMPONENT} ; \
+ devel/pytest/bin/pip install dist/${PGWUI_COMPONENT}-*.tar.gz ; \
devel/pytest/bin/pip install -e '.[testing]' ; \
) ; \
fi
devel/pudb/bin/pip install --upgrade pip ; \
devel/pudb/bin/pip install --upgrade setuptools ; \
devel/pudb/bin/pip install --upgrade wheel ; \
- devel/pudb/bin/pip install dist/pgwui_${PGWUI_NAME}-*.tar.gz ; \
+ devel/pudb/bin/pip install dist/${PGWUI_COMPONENT}-*.tar.gz ; \
devel/pudb/bin/pip install -e '.[testing]' ; \
devel/pudb/bin/pip install pudb ; \
) \
else \
- ( devel/pudb/bin/pip uninstall -y pgwui_${PGWUI_NAME} ; \
+ ( devel/pudb/bin/pip uninstall -y ${PGWUI_COMPONENT} ; \
devel/pudb/bin/pip install -e '.[testing]' ; \
- devel/pudb/bin/pip install dist/pgwui_${PGWUI_NAME}-*.tar.gz \
+ devel/pudb/bin/pip install dist/${PGWUI_COMPONENT}-*.tar.gz \
) ; \
fi