forked from cloudtools/troposphere
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
23 lines (18 loc) · 579 Bytes
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
.PHONY: 2to3 3to2 spec test
PYDIRS=setup.py examples tests troposphere
test:
pycodestyle ${PYDIRS}
pyflakes ${PYDIRS}
python setup.py test
spec:
curl -O https://d1uauaxba7bl26.cloudfront.net/latest/CloudFormationResourceSpecification.zip
rm -rf spec
mkdir spec
unzip -d spec CloudFormationResourceSpecification.zip
rm CloudFormationResourceSpecification.zip
2to3:
2to3 -n -w examples > 2to3-examples.patch
2to3 -n -w troposphere > 2to3-troposphere.patch
3to2:
git -C examples apply ../2to3-examples.patch -R
git -C troposphere apply ../2to3-troposphere.patch -R