๐Ÿ“ฆ sorend / fylearn

๐Ÿ“„ Makefile ยท 25 lines
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
FLIT_INDEX_URL ?= $(or $(shell grep '^FLIT_INDEX_URL=' .env 2>/dev/null | tail -n 1 | cut -d= -f2-),https://test.pypi.org/legacy/)
FLIT_USERNAME ?= $(or $(shell grep '^FLIT_USERNAME=' .env 2>/dev/null | tail -n 1 | cut -d= -f2-),__token__)
FLIT_PASSWORD ?= $(or $(shell grep '^FLIT_PASSWORD=' .env 2>/dev/null | tail -n 1 | cut -d= -f2-),dummy)

all: build

deps:
	uv sync

wheel: deps
	uv build

build: wheel

publish:
	uv publish --token $(FLIT_PASSWORD) --publish-url $(FLIT_INDEX_URL)

test:
	uv tool install tox --with tox-uv
	tox

clean:
	rm -rf dist .pytest_cache build .eggs fylearn.egg-info htmlcov .tox *.whl *~ fylearn/*~