Makefile 889 Bytes
Newer Older
Wei Shoulin's avatar
Wei Shoulin committed
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
all: clean install clean

clean:
	rm -rf build dist csst_dfs_client.egg-info
	rm -rf .coverage .pytest_cache

install: clean
	pip install .
	rm -rf build dist csst_dfs_client.egg-info

uninstall:
	pip uninstall csst_dfs_client -y

test:
	UNIT_TEST_DATA_ROOT=/opt/temp/csst CSST_DFS_GATEWAY=http://172.31.249.145:8000 CSST_DFS_TOKEN=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJleHAiOjQ4ODU0NTA2NjQsInN1YiI6InN5c3RlbSJ9.POsuUABytu8-WMtZiYehiYEa5BnlgqNTXT6X3OTyix0 coverage run -m pytest -vs --import-mode=importlib --cov-report=html --cov-report=term-missing --cov-config=.coveragerc
	coverage report -m
	rm -rf .coverage .pytest_cache
	
build:
	rm -rf dist/*.whl
	python setup.py bdist_wheel --plat-name=manylinux1_x86_64

publish:
	twine upload --repository-url http://mirror.int.cnlab.net/repository/pypi/ -u admin -p gsdjsj.2024 dist/csst_dfs_client-*.whl

version:
	bumpver update --patch