-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathMakefile
55 lines (41 loc) · 827 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
55
TOP = .
PYTHON = python3
all: pip conda
.PHONY:clean
clean: conda-clean pip-clean
.PHONY:conda
conda: conda-build
.PHONY:conda-build
conda-build:
cp setup_conda.py setup.py
conda build . -c epics -c conda-forge
.PHONY:conda-clean
conda-clean:
rm -rf setup.py
conda build purge
.PHONY:pip
pip: pip-build pip-test
.PHONY:pip-dependencies
pip-dependencies:
$(PYTHON) -m pip install --upgrade setuptools wheel
$(PYTHON) -m pip install --upgrade twine
$(PYTHON) -m pip install --upgrade tox
.PHONY:pip-build
pip-build:
rm -f dist/*
cp setup_pip.py setup.py
$(PYTHON) setup.py sdist bdist_wheel
.PHONY:pip-test
pip-test:
tox
.PHONY:pip-upload
pip-upload:
$(PYTHON) -m twine upload dist/*
.PHONY:pip-clean
pip-clean:
rm -rf setup.py
rm -rf .eggs
rm -rf *.egg-info
rm -rf dist
rm -rf build
rm -rf .tox