-
Notifications
You must be signed in to change notification settings - Fork 7
/
Makefile
40 lines (28 loc) · 815 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
.PHONY : clean_pyc new_venv install init test
clean_pyc:
@find . -name "*.pyc" -exec rm {} +
new_venv:
@python3.7 -mvenv venv
install:
@source venv/bin/activate; pip install -e .
init: new_venv
@source venv/bin/activate; pip install --upgrade pip
$(MAKE) install
new_venv2:
@virtualenv venv2
install2:
@source venv2/bin/activate; pip install -e .
init2: new_venv2
@source venv2/bin/activate; pip install --upgrade pip
$(MAKE) install2
test:
# @python setup.py test
@python3 -m doctest -v rule/__init__.py
clean:
@rm -rf dist build
dist: clean
@source venv/bin/activate; pip install --upgrade setuptools wheel
@source venv/bin/activate; python3 setup.py sdist bdist_wheel
publish: dist
@source venv/bin/activate; pip install --upgrade twine
@source venv/bin/activate; twine upload dist/*