forked from pypa/trove-classifiers
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
26 lines (19 loc) · 694 Bytes
/
Makefile
File metadata and controls
26 lines (19 loc) · 694 Bytes
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
BINDIR = $(PWD)/.state/env/bin
.state/env/pyvenv.cfg: requirements/dev.txt
rm -rf .state/env
python -m venv .state/env
# install/upgrade general requirements
$(BINDIR)/python -m pip install --upgrade pip setuptools wheel
# install various types of requirements
$(BINDIR)/python -m pip install -r requirements/dev.txt
test: .state/env/pyvenv.cfg
$(BINDIR)/python -m pip install .
$(BINDIR)/pytest
$(BINDIR)/python -m tests.lib
lint: .state/env/pyvenv.cfg
$(BINDIR)/black --check bin setup.py src tests
$(BINDIR)/python bin/sort.py src/trove_classifiers/__init__.py
$(BINDIR)/mypy src
reformat: .state/env/pyvenv.cfg
$(BINDIR)/black tests src
.PHONY: build test lint reformat