Skip to content

Commit 458bed7

Browse files
author
muhammad naufal
committed
feat: use conda instead of pipenv for make setup
1 parent 27e9d88 commit 458bed7

File tree

2 files changed

+10
-3
lines changed

2 files changed

+10
-3
lines changed

engines/pyfunc-ensembler-service/Makefile

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,15 @@
11
SHELL := /bin/bash
22

3-
PYTHON_VERSION ?= 3.8
43
APP_NAME := turing-pyfunc-ensembler-service
54
CONDA_ENV_NAME ?= $(APP_NAME)
65
ACTIVATE_ENV = source $$(conda info --base)/etc/profile.d/conda.sh ; conda activate $(CONDA_ENV_NAME)
76

87
.PHONY: setup
98
setup: build
10-
@pip install pipenv
9+
@conda env update -f env.yaml -n $(CONDA_ENV_NAME) --prune
1110
@DIST_VERSION=$$(echo $(VERSION) | \
1211
sed -E 's/^v([0-9]+\.[0-9]+\.[0-9]+)(-rc([0-9]+))?/\1rc\3/'); \
13-
pipenv run pip install "dist/turing_pyfunc_ensembler_service-$${DIST_VERSION}-py3-none-any.whl[dev]"
12+
$(ACTIVATE_ENV) && pip install "dist/turing_pyfunc_ensembler_service-$${DIST_VERSION}-py3-none-any.whl[dev]"
1413

1514
.PHONY: lint
1615
lint:
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
name: pyfunc-ensembler-service
2+
dependencies:
3+
- python=3.10.*
4+
- pip=22.2.2
5+
- pip:
6+
- -r requirements.txt
7+
- --extra-index-url=https://test.pypi.org/simple
8+
- --trusted-host=test.pypi.org

0 commit comments

Comments
 (0)