forked from pawelmarkowski/cmsplugin-filer
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
47 lines (39 loc) · 957 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
OS = $(shell uname -s)
PIP_EXTRA_INDEX_URL=
BREW_PACKAGES := pipx
.PHONY: setup
setup: mac_dependencies pipenv
.PHONY: mac_dependencies
mac_dependencies:
ifeq (${OS}, Darwin)
brew update
brew install $(BREW_PACKAGES) 2> /dev/null || true
brew upgrade $(BREW_PACKAGES) 2> /dev/null || true
endif
.PHONY: pipenv
pipenv:
pipx install pipenv
pipenv install
# Check if pipenv virtual environment is activated
@if [ -z "$$VIRTUAL_ENV" ]; then \
echo "Virtual environment not activated. Activating pipenv shell..."; \
pipenv shell; \
else \
echo "Virtual environment is already activated."; \
fi
.PHONY: test
test:
tox
.PHONY: lock
lock:
pipenv lock
.PHONY: build
build: clean_build
pipx run build
# python -m twine upload --skip-existing --repository-url https://us-python.pkg.dev/clover-sre-001/clover-production/ dist/*
.PHONY: clean_build
clean_build:
rm -rf build/
rm -rf dist/
rm -rf *.egg*/
find . -type d -name '.func' -delete