test: import-cldr
- @PYTHONWARNINGS=default python ${PYTHON_TEST_FLAGS} -m pytest
+ python ${PYTHON_TEST_FLAGS} -m pytest
test-cov: import-cldr
- @PYTHONWARNINGS=default python ${PYTHON_TEST_FLAGS} -m pytest --cov=babel
+ python ${PYTHON_TEST_FLAGS} -m pytest --cov=babel
test-env:
- @virtualenv test-env
- @test-env/bin/pip install pytest
- @test-env/bin/pip install --editable .
+ virtualenv test-env
+ test-env/bin/pip install pytest
+ test-env/bin/pip install --editable .
clean-test-env:
- @rm -rf test-env
+ rm -rf test-env
standalone-test: import-cldr test-env
- @test-env/bin/pytest tests
+ test-env/bin/pytest tests ${PYTEST_FLAGS}
clean: clean-cldr clean-pyc clean-test-env
import-cldr:
- @python scripts/download_import_cldr.py
+ python scripts/download_import_cldr.py
clean-cldr:
- @rm -f babel/locale-data/*.dat
- @rm -f babel/global.dat
+ rm -f babel/locale-data/*.dat
+ rm -f babel/global.dat
clean-pyc:
- @find . -name '*.pyc' -exec rm {} \;
- @find . -name '__pycache__' -type d | xargs rm -rf
+ find . -name '*.pyc' -exec rm {} \;
+ find . -name '__pycache__' -type d | xargs rm -rf
develop:
- @pip install --editable .
+ pip install --editable .
tox-test: import-cldr
- @tox
+ tox
upload-docs:
$(MAKE) -C docs html dirhtml latex