<commit_before>
.PHONY: test clean dist_test all

all: words.bin emoticons.bin

%.bin: %.txt
	./mdpants/constant_width.py -o $@ $^

clean:
	rm *.bin
	rm -rf .eggs

test: words.bin emoticons.bin
	python -m pytest tests

dist_test: test
	python setup.py test<commit_msg>Update Makefile with a bunch of dist-related rules<commit_after>BINLISTS := $(addsuffix .bin, $(basename $(wildcard mdpants/lists/*.txt)))

.PHONY: test clean dist_test all dist

default:
	@echo 'no default rule'

%.bin: %.txt
	./mdpants/constant_width.py -o $@ $^

clean:
	rm mdpants/lists/*.bin
	python setup.py develop --uninstall

test: ${BINLISTS}
	python -m pytest tests

dist-test: test
	python setup.py sdist test

dev:
	python setup.py develop

virtenv:
	virtualenv virtenv

test-dist: dist virtenv $(addprefix test-dist-, $(notdir $(wildcard dist/*)))

test-dist-%: dist
	. virtenv/bin/activate ;\
	pip install dist/$* ;\
	which mdpants ;\
	echo 'Hello World!' | virtenv/bin/mdpants - ;\
	deactivate ;\
	virtualenv --clear virtenv

test-publish:
	python setup.py register -r https://testpypi.python.org/pypi
	python setup.py upload -r https://testpypi.python.org/pypi

dist: ${BINLISTS} mdpants/*.py tests/*.py setup.py
	python setup.py sdist
	python setup.py bdist_wheel
{'fraction_non_alphanumeric': 0.13530824659727783, 'fraction_numerical': 0.0, 'mean_word_length': 3.7169811320754715, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 2, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '3411110', 'n_tokens_mistral': 479, 'n_tokens_neox': 470, 'n_words': 130}