Revision 6862d9c4af6f2a79790c725ca8fed77b7088382c authored by Jeremy Low on 08 April 2016, 23:27:19 UTC, committed by Jeremy Low on 10 May 2016, 10:08:19 UTC
when posting json data, _RequestURL mangles the payload causing a 400 error from twitter. to fix: allow posting a json payload through _RequestURL by passing it off to requests.post via the json parameter rather than the data parameter.
1 parent d2eb76c
Raw File
Makefile

help:
	@echo "  env         install all production dependencies"
	@echo "  dev         install all dev and production dependencies (virtualenv is assumed)"
	@echo "  docs        build documentation"
	@echo "  clean       remove unwanted stuff"
	@echo "  lint        check style with flake8"
	@echo "  test        run tests"
	@echo "  coverage    run tests with code coverage"

env:
	pip install -r requirements.txt

dev: env
	pip install -r requirements.testing.txt

info:
	python --version
	pyenv --version
	pip --version

clean:
	rm -fr build
	rm -fr dist
	find . -name '*.pyc' -exec rm -f {} \;
	find . -name '*.pyo' -exec rm -f {} \;
	find . -name '*~' ! -name '*.un~' -exec rm -f {} \;

docs:
	$(MAKE) -C doc html

lint:
	flake8 twitter > violations.flake8.txt

test: lint
	python setup.py test

coverage: clean test
	coverage run --source=twitter setup.py test --addopts "--ignore=venv"
	coverage html
	coverage report

build: clean
	python setup.py check
	python setup.py sdist
	python setup.py bdist_wheel

upload: clean
	python setup.py sdist upload
	python setup.py bdist_wheel upload
back to top