-
Notifications
You must be signed in to change notification settings - Fork 13
/
Makefile
54 lines (42 loc) · 984 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
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
all: bencoder
bencoder:
python3 setup.py build_ext --inplace
regen: regen-trackers
regen-trackers: bencoder
python3 -c 'from json import dumps; from emonoda.plugins import get_classes; \
[ open("trackers/{}.json".format(name), "w").write(dumps(cls._get_local_info(), sort_keys=True, indent=" " * 4)) \
for (name, cls) in get_classes("trackers").items() ]'
release:
make clean
make tox
make clean
make push
make bump
make push
# make pypi
make clean
make mkdocs
make clean
make mkdocs-release
make clean
tox:
tox -q $(if $(E),-e $(E),-p auto)
bump:
bumpversion patch
push:
git push
git push --tags
mkdocs:
mkdocs build
mkdocs-release:
mkdocs gh-deploy
pypi:
python3 setup.py register
python3 setup.py sdist
twine upload dist/*
clean:
rm -rf build site dist pkg src *.egg-info emonoda-*.tar.gz
rm -f emonoda/thirdparty/bencoder.c emonoda/thirdparty/bencoder.*.so
find -name __pycache__ | xargs rm -rf
clean-all: clean
rm -rf .tox .mypy_cache