<commit_before>.PHONY: clean build deploy install publish

# Project settings
PROJECT = webpack-loader

# Virtual environment settings
ENV ?= venv
REPOSITORY ?= test-pypi

requirements = -r requirements-dev.txt

all: install build

clean:
	@echo "Cleaning..."
	@find webpack_loader/ -name '*.pyc' -delete
	@rm -rf ./build ./*egg* ./.coverage ./dist

build: clean
	@echo "Building..."
	@python setup.py sdist bdist_wheel --universal

install:
	@echo "Installing build dependencies"
	@[ ! -d $(ENV)/ ] && virtualenv $(ENV)/ || :
	@$(ENV)/bin/pip install $(requirements)

generate-rst:
	@pandoc --from=markdown --to=rst --output=README.rst README.md

publish: generate-rst build
	@echo "Publishing to pypi..."
	@$(ENV)/bin/twine upload -r $(REPOSITORY) dist/*

register:
	@echo "Registering package on pypi..."
	@$(ENV)/bin/twine register -r $(REPOSITORY)
<commit_msg>Use real pypi in makefile<commit_after>.PHONY: clean build deploy install publish

# Project settings
PROJECT = webpack-loader

# Virtual environment settings
ENV ?= venv
REPOSITORY ?= pypi

requirements = -r requirements-dev.txt

all: install build

clean:
	@echo "Cleaning..."
	@find webpack_loader/ -name '*.pyc' -delete
	@rm -rf ./build ./*egg* ./.coverage ./dist

build: clean
	@echo "Building..."
	@python setup.py sdist bdist_wheel --universal

install:
	@echo "Installing build dependencies"
	@[ ! -d $(ENV)/ ] && virtualenv $(ENV)/ || :
	@$(ENV)/bin/pip install $(requirements)

generate-rst:
	@pandoc --from=markdown --to=rst --output=README.rst README.md

publish: generate-rst build
	@echo "Publishing to pypi..."
	@$(ENV)/bin/twine upload -r $(REPOSITORY) dist/*

register:
	@echo "Registering package on pypi..."
	@$(ENV)/bin/twine register -r $(REPOSITORY)

{'fraction_non_alphanumeric': 0.16062176165803108, 'fraction_numerical': 0.0, 'mean_word_length': 3.827777777777778, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, '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': '3236861', 'n_tokens_mistral': 632, 'n_tokens_neox': 604, 'n_words': 176}