blob: e5b28f622fdb9ffe8962db575d41e3bf16316e13 (
plain)
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
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
|
UTILNAME:=yaml
PKGNAME:=ruamel.yaml
VERSION:=$(shell python setup.py --version)
REGEN:=/home/bin/ruamel_util_new util --published --command YAML --skip-hg
include ~/.config/ruamel_util_new/Makefile.inc
gen_win_whl:
python2 setup.py bdist_wheel --plat-name win32
python2 setup.py bdist_wheel --plat-name win_amd64
python3 setup.py bdist_wheel --plat-name win32
python3 setup.py bdist_wheel --plat-name win_amd64
# @python make_win_whl.py dist/$(PKGNAME)-$(VERSION)-*-none-any.whl
clean: clean_common
find . -name "*py.class" -exec rm {} +
cython: ext/_yaml.c
ext/_yaml.c: ext/_yaml.pyx
cd ext; cython _yaml.pyx
ls-l:
ls -l dist/*$(VERSION)*
pytest:
py.test _test/*.py
MYPYSRC:=$(shell ls -1 *.py | grep -Ev "^(setup.py|.*_flymake.py)$$" | sed 's|^|ruamel/yaml/|')
MYPYOPT:=--py2 --strict
mypy: mypy2single
mypyold:
cd ..; mypy --strict --no-warn-unused-ignores yaml/*.py
# sleep to give time to flymake*.py to disappear
mypy2:
cd ../.. ; mypy $(MYPYOPT) $(MYPYSRC)
mypy2single:
@echo 'mypy *.py'
@cd ../.. ; mypy $(MYPYOPT) $(MYPYSRC) | fgrep -v ordereddict/__init | grep .
# @echo 'mypy ' $(MYPYSRC)
#tstvenv: testvenv testsetup testtest
#
#testvenv:
# virtualenv -p /opt/python/2.7/bin/python testvenv
#
#testsetup:
# testvenv/bin/pip install -e .
# testvenv/bin/pip install pytest
#
#testtest:
# testvenv/bin/py.test
|