"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "Makefile" between
codespell-1.17.1.tar.gz and codespell-2.0.0.tar.gz

About: codespell checks source code and other text files for common misspellings.

Makefile  (codespell-1.17.1):Makefile  (codespell-2.0.0)
SORT_ARGS := -f -b SORT_ARGS := -f -b
DICTIONARIES := codespell_lib/data/dictionary*.txt DICTIONARIES := codespell_lib/data/dictionary*.txt
PHONY := all check check-dictionaries sort-dictionaries trim-dictionaries check- dictionary sort-dictionary trim-dictionary clean PHONY := all check check-dictionaries sort-dictionaries trim-dictionaries check- dictionary sort-dictionary trim-dictionary check-manifest check-distutils flake8 pytest pypi clean
all: check-dictionaries codespell.1 all: check-dictionaries codespell.1
check: check-dictionaries check-manifest check-distutils flake8 pytest
check-dictionary: check-dictionaries check-dictionary: check-dictionaries
sort-dictionary: sort-dictionaries sort-dictionary: sort-dictionaries
trim-dictionary: trim-dictionaries trim-dictionary: trim-dictionaries
codespell.1: codespell.1.include bin/codespell codespell.1: codespell.1.include bin/codespell Makefile
PYTHONPATH=. help2man ./bin/codespell --include codespell.1.include --no- info --output codespell.1 PYTHONPATH=. help2man ./bin/codespell --include codespell.1.include --no- info --output codespell.1
sed -i '/\.SS \"Usage/,+2d' codespell.1 sed -i '/\.SS \"Usage/,+2d' codespell.1
check-dictionaries: check-dictionaries:
@for dictionary in ${DICTIONARIES}; do \ @for dictionary in ${DICTIONARIES}; do \
if ! LC_ALL=C sort ${SORT_ARGS} -c $$dictionary; then \ if ! LC_ALL=C sort ${SORT_ARGS} -c $$dictionary; then \
echo "Dictionary $$dictionary not sorted. Sort with 'make sort-dictionaries'"; \ echo "Dictionary $$dictionary not sorted. Sort with 'make sort-dictionaries'"; \
exit 1; \ exit 1; \
fi; \ fi; \
if egrep -n "^\s*$$|\s$$|^\s" $$dictionary; then \ if egrep -n "^\s*$$|\s$$|^\s" $$dictionary; then \
echo "Dictionary $$dictionary contains leading/trailing w hitespace and/or blank lines. Trim with 'make trim-dictionaries'"; \ echo "Dictionary $$dictionary contains leading/trailing w hitespace and/or blank lines. Trim with 'make trim-dictionaries'"; \
exit 1; \ exit 1; \
fi; \ fi; \
done done
@if command -v pytest > /dev/null; then \ @if command -v pytest > /dev/null; then \
pytest codespell_lib/tests/test_dictionary.py; \ pytest codespell_lib/tests/test_dictionary.py; \
else \
echo "Test dependencies not present, install using 'pip install -
e \".[dev]\"'"; \
exit 1; \
fi fi
sort-dictionaries: sort-dictionaries:
@for dictionary in ${DICTIONARIES}; do \ @for dictionary in ${DICTIONARIES}; do \
LC_ALL=C sort ${SORT_ARGS} -u -o $$dictionary $$dictionary; \ LC_ALL=C sort ${SORT_ARGS} -u -o $$dictionary $$dictionary; \
done done
trim-dictionaries: trim-dictionaries:
@for dictionary in ${DICTIONARIES}; do \ @for dictionary in ${DICTIONARIES}; do \
sed -E -i.bak -e 's/^[[:space:]]+//; s/[[:space:]]+$$//; /^$$/d' $$dictionary && rm $$dictionary.bak; \ sed -E -i.bak -e 's/^[[:space:]]+//; s/[[:space:]]+$$//; /^$$/d' $$dictionary && rm $$dictionary.bak; \
done done
check-manifest: check-manifest:
check-manifest check-manifest
check-distutils:
python setup.py check --restructuredtext --strict
flake8:
flake8
pytest:
pytest codespell_lib
pypi: pypi:
python setup.py sdist register upload python setup.py sdist register upload
clean: clean:
rm -rf codespell.1 rm -rf codespell.1
 End of changes. 5 change blocks. 
2 lines changed or deleted 17 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)