-
Notifications
You must be signed in to change notification settings - Fork 17
/
Copy pathMakefile
46 lines (37 loc) · 1.06 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
.PHONY: build
install:
pip install --user pipenv
pipenv install
pipenv shell
install-mirror:
pip3 install --user pipenv
pipenv install --pypi-mirror https://mirrors.aliyun.com/pypi/simple
pipenv shell
test:
pipenv shell
python -m unittest discover
ci-test:
python -m unittest discover
coverage:
pipenv shell
pipenv install codacy-coverage --dev
pipenv install coverage --dev
coverage run -m unittest discover
coverage xml --include=ontology/* --omit=tests/*
python-codacy-coverage -r coverage.xml
ci-coverage:
pip3 install codacy-coverage
pip3 install coverage
coverage run -m unittest discover
coverage xml --include=ontology/* --omit=tests/*
python-codacy-coverage -r coverage.xml
build:
python3 -m pip install -U twine wheel setuptools -i https://mirrors.aliyun.com/pypi/simple
python3 setup.py bdist_wheel --python-tag py3
ci-build:
pip3 install wheel
python3 setup.py bdist_wheel --python-tag py3
publish:
pipenv shell
pipenv install twine --dev --pypi-mirror https://mirrors.aliyun.com/pypi/simple
twine upload dist/* -u NashMiao -p %PYPI_PASSWORD