##// END OF EJS Templates
docs: started 5.2.0 release notes
docs: started 5.2.0 release notes

File last commit:

r5471:df8a724f merge v5.1.0 stable
r5474:860c92ac default
Show More
Makefile
171 lines | 4.6 KiB | text/x-makefile | MakefileLexer
makefile: updated with latest changes, added gunicorn serve
r5036 # required for pushd to work..
deps: make dev-env build faster and bump all libs to latest versions
r5013 SHELL = /bin/bash
makefile: updated makefile to standard layout
r1220
makefile: updated with latest changes, added gunicorn serve
r5036
makefile: remove nix stuff, added self-document version
r4899 # set by: PATH_TO_OUTDATED_PACKAGES=/some/path/outdated_packages.py
OUTDATED_PACKAGES = ${PATH_TO_OUTDATED_PACKAGES}
project: added all source files and assets
r1
makefile: remove nix stuff, added self-document version
r4899 .PHONY: clean
## Cleanup compiled and cache py files
makefile: updated makefile to standard layout
r1220 clean:
make test-clean
makefile: also cleanup .orig files
r3476 find . -type f \( -iname '*.c' -o -iname '*.pyc' -o -iname '*.so' -o -iname '*.orig' \) -exec rm '{}' ';'
makefile: always cleanup build dir
r5105 find . -type d -name "build" -prune -exec rm -rf '{}' ';'
makefile: remove nix stuff, added self-document version
r4899
makefile: added some helpers
r5181
makefile: remove nix stuff, added self-document version
r4899 .PHONY: test
## run test-clean and tests
makefile: updated makefile to standard layout
r1220 test:
make test-clean
make test-only
makefile: added commands to quickly build docs.
r13
makefile: remove nix stuff, added self-document version
r4899
makefile: updated with latest changes, added gunicorn serve
r5036 .PHONY: test-clean
makefile: remove nix stuff, added self-document version
r4899 ## run test-clean and tests
makefile: updated makefile to standard layout
r1220 test-clean:
rm -rf coverage.xml htmlcov junit.xml pylint.log result
find . -type d -name "__pycache__" -prune -exec rm -rf '{}' ';'
makefile: cleanup coverage files for test cleanup
r3845 find . -type f \( -iname '.coverage.*' \) -exec rm '{}' ';'
makefile: updated makefile to standard layout
r1220
makefile: remove nix stuff, added self-document version
r4899
.PHONY: test-only
## Run tests only without cleanup
makefile: updated makefile to standard layout
r1220 test-only:
tests: allow running tests via make file on different databases
r2100 PYTHONHASHSEED=random \
makefile: remove nix stuff, added self-document version
r4899 py.test -x -vv -r xw -p no:sugar \
--cov-report=term-missing --cov-report=html \
--cov=rhodecode rhodecode
tests: allow running tests via make file on different databases
r2100
makefile: updated with latest changes, added gunicorn serve
r5036
makefile: remove nix stuff, added self-document version
r4899 .PHONY: docs
## build docs
makefile: added commands to quickly build docs.
r13 docs:
feat(docs): new docs build logic...
r5193 (cd docs; docker run --rm -v $(PWD):/project --workdir=/project/docs sphinx-doc-build-rc make clean html)
project: added all source files and assets
r1
makefile: remove nix stuff, added self-document version
r4899
.PHONY: docs-clean
## Cleanup docs
makefile: added commands to quickly build docs.
r13 docs-clean:
feat(docs): new docs build logic...
r5193 (cd docs; docker run --rm -v $(PWD):/project --workdir=/project/docs sphinx-doc-build-rc make clean)
makefile: added commands to quickly build docs.
r13
makefile: remove nix stuff, added self-document version
r4899
.PHONY: docs-cleanup
## Cleanup docs
make: updated docs make commands.
r1214 docs-cleanup:
feat(docs): new docs build logic...
r5193 (cd docs; docker run --rm -v $(PWD):/project --workdir=/project/docs sphinx-doc-build-rc make cleanup)
make: updated docs make commands.
r1214
makefile: remove nix stuff, added self-document version
r4899
.PHONY: web-build
## Build JS packages static/js
project: added all source files and assets
r1 web-build:
chore(dev): fix web-build command
r5239 docker run -it --rm -v $(PWD):/project --workdir=/project rhodecode/static-files-build:16 -c "npm install && /project/node_modules/.bin/grunt"
dev(static-files): new way of building static files
r5233 # run static file check
./rhodecode/tests/scripts/static-file-check.sh rhodecode/public/
rm -rf node_modules
project: added all source files and assets
r1
make: synced makefiles
r5414 .PHONY: ruff-check
## run a ruff analysis
ruff-check:
ruff check --ignore F401 --ignore I001 --ignore E402 --ignore E501 --ignore F841 --exclude rhodecode/lib/dbmigrate --exclude .eggs --exclude .dev .
makefile: added some handly functions for package generation
r3531
makefile: remove nix stuff, added self-document version
r4899 .PHONY: pip-packages
makefile: updated with latest changes, added gunicorn serve
r5036 ## Show outdated packages
makefile: added outdated packages helper
r4253 pip-packages:
python ${OUTDATED_PACKAGES}
makefile: remove nix stuff, added self-document version
r4899
makefile: updated with latest changes, added gunicorn serve
r5036 .PHONY: build
## Build sdist/egg
build:
python -m build
makefile: remove nix stuff, added self-document version
r4899
dev(makefile): added dev shell prompt
r5191 .PHONY: dev-sh
## make dev-sh
dev-sh:
dev(shell): make the shell use zshrc and better autocomplete
r5194 sudo echo "deb [trusted=yes] https://apt.fury.io/rsteube/ /" | sudo tee -a "/etc/apt/sources.list.d/fury.list"
dev(makefile): added dev shell prompt
r5191 sudo apt-get update
dev(shell): make the shell use zshrc and better autocomplete
r5194 sudo apt-get install -y zsh carapace-bin
dev(dev-shell): improvements to dev shell env
r5212 rm -rf /home/rhodecode/.oh-my-zsh
dev(makefile): added dev shell prompt
r5191 curl https://raw.githubusercontent.com/robbyrussell/oh-my-zsh/master/tools/install.sh | sh
chore(dev): print dev help cmd for nicer startup
r5305 @echo "source <(carapace _carapace)" > /home/rhodecode/.zsrc
@echo "${RC_DEV_CMD_HELP}"
dev(makefile): hide prompt info on dev sh env
r5327 @PROMPT='%(?.%F{green}√.%F{red}?%?)%f %B%F{240}%1~%f%b %# ' zsh
dev(makefile): added dev shell prompt
r5191
chore(dev): fixed makefile
r5222
.PHONY: dev-cleanup
## Cleanup: pip freeze | grep -v "^-e" | grep -v "@" | xargs pip uninstall -y
dev-cleanup:
pip freeze | grep -v "^-e" | grep -v "@" | xargs pip uninstall -y
rm -rf /tmp/*
makefile: added dev-env command
r4905 .PHONY: dev-env
## make dev-env based on the requirements files and install develop of packages
make: synced makefiles
r5414 ## Cleanup: pip freeze | grep -v "^-e" | grep -v "@" | xargs pip uninstall -y
makefile: added dev-env command
r4905 dev-env:
Andrii Verbytskyi
fixed permissions for pip cache folder
r5385 sudo -u root chown rhodecode:rhodecode /home/rhodecode/.cache/pip/
makefile: updated with latest changes, added gunicorn serve
r5036 pip install build virtualenv
makefile: fixed installing vcsserver for tests
r4967 pushd ../rhodecode-vcsserver/ && make dev-env && popd
makefile: updated with latest changes, added gunicorn serve
r5036 pip wheel --wheel-dir=/home/rhodecode/.cache/pip/wheels -r requirements.txt -r requirements_rc_tools.txt -r requirements_test.txt -r requirements_debug.txt
pip install --no-index --find-links=/home/rhodecode/.cache/pip/wheels -r requirements.txt -r requirements_rc_tools.txt -r requirements_test.txt -r requirements_debug.txt
makefile: added dev-env command
r4905 pip install -e .
makefile: updated with latest changes, added gunicorn serve
r5036
dev(makefile): added sh shortcut for faster launch of dev env and shell
r5209 .PHONY: sh
## shortcut for make dev-sh dev-env
sh:
chore(dev): updates to makefile
r5278 make dev-env
make dev-sh
dev(dev-shell): improvements to dev shell env
r5212
dev(makefile): added sh shortcut for faster launch of dev env and shell
r5209
makefile: allow starting gunicorn with workers=N command
r5404 ## Allows changes of workers e.g make dev-srv-g workers=2
workers?=1
makefile: added some helpers
r5181
fix(configs): removed waitress as a default runner for web service on development....
r5413 .PHONY: dev-srv
make: synced makefiles
r5414 ## run gunicorn web server with reloader, use workers=N to set multiworker mode
dev-srv:
makefile: allow starting gunicorn with workers=N command
r5404 gunicorn --paste=.dev/dev.ini --bind=0.0.0.0:10020 --config=.dev/gunicorn_config.py --timeout=120 --reload --workers=$(workers)
makefile: updated with latest changes, added gunicorn serve
r5036
makefile: remove nix stuff, added self-document version
r4899 # Default command on calling make
.DEFAULT_GOAL := show-help
makefile: added some handly functions for package generation
r3531
makefile: remove nix stuff, added self-document version
r4899 .PHONY: show-help
show-help:
@echo "$$(tput bold)Available rules:$$(tput sgr0)"
@echo
@sed -n -e "/^## / { \
h; \
s/.*//; \
:doc" \
-e "H; \
n; \
s/^## //; \
t doc" \
-e "s/:.*//; \
G; \
s/\\n## /---/; \
s/\\n/ /g; \
p; \
}" ${MAKEFILE_LIST} \
| LC_ALL='C' sort --ignore-case \
| awk -F '---' \
-v ncol=$$(tput cols) \
-v indent=19 \
-v col_on="$$(tput setaf 6)" \
-v col_off="$$(tput sgr0)" \
'{ \
printf "%s%*s%s ", col_on, -indent, $$1, col_off; \
n = split($$2, words, " "); \
line_length = ncol - indent; \
for (i = 1; i <= n; i++) { \
line_length -= length(words[i]) + 1; \
if (line_length <= 0) { \
line_length = ncol - indent - length(words[i]) - 1; \
printf "\n%*s ", -indent, " "; \
} \
printf "%s ", words[i]; \
} \
printf "\n"; \
}'