33 lines
1.2 KiB
Makefile
33 lines
1.2 KiB
Makefile
pep8:
|
|
find apiclient samples -name "*.py" | xargs pep8 --ignore=E111,E202
|
|
|
|
test:
|
|
python runtests.py tests
|
|
|
|
.PHONY: docs
|
|
docs:
|
|
cd docs; ./build.sh
|
|
python describe.py
|
|
|
|
.PHONY: prerelease
|
|
prerelease:
|
|
python2.4 runtests.py tests --exit_on_failure
|
|
python2.6 runtests.py tests --exit_on_failure
|
|
python2.7 runtests.py tests --exit_on_failure
|
|
-sudo rm -rf dist/
|
|
-sudo rm -rf snapshot/
|
|
python expand-symlinks.py
|
|
cd snapshot; python setup.py clean
|
|
cd snapshot; python setup.py sdist --formats=gztar,zip
|
|
|
|
.PHONY: release
|
|
release: prerelease
|
|
@echo "This target will upload a new release to PyPi and code.google.com hosting."
|
|
@echo "Are you sure you want to proceed? (yes/no)"
|
|
@read yn; [ "yes" == $$yn ]
|
|
@echo "Here we go..."
|
|
cd snapshot; python setup.py sdist --formats=gztar,zip register upload
|
|
wget "http://support.googlecode.com/svn/trunk/scripts/googlecode_upload.py" -O googlecode_upload.py
|
|
python googlecode_upload.py --summary="Version $(shell python setup.py --version)" --project=google-api-python-client snapshot/dist/*.tar.gz
|
|
python googlecode_upload.py --summary="Version $(shell python setup.py --version)" --project=google-api-python-client snapshot/dist/*.zip
|