2015-04-14 07:20:24 +00:00
|
|
|
all:
|
|
|
|
@grep -Ee '^[a-z].*:' Makefile | cut -d: -f1 | grep -vF all
|
|
|
|
|
|
|
|
clean:
|
|
|
|
rm -rf build/ dist/
|
|
|
|
|
2022-10-01 09:34:30 +00:00
|
|
|
test:
|
|
|
|
docker build -f tests/Dockerfile . -t rqtest && docker run -it --rm rqtest
|
|
|
|
|
2015-06-03 08:43:00 +00:00
|
|
|
release: clean
|
2015-04-14 07:20:24 +00:00
|
|
|
# Check if latest tag is the current head we're releasing
|
|
|
|
echo "Latest tag = $$(git tag | sort -nr | head -n1)"
|
|
|
|
echo "HEAD SHA = $$(git sha head)"
|
|
|
|
echo "Latest tag SHA = $$(git tag | sort -nr | head -n1 | xargs git sha)"
|
|
|
|
@test "$$(git sha head)" = "$$(git tag | sort -nr | head -n1 | xargs git sha)"
|
|
|
|
make force_release
|
|
|
|
|
|
|
|
force_release: clean
|
|
|
|
git push --tags
|
|
|
|
python setup.py sdist bdist_wheel
|
|
|
|
twine upload dist/*
|
2023-06-13 05:01:24 +00:00
|
|
|
|
|
|
|
lint:
|
|
|
|
@ black --check --skip-string-normalization --line-length 120 rq tests
|
|
|
|
@ ruff check --show-source rq tests
|