forked from fpoli/python-asdl
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
27 lines (21 loc) · 785 Bytes
/
Makefile
File metadata and controls
27 lines (21 loc) · 785 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
CPYTHON_REPO = https://raw.githubusercontent.com/python/cpython/9378ca0
test:
nosetests
original:
mkdir -p original
wget -q $(CPYTHON_REPO)/Parser/asdl.py -O original/asdl.py
wget -q $(CPYTHON_REPO)/Lib/test/test_asdl_parser.py \
-O original/test_asdl_parser.py
wget -q $(CPYTHON_REPO)/Parser/Python.asdl -O original/Python.asdl
wget -q $(CPYTHON_REPO)/LICENSE -O original/LICENSE
linter: original
diff -u original/asdl.py asdl.py | pep8 --diff .
diff -u original/test_asdl_parser.py test/test_asdl.py | pep8 --diff .
pep8 --exclude=./original/,./asdl.py,./test/test_asdl.py --ignore=E251 .
dist-upload: linter test
python setup.py sdist bdist_wheel
twine upload dist/*
clean:
rm -rf dist/ build/ *.egg-info/
rm -rf original/
.PHONY: test linter dist-upload clean