-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
54 lines (43 loc) · 1.32 KB
/
Makefile
File metadata and controls
54 lines (43 loc) · 1.32 KB
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
SHELL=bash
python=python
pip=pip
tests=.
version:=$(shell $(python) version.py)
sdist_name:=PlotMAPQ-$(version).tar.gz
###############################################################################
# Dev Operations
###############################################################################
dev:
- python -m pip install .
clean_develop:
- python -m pip uninstall -y ArtSciColor
- rm -rf *.egg-info
clean_sdist:
- rm -rf dist
clean: clean_develop clean_pypi
check_build_reqs:
@$(python) -c 'import pytest' \
|| ( printf "$(redpip)Build requirements are missing. Run 'make prepare' to install them.$(normal)" ; false )
pypi: clean clean_sdist
set -x \
&& $(python) setup.py sdist bdist_wheel \
&& twine check dist/* \
&& twine upload dist/* \
&& python -m pip install .
clean_pypi:
- rm -rf build/
###############################################################################
# Evaluate palettes
###############################################################################
fingerprint:
- make dev
- rm -f ./ArtSciColor/data/DB.bz
- rm -f ./ArtSciColor/data/DB.csv
- rm -f ./ArtSciColor/data/SWATCHES.bz
- rm -f ./ArtSciColor/media/swatches/*
- bash ./ArtSciColor/scripts/fingerprintCustom.sh
- bash ./ArtSciColor/scripts/fingerprintArt.sh
pypiRelease:
- make fingerprint
- make dev
- make pypi