1
PLATFORM = $(shell uname)
2
ifeq ($(PLATFORM), Darwin)
10
@python -c "from txaws import version;print version.txaws;"
14
find ./ -name "*~" -exec rm {} \;
15
find ./ -name "*.pyc" -exec rm {} \;
16
find ./ -name "*.pyo" -exec rm {} \;
17
find . -name "*.sw[op]" -exec rm {} \;
18
rm -rf _trial_temp/ build/ dist/ MANIFEST *.egg-info
22
@python setup.py build
23
@python setup.py sdist
27
@echo "Checking for (possibly) badly named test cases..."
28
@find ./txaws|xargs grep Test|grep class|grep -v 'TestCase('
31
virtual-dir-setup: VERSION ?= 2.7
33
-@test -d .venv-$(VERSION) || virtualenv -p $(PYBIN)$(VERSION) .venv-$(VERSION)
34
-@test -e .venv-$(VERSION)/bin/twistd || . .venv-$(VERSION)/bin/activate && pip install twisted
35
-@test -e .venv-$(VERSION)/bin/pep8 || . .venv-$(VERSION)/bin/activate && pip install pep8
36
-@test -e .venv-$(VERSION)/bin/pyflakes || . .venv-$(VERSION)/bin/activate && pip install pyflakes
37
-. .venv-$(VERSION)/bin/activate && pip install lxml
38
-. .venv-$(VERSION)/bin/activate && pip install PyOpenSSL
39
-. .venv-$(VERSION)/bin/activate && pip install venusian
40
-. .venv-$(VERSION)/bin/activate && pip install 'python-dateutil<2.0'
41
ifeq ($(VERSION), 2.5)
42
-. .venv-$(VERSION)/bin/activate && pip install elementtree
43
-. .venv-$(VERSION)/bin/activate && pip install simplejson
47
-@test -e "`which $(PYBIN)2.5`" && VERSION=2.5 make virtual-dir-setup || echo "Couldn't find $(PYBIN)2.5"
48
-@test -e "`which $(PYBIN)2.6`" && VERSION=2.6 make virtual-dir-setup || echo "Couldn't find $(PYBIN)2.6"
49
-@test -e "`which $(PYBIN)2.7`" && VERSION=2.7 make virtual-dir-setup || echo "Couldn't find $(PYBIN)2.7"
52
virtual-trial: VERSION ?= 2.7
54
-. .venv-$(VERSION)/bin/activate && trial ./txaws
57
virtual-pep8: VERSION ?= 2.7
59
-. .venv-$(VERSION)/bin/activate && pep8 --repeat ./txaws
62
virtual-pyflakes: VERSION ?= 2.7
64
-. .venv-$(VERSION)/bin/activate && pyflakes ./txaws
67
virtual-check: VERSION ?= 2.7
69
-VERSION=$(VERSION) make virtual-trial
70
-VERSION=$(VERSION) make virtual-pep8
71
-VERSION=$(VERSION) make virtual-pyflakes
74
virtual-setup-build: VERSION ?= 2.7
76
-@. .venv-$(VERSION)/bin/activate && python setup.py build
77
-@. .venv-$(VERSION)/bin/activate && python setup.py sdist
80
virtual-setup-builds: VERSION ?= 2.7
81
virtual-setup-builds: virtual-builds
82
-@test -e "`which python2.5`" && VERSION=2.5 make virtual-setup-build
83
-@test -e "`which python2.6`" && VERSION=2.6 make virtual-setup-build
84
-@test -e "`which python2.7`" && VERSION=2.7 make virtual-setup-build
87
virtual-checks: clean virtual-setup-builds
88
-@test -e "`which python2.5`" && VERSION=2.5 make virtual-check
89
-@test -e "`which python2.6`" && VERSION=2.6 make virtual-check
90
-@test -e "`which python2.7`" && VERSION=2.7 make virtual-check
91
make check-testcase-names
94
virtual-uninstall: VERSION ?= 2.7
95
virtual-uninstall: PACKAGE ?= ""
97
-. .venv-$(VERSION)/bin/activate && pip uninstall $(PACKAGE)
100
virtual-uninstalls: PACKAGE ?= ""
102
-@test -e "`which python2.5`" && VERSION=2.5 PACKAGE=$(PACKAGE) make virtual-uninstall
103
-@test -e "`which python2.6`" && VERSION=2.6 PACKAGE=$(PACKAGE) make virtual-uninstall
104
-@test -e "`which python2.7`" && VERSION=2.7 PACKAGE=$(PACKAGE) make virtual-uninstall
107
virtual-dir-remove: VERSION ?= 2.7
109
rm -rfv .venv-$(VERSION)
112
clean-virtual-builds: clean
113
@VERSION=2.5 make virtual-dir-remove
114
@VERSION=2.6 make virtual-dir-remove
115
@VERSION=2.7 make virtual-dir-remove
118
virtual-build-clean: clean-virtual-builds build virtual-builds
119
.PHONY: virtual-build-clean
128
python setup.py register
132
python setup.py sdist upload --show-response
135
./admin/update-bug-status fixcommitted fixreleased