-
Notifications
You must be signed in to change notification settings - Fork 4
/
Makefile
49 lines (40 loc) · 1.12 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
45
46
47
48
49
.PHONY: clean
clean:
find . -name '*.pyo' -delete
find . -name '*.pyc' -delete
find . -name __pycache__ -delete
find . -name '*~' -delete
find . -name '.coverage.*' -delete
.PHONY: lint
lint:
black . --preview --check
ruff .
.PHONY: lint-fix
lint-fix:
black . --preview
ruff . --fix
.PHONY: test
test: lint
pytest -s -vv -x -n auto alteryx_open_src_update_checker/tests
.PHONY: testcoverage
testcoverage: lint
pytest -s -vv -x -n auto alteryx_open_src_update_checker/tests --cov=alteryx_open_src_update_checker
.PHONY: installdeps
installdeps:
pip install -e ".[dev]"
pre-commit install
.PHONY: upgradepip
upgradepip:
python -m pip install --upgrade pip
.PHONY: upgradebuild
upgradebuild:
python -m pip install --upgrade build
.PHONY: upgradesetuptools
upgradesetuptools:
python -m pip install --upgrade setuptools
.PHONY: package
package: upgradepip upgradebuild upgradesetuptools
python -m build
$(eval PACKAGE=$(shell python -c 'import setuptools; setuptools.setup()' --version))
tar -zxvf "dist/alteryx_open_src_update_checker-${PACKAGE}.tar.gz"
mv "alteryx_open_src_update_checker-${PACKAGE}" unpacked_sdist