<commit_before># Makefile for skeleton
PYTHON = python
GIT = git
VERSION = `$(PYTHON) -m skeleton.meta -v`

all: clean test dist

test:
	@echo "Running skeleton unit tests..."
	@echo ""
	$(PYTHON) -m skeleton.tests.run

build:
	@echo "Build squeleton package..."
	@echo ""
	$(PYTHON) setup.py build

dist: MANIFEST
	@echo "Build src distribution of skeleton..."
	@echo ""
	$(PYTHON) setup.py sdist

clean:
	@echo "Remove build and dist directories, and pyc files..."
	@echo ""
	rm -rf ./build/
	rm -rf ./dist/
	find . -name "*.pyc" | xargs rm

MANIFEST:
	@echo "Update MANIFEST.in..."
	git ls-files --exclude=".git*" > MANIFEST.in

release: clean test dist tag upload
	@echo "Version $(VERSION) released."
	
tag:
	$(git) pull origin master
	$(git) tag v$(VERSION)
	$(git) push origin v$(VERSION)

upload:
	$(PYTHON) setup.py<commit_msg>Fix bug in MANIFEST and tag target<commit_after># Makefile for skeleton
PYTHON = python
GIT = git
VERSION = `$(PYTHON) -m skeleton.meta -v`

all: clean test dist

test:
	@echo "Running skeleton unit tests..."
	@echo ""
	$(PYTHON) -m skeleton.tests.run

build:
	@echo "Build squeleton package..."
	@echo ""
	$(PYTHON) setup.py build

dist: MANIFEST
	@echo "Build src distribution of skeleton..."
	@echo ""
	$(PYTHON) setup.py sdist

clean:
	@echo "Remove build and dist directories, and pyc files..."
	@echo ""
	rm -rf ./build/
	rm -rf ./dist/
	find . -name "*.pyc" | xargs rm

MANIFEST:
	@echo "Update MANIFEST.in..."
	$(GIT) ls-files --exclude=".git*" | sed -e 's/^/include /g' > MANIFEST.in

release: clean test dist tag upload
	@echo "Version $(VERSION) released."
	
tag:
	$(GIT) pull origin master
	$(GIT) tag v$(VERSION)
	$(GIT) push origin v$(VERSION)

upload:
	$(PYTHON) setup.py register upload
{'fraction_non_alphanumeric': 0.15937859608745686, 'fraction_numerical': 0.0, 'mean_word_length': 3.481958762886598, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 5, 'https://': 0, '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': '6280006', 'n_tokens_mistral': 665, 'n_tokens_neox': 636, 'n_words': 217}