-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
44 lines (32 loc) · 1.17 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
.PHONY: help install clean_install clean_pyc test_database test_database_check run
help:
@echo "install - create virtualenv and install required modules"
@echo "clean_install - remove virtualenv and artifacts related to package install"
install:
#pip install (pypi or github.git#egg = NRC-LIMS-dataDownloader)
#git clone http://www.github.com/aafc-mbb/NRC-LIMS-dataDownloader.git
virtualenv -p /usr/bin/python2.7 venv
#source venv/bin/activate
venv/bin/pip install NRC-LIMS-dataDownloader
setup_dev:
virtualenv -p /usr/bin/python2.7 venv
#source venv/bin/activate
venv/bin/pip install -r requirements.txt
clean_install:
#deactivate
find . -name 'venv' -exec rm -rf {}
find . -name 'dist/' -exec rm -r {}
find . -name '*.egg-info/' -exec rm -r {}
clean_pyc:
find . -name '*.pyc' -exec rm -f {} +
find . -name '*.pyo' -exec rm -f {} +
find . -name '*~' -exec rm -f {} +
find . -name '__pycache__' -exec rm -fr {} +
test_database:
python test/test_database.py -c config.ini
test_database_check:
python test/test_database_check.py -c config.ini
test_rename:
python test/test_rename.py -c config.ini
run:
python nrc_ngs_dl/lims_downloader.py -c config.ini