-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmakefile
39 lines (29 loc) · 1.33 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
.PHONY: test install python-dependencies docker-dependencies help clean build pypi pypi-test
# SETUP / INSTALLATION -------------------------------------------------------------------------------------------------
python-dependencies:
pip install -r requirements.txt
docker-dependencies:
docker pull obolibrary/odkfull:dev
install: python-dependencies docker-dependencies
# TEST -----------------------------------------------------------------------------------------------------------------
test:
python -m unittest discover -s test/
# PACKAGE MANAGEMENT ---------------------------------------------------------------------------------------------------
clean:
rm -rf ./dist;
rm -rf ./build;
rm -rf ./*.egg-info
# todo: change from `setuptools` to `biuld` (see table): https://blog.ganssle.io/articles/2021/10/setup-py-deprecated.html
build: clean
python setup.py sdist bdist_wheel
pypi: build
twine upload --repository-url https://upload.pypi.org/legacy/ dist/*;
pypi-test: build
twine upload --repository-url https://test.pypi.org/legacy/ dist/*
# HELP -----------------------------------------------------------------------------------------------------------------
help:
@echo "-----------------------------------"
@echo " Command reference: OMOP2OWL"
@echo "-----------------------------------"
@echo "install:"
@echo "Installation."