-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
4 changed files
with
38 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -15,6 +15,11 @@ pip install --force-reinstall /tmp/launcherctl-${VERSION}-py3-none-any.whl | |
endef | ||
export SCRIPT | ||
|
||
ifeq ($(VENV_BIN_ACTIVATE),) | ||
VENV_BIN_ACTIVATE := .venv/bin/activate | ||
endif | ||
|
||
|
||
dist/launcherctl-${VERSION}.tar.gz: $(shell find launcherctl -type f) | ||
python -m build --sdist | ||
|
||
|
@@ -35,4 +40,26 @@ test: install | |
| ssh [email protected] \ | ||
"bash -ec 'PATH=${PATH} /opt/bin/python -u'" | ||
|
||
.PHONY: clean install test deploy | ||
$(VENV_BIN_ACTIVATE): | ||
@echo "Setting up development virtual env in .venv" | ||
python -m venv .venv | ||
. $(VENV_BIN_ACTIVATE); \ | ||
python -m pip install ruff | ||
|
||
lint: $(VENV_BIN_ACTIVATE) | ||
. $(VENV_BIN_ACTIVATE); \ | ||
python -m ruff check | ||
|
||
lint-fix: $(VENV_BIN_ACTIVATE) | ||
. $(VENV_BIN_ACTIVATE); \ | ||
python -m ruff check | ||
|
||
format: $(VENV_BIN_ACTIVATE) | ||
. $(VENV_BIN_ACTIVATE); \ | ||
python -m ruff format --diff | ||
|
||
format-fix: $(VENV_BIN_ACTIVATE) | ||
. $(VENV_BIN_ACTIVATE); \ | ||
python -m ruff format | ||
|
||
.PHONY: clean install test deploy lint lint-fix format format-fix |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,7 +2,7 @@ | |
name = "launcherctl" | ||
description = "Python wrapper around launcherctl." | ||
readme = "README.md" | ||
version = "1.0.0" | ||
version = "1.0.1" | ||
requires-python = ">= 3.11" | ||
authors = [ | ||
{name = "Nathaniel van Diepen", email = "[email protected]"}, | ||
|