-
Notifications
You must be signed in to change notification settings - Fork 28
/
Makefile
50 lines (38 loc) · 1.19 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
50
SHELL=/bin/bash
PYTHON=python3.11
PYTHON_ENV=env
.PHONY: clean doc dist build test ci-test lint isort shell freeze
# python env ##################################################################
$(PYTHON_ENV): pyproject.toml
rm -rf $(PYTHON_ENV) && \
$(PYTHON) -m venv $(PYTHON_ENV) && \
. $(PYTHON_ENV)/bin/activate && \
pip install pip --upgrade && \
pip install -e .[dev,packaging]
clean:
rm -rf $(PYTHON_ENV)
shell: | $(PYTHON_ENV)
. $(PYTHON_ENV)/bin/activate && \
rlpython
freeze: | $(PYTHON_ENV)
. $(PYTHON_ENV)/bin/activate && \
pip freeze
# tests #######################################################################
build:
docker-compose build $(args)
test:
docker-compose run playwright tox $(args)
ci-test:
docker-compose run playwright tox -e lint,py38,py39,py310,py311 $(args)
lint:
docker-compose run playwright tox -e lint $(args)
isort:
docker-compose run playwright tox -e isort $(args)
# packaging ###################################################################
dist: | $(PYTHON_ENV)
. $(PYTHON_ENV)/bin/activate && \
rm -rf dist *.egg-info && \
$(PYTHON) -m build
_release: dist
. $(PYTHON_ENV)/bin/activate && \
twine upload --config-file ~/.pypirc.fscherf dist/*