1
0
Fork 0
freakble/justfile

26 lines
518 B
Makefile
Raw Permalink Normal View History

2023-02-10 15:52:30 +01:00
# Build freakble.
build:
@poetry build
# Remove build artifacts.
[linux]
[macos]
clean:
@rm -rf dist/
2023-02-11 04:16:29 +01:00
# Set version in both package and pyproject.toml.
2023-02-10 15:52:30 +01:00
[linux]
[macos]
set-version version:
@echo 'Setting version to {{version}}…'
@sed -i 's/^version = ".*"/version = "{{version}}"/' pyproject.toml
2023-02-10 15:52:30 +01:00
@sed -i 's/__version__ = ".*"/__version__ = "{{version}}"/' src/freakble/__init__.py
2023-02-10 15:56:57 +01:00
# poetry run ...
run +ARGS:
@poetry run {{ARGS}}
2023-02-11 04:11:35 +01:00
2023-02-11 04:16:29 +01:00
# Run freakble repl.
2023-02-11 04:11:35 +01:00
repl:
@poetry run freakble repl