##// END OF EJS Templates
deps: make dev-env build faster and cache rc_testdata
super-admin -
r1090:9bb211d1 python3
parent child Browse files
Show More
@@ -1,93 +1,94 b''
1 1
2 2 # set by: PATH_TO_OUTDATED_PACKAGES=/some/path/outdated_packages.py
3 3 OUTDATED_PACKAGES = ${PATH_TO_OUTDATED_PACKAGES}
4 4
5 5 .PHONY: clean
6 6 ## Cleanup compiled and cache py files
7 7 clean:
8 8 make test-clean
9 9 find . -type f \( -iname '*.c' -o -iname '*.pyc' -o -iname '*.so' -o -iname '*.orig' \) -exec rm '{}' ';'
10 10
11 11
12 12 .PHONY: test
13 13 ## run test-clean and tests
14 14 test:
15 15 make test-clean
16 16 make test-only
17 17
18 18
19 19 .PHONY:test-clean
20 20 ## run test-clean and tests
21 21 test-clean:
22 22 rm -rf coverage.xml htmlcov junit.xml pylint.log result
23 23 find . -type d -name "__pycache__" -prune -exec rm -rf '{}' ';'
24 24 find . -type f \( -iname '.coverage.*' \) -exec rm '{}' ';'
25 25
26 26
27 27 .PHONY: test-only
28 28 ## Run tests only without cleanup
29 29 test-only:
30 30 PYTHONHASHSEED=random \
31 31 py.test -x -vv -r xw -p no:sugar \
32 32 --cov-report=term-missing --cov-report=html --cov=vcsserver vcsserver
33 33
34 34
35 35
36 36 .PHONY: pip-packages
37 37 ## Show outdated packages
38 38 pip-packages:
39 39 python ${OUTDATED_PACKAGES}
40 40
41 41
42 42 .PHONY: sdist
43 43 ## Build sdist
44 44 sdist:
45 45 python setup.py sdist
46 46
47 47 .PHONY: dev-env
48 48 ## Build sdist
49 49 dev-env:
50 pip install -r requirements.txt -r requirements_test.txt -r requirements_debug.txt
50 pip wheel --wheel-dir=/home/rhodecode/.cache/pip/wheels -r requirements.txt -r requirements_test.txt -r requirements_debug.txt
51 pip install --no-index --find-links=/home/rhodecode/.cache/pip/wheels -r requirements.txt -r requirements_test.txt -r requirements_debug.txt
51 52 pip install -e .
52 53
53 54 # Default command on calling make
54 55 .DEFAULT_GOAL := show-help
55 56
56 57 .PHONY: show-help
57 58 show-help:
58 59 @echo "$$(tput bold)Available rules:$$(tput sgr0)"
59 60 @echo
60 61 @sed -n -e "/^## / { \
61 62 h; \
62 63 s/.*//; \
63 64 :doc" \
64 65 -e "H; \
65 66 n; \
66 67 s/^## //; \
67 68 t doc" \
68 69 -e "s/:.*//; \
69 70 G; \
70 71 s/\\n## /---/; \
71 72 s/\\n/ /g; \
72 73 p; \
73 74 }" ${MAKEFILE_LIST} \
74 75 | LC_ALL='C' sort --ignore-case \
75 76 | awk -F '---' \
76 77 -v ncol=$$(tput cols) \
77 78 -v indent=19 \
78 79 -v col_on="$$(tput setaf 6)" \
79 80 -v col_off="$$(tput sgr0)" \
80 81 '{ \
81 82 printf "%s%*s%s ", col_on, -indent, $$1, col_off; \
82 83 n = split($$2, words, " "); \
83 84 line_length = ncol - indent; \
84 85 for (i = 1; i <= n; i++) { \
85 86 line_length -= length(words[i]) + 1; \
86 87 if (line_length <= 0) { \
87 88 line_length = ncol - indent - length(words[i]) - 1; \
88 89 printf "\n%*s ", -indent, " "; \
89 90 } \
90 91 printf "%s ", words[i]; \
91 92 } \
92 93 printf "\n"; \
93 94 }'
@@ -1,53 +1,53 b''
1 1 # deps, generated via pipdeptree --exclude setuptools,wheel,pipdeptree,pip -f | tr '[:upper:]' '[:lower:]'
2 2
3 3 atomicwrites==1.4.1
4 4 contextlib2==21.6.0
5 5 cov-core==1.15.0
6 6 coverage==7.2.3
7 7 dogpile.cache==1.2.0
8 8 decorator==5.1.1
9 9 stevedore==5.0.0
10 10 pbr==5.11.1
11 dulwich==0.21.3
11 dulwich==0.21.5
12 12 urllib3==1.26.14
13 13 gunicorn==20.1.0
14 14 hg-evolve==11.0.0
15 15 importlib-metadata==6.0.0
16 16 zipp==3.15.0
17 17 mercurial==6.3.3
18 18 mock==5.0.2
19 19 more-itertools==9.1.0
20 20 msgpack==1.0.5
21 21 orjson==3.8.12
22 psutil==5.9.4
22 psutil==5.9.5
23 23 py==1.11.0
24 24 pygit2==1.12.1
25 25 cffi==1.15.1
26 26 pycparser==2.21
27 27 pygments==2.15.1
28 28 pyparsing==3.0.9
29 29 pyramid==2.0.1
30 30 hupper==1.12
31 31 plaster==1.1.2
32 32 plaster-pastedeploy==1.0.1
33 33 pastedeploy==3.0.1
34 34 plaster==1.1.2
35 35 translationstring==1.4
36 36 venusian==3.0.0
37 37 webob==1.8.7
38 38 zope.deprecation==5.0.0
39 39 zope.interface==6.0.0
40 redis==4.5.4
40 redis==4.5.5
41 41 async-timeout==4.0.2
42 42 repoze.lru==0.7
43 43 scandir==1.10.0
44 44 setproctitle==1.3.2
45 45 subvertpy==0.11.0
46 46 wcwidth==0.2.6
47 47
48 48
49 49 ## test related requirements
50 50 -r requirements_test.txt
51 51
52 52 ## uncomment to add the debug libraries
53 53 #-r requirements_debug.txt
@@ -1,45 +1,45 b''
1 1 # test related requirements
2 2
3 3 cov-core==1.15.0
4 4 coverage==7.2.3
5 5 mock==5.0.2
6 6 py==1.11.0
7 7 pytest-cov==4.0.0
8 8 coverage==7.2.3
9 9 pytest==7.3.1
10 10 attrs==22.2.0
11 11 iniconfig==2.0.0
12 12 packaging==23.0
13 13 pluggy==1.0.0
14 14 pytest-profiling==1.7.0
15 15 gprof2dot==2022.7.29
16 16 pytest==7.3.1
17 17 attrs==22.2.0
18 18 iniconfig==2.0.0
19 19 packaging==23.0
20 20 pluggy==1.0.0
21 21 six==1.16.0
22 22 pytest-runner==6.0.0
23 23 pytest-sugar==0.9.7
24 24 packaging==23.0
25 25 pytest==7.3.1
26 26 attrs==22.2.0
27 27 iniconfig==2.0.0
28 28 packaging==23.0
29 29 pluggy==1.0.0
30 termcolor==2.2.0
30 termcolor==2.3.0
31 31 pytest-timeout==2.1.0
32 32 pytest==7.3.1
33 33 attrs==22.2.0
34 34 iniconfig==2.0.0
35 35 packaging==23.0
36 36 pluggy==1.0.0
37 37 webtest==3.0.0
38 38 beautifulsoup4==4.11.2
39 39 soupsieve==2.4
40 40 waitress==2.1.2
41 41 webob==1.8.7
42 42
43 43 # RhodeCode test-data
44 rc-testdata @ https://code.rhodecode.com/upstream/rc-testdata-dist/raw/e72cda25374768bc8605a67066012428f9d90d03/rc_testdata-0.10.0-py3-none-any.whl
45 rc-testdata==0.10.0
44 rc_testdata @ https://code.rhodecode.com/upstream/rc-testdata-dist/raw/e72cda25374768bc8605a67066012428f9d90d03/rc_testdata-0.10.0.tar.gz#egg=rc_testdata
45 rc_testdata==0.10.0
General Comments 0
You need to be logged in to leave comments. Login now