forked from fkarb/sqlalchemy-monetdb
-
Notifications
You must be signed in to change notification settings - Fork 20
Expand file tree
/
Copy pathMakefile
More file actions
28 lines (22 loc) · 764 Bytes
/
Makefile
File metadata and controls
28 lines (22 loc) · 764 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
27
28
# Makefile so you don't have to remember the exact commands
# This Makefile uses the 'uv' tool (https://docs.astral.sh/uv/) to manage
# virtual envs and dependencies.
#
# Each uv invocation automatically creates and updates its venv before it does
# its work. This means we can leave venv management out this Makefile.
#
# Uv also makes it easy to test with older versions of the dependencies using
# the --resolution=lowest-direct flag. We use that in target pytest-old.
#
# It can be installed from its website or using 'dnf'.
build:
uv build
pytest:
uv sync --resolution=highest
uv run pytest
pytest-old:
uv sync --resolution=lowest-direct
uv run --resolution=lowest-direct pytest
# untested yet
upload:
uv run twine upload dist/*.whl dist/*.tar.gz