-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
81 lines (62 loc) · 2.68 KB
/
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
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
## transitions
pre-build: clean
python -m venv venv
. venv/bin/activate; pip install -U pip setuptools wheel twine nox;
git clone [email protected]:pytransitions/transitions.git source
build: pre-build
. venv/bin/activate; cd source; nox && python setup.py sdist bdist_wheel
pypi: build
. venv/bin/activate; cd source; twine upload -r pypi dist/*
test: clean
python -m venv venv
. venv/bin/activate;\
pip install transitions;\
python -c "from transitions import Machine, __version__ ; print(__version__); m = Machine(); assert m.is_initial();"
build-test: pre-build
. venv/bin/activate; cd source; sed -i.bak 's/name="transitions"/name="pytransitions"/' setup.py; nox && python setup.py sdist bdist_wheel
testpypi: build-test
. venv/bin/activate; cd source; twine upload -r testpypi dist/*
test-testpypi: clean
python -m venv venv
. venv/bin/activate;\
pip install --extra-index-url=https://test.pypi.org/simple/ pytransitions;\
python -c "from transitions import Machine, __version__ ; print(__version__); m = Machine(); assert m.is_initial();"
copr: pre-build
. venv/bin/activate;\
pip install -U pip copr-cli pyp2spec;\
copr-cli buildpypi python-transitions \
--packagename transitions \
--spec-generator pyp2spec
## transitions-gui
pre-build-gui: clean
python -m venv venv
. venv/bin/activate; pip install -U pip setuptools wheel twine nox;
git clone [email protected]:pytransitions/transitions-gui.git source
build-gui: pre-build-gui
. venv/bin/activate; cd source; nox && python setup.py sdist bdist_wheel
pypi-gui: build-gui
. venv/bin/activate; cd source; twine upload --repository pypi-transitions-gui dist/*
test-gui: clean
python -m venv venv
. venv/bin/activate;\
pip install transitions-gui;\
python -c "from transitions_gui import WebMachine, __version__ ; print(__version__); m = WebMachine(); assert m.is_initial(); m.stop_server()"
build-test-gui: pre-build-gui
. venv/bin/activate; cd source; nox && python setup.py sdist bdist_wheel
testpypi-gui: build-test-gui
. venv/bin/activate; cd source; twine upload --repository testpypi-transitions-gui dist/*
test-testpypi-gui: clean
python -m venv venv
. venv/bin/activate;\
pip install --extra-index-url=https://test.pypi.org/simple/ transitions_gui;\
python -c "from transitions_gui import WebMachine, __version__ ; print(__version__); m = WebMachine(); assert m.is_initial(); m.stop_server()"
copr-gui: pre-build
. venv/bin/activate;\
pip install -U pip copr-cli pyp2spec;\
copr-cli buildpypi python-transitions \
--packagename transitions-gui \
--spec-generator pyp2spec
clean:
rm -rf source
rm -rf venv
.PHONY: build build-test copr test test-testpypi build-gui build-test-gui copr-gui test-gui test-testpypi-gui