https://github.com/bear/python-twitter
Revision 456b2a9670980205e78b4a64df27c7eb67f433bd authored by Jeremy Low on 10 August 2016, 01:22:12 UTC, committed by Jeremy Low on 10 August 2016, 01:22:12 UTC
1 parent 90733df
Tip revision: 456b2a9670980205e78b4a64df27c7eb67f433bd authored by Jeremy Low on 10 August 2016, 01:22:12 UTC
make change backwards compatible
make change backwards compatible
Tip revision: 456b2a9
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 -Ur requirements.txt
dev: env
pip install -Ur requirements.testing.txt
pyenv install -s 2.7.11
pyenv install -s 3.5.2
pyenv install -s pypy-5.3
pyenv local 2.7.11 3.5.2 pypy-5.3
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
tox: clean
tox
coverage: clean
coverage run --source=twitter setup.py test --addopts "--ignore=venv"
coverage html
coverage report
ci: tox coverage
CODECOV_TOKEN=`cat .codecov-token` codecov
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
Computing file changes ...