-
Notifications
You must be signed in to change notification settings - Fork 52
/
Copy pathMakefile
29 lines (23 loc) · 937 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
24
25
26
27
28
29
PYTHON37_SRC = ../python/cpython
PYTHON = ~/venv/wheel-tools/bin/python
TWINE = ~/venv/wheel-tools/bin/twine
sdist:
$(PYTHON) setup.py sdist
wheel:
$(PYTHON) setup.py bdist_wheel
run-tests:
PYTHONPATH=. python3 test/test_dataclasses.py
diff:
@echo "Here's the diff that's needed to go from the 3.7 version to 3.6, and"
@echo "from using Python's \"-m test\" to using \"PYTHONPATH=. python3.6 test/test_dataclasses.py\"."
@echo ""
-diff -u $(PYTHON37_SRC)/Lib/dataclasses.py .
-diff -u $(PYTHON37_SRC)/Lib/test/test_dataclasses.py test
-diff -u $(PYTHON37_SRC)/Lib/test/dataclass_module_1.py test
-diff -u $(PYTHON37_SRC)/Lib/test/dataclass_module_1_str.py test
-diff -u $(PYTHON37_SRC)/Lib/test/dataclass_module_2.py test
-diff -u $(PYTHON37_SRC)/Lib/test/dataclass_module_2_str.py test
clean:
-rm -rf dataclasses.egg-info/ __pycache__/ build/ dist/ test/__pycache__/
upload: clean sdist wheel
$(TWINE) upload dist/*