##// END OF EJS Templates
deps: make dev-env build faster and bump all libs to latest versions
super-admin -
r5013:fb2e3b36 default
parent child Browse files
Show More
@@ -1,154 +1,156 b''
1 SHELL = /bin/bash
1 2
2 3 # set by: PATH_TO_OUTDATED_PACKAGES=/some/path/outdated_packages.py
3 4 OUTDATED_PACKAGES = ${PATH_TO_OUTDATED_PACKAGES}
4 5
5 6 NODE_PATH=./node_modules
6 7 WEBPACK=./node_binaries/webpack
7 8 GRUNT=./node_binaries/grunt
8 9
9 10 .PHONY: clean
10 11 ## Cleanup compiled and cache py files
11 12 clean:
12 13 make test-clean
13 14 find . -type f \( -iname '*.c' -o -iname '*.pyc' -o -iname '*.so' -o -iname '*.orig' \) -exec rm '{}' ';'
14 15
15 16
16 17 .PHONY: test
17 18 ## run test-clean and tests
18 19 test:
19 20 make test-clean
20 21 make test-only
21 22
22 23
23 24 .PHONY:test-clean
24 25 ## run test-clean and tests
25 26 test-clean:
26 27 rm -rf coverage.xml htmlcov junit.xml pylint.log result
27 28 find . -type d -name "__pycache__" -prune -exec rm -rf '{}' ';'
28 29 find . -type f \( -iname '.coverage.*' \) -exec rm '{}' ';'
29 30
30 31
31 32 .PHONY: test-only
32 33 ## Run tests only without cleanup
33 34 test-only:
34 35 PYTHONHASHSEED=random \
35 36 py.test -x -vv -r xw -p no:sugar \
36 37 --cov-report=term-missing --cov-report=html \
37 38 --cov=rhodecode rhodecode
38 39
39 40 .PHONY: test-only-mysql
40 41 ## run tests against mysql
41 42 test-only-mysql:
42 43 PYTHONHASHSEED=random \
43 44 py.test -x -vv -r xw -p no:sugar \
44 45 --cov-report=term-missing --cov-report=html \
45 46 --ini-config-override='{"app:main": {"sqlalchemy.db1.url": "mysql://root:qweqwe@localhost/rhodecode_test?charset=utf8"}}' \
46 47 --cov=rhodecode rhodecode
47 48
48 49
49 50 .PHONY: test-only-postgres
50 51 ## run tests against postgres
51 52 test-only-postgres:
52 53 PYTHONHASHSEED=random \
53 54 py.test -x -vv -r xw -p no:sugar \
54 55 --cov-report=term-missing --cov-report=html \
55 56 --ini-config-override='{"app:main": {"sqlalchemy.db1.url": "postgresql://postgres:qweqwe@localhost/rhodecode_test"}}' \
56 57 --cov=rhodecode rhodecode
57 58
58 59 .PHONY: docs
59 60 ## build docs
60 61 docs:
61 62 (cd docs; nix-build default.nix -o result; make clean html)
62 63
63 64
64 65 .PHONY: docs-clean
65 66 ## Cleanup docs
66 67 docs-clean:
67 68 (cd docs; make clean)
68 69
69 70
70 71 .PHONY: docs-cleanup
71 72 ## Cleanup docs
72 73 docs-cleanup:
73 74 (cd docs; make cleanup)
74 75
75 76
76 77 .PHONY: web-build
77 78 ## Build JS packages static/js
78 79 web-build:
79 80 NODE_PATH=$(NODE_PATH) $(GRUNT)
80 81
81 82 # check required files
82 83 STATIC_CHECK="/robots.txt /502.html \
83 84 /js/scripts.min.js /js/rhodecode-components.js \
84 85 /css/style.css /css/style-polymer.css /css/style-ipython.css"
85 86
86 87 for file in $STATIC_CHECK;
87 88 do
88 89 if [ ! -f rhodecode/public/$file ]; then
89 90 echo "Missing $file expected after web-build"
90 91 exit 1
91 92 fi
92 93 done
93 94
94 95 .PHONY: pip-packages
95 96 ## show outdated packages
96 97 pip-packages:
97 98 python ${OUTDATED_PACKAGES}
98 99
99 100
100 101 .PHONY: sdist
101 102 ## Build sdist
102 103 sdist:
103 104 python setup.py sdist
104 105
105 106
106 107 .PHONY: dev-env
107 108 ## make dev-env based on the requirements files and install develop of packages
108 109 dev-env:
109 110 pushd ../rhodecode-vcsserver/ && make dev-env && popd
110 pip install -r requirements.txt -r requirements_test.txt -r requirements_debug.txt
111 pip wheel --wheel-dir=/home/rhodecode/.cache/pip/wheels -r requirements.txt -r requirements_test.txt -r requirements_debug.txt
112 pip install --no-index --find-links=/home/rhodecode/.cache/pip/wheels -r requirements.txt -r requirements_test.txt -r requirements_debug.txt
111 113 pip install -e .
112 114
113 115 # Default command on calling make
114 116 .DEFAULT_GOAL := show-help
115 117
116 118 .PHONY: show-help
117 119 show-help:
118 120 @echo "$$(tput bold)Available rules:$$(tput sgr0)"
119 121 @echo
120 122 @sed -n -e "/^## / { \
121 123 h; \
122 124 s/.*//; \
123 125 :doc" \
124 126 -e "H; \
125 127 n; \
126 128 s/^## //; \
127 129 t doc" \
128 130 -e "s/:.*//; \
129 131 G; \
130 132 s/\\n## /---/; \
131 133 s/\\n/ /g; \
132 134 p; \
133 135 }" ${MAKEFILE_LIST} \
134 136 | LC_ALL='C' sort --ignore-case \
135 137 | awk -F '---' \
136 138 -v ncol=$$(tput cols) \
137 139 -v indent=19 \
138 140 -v col_on="$$(tput setaf 6)" \
139 141 -v col_off="$$(tput sgr0)" \
140 142 '{ \
141 143 printf "%s%*s%s ", col_on, -indent, $$1, col_off; \
142 144 n = split($$2, words, " "); \
143 145 line_length = ncol - indent; \
144 146 for (i = 1; i <= n; i++) { \
145 147 line_length -= length(words[i]) + 1; \
146 148 if (line_length <= 0) { \
147 149 line_length = ncol - indent - length(words[i]) - 1; \
148 150 printf "\n%*s ", -indent, " "; \
149 151 } \
150 152 printf "%s ", words[i]; \
151 153 } \
152 154 printf "\n"; \
153 155 }'
154 156
@@ -1,8 +1,8 b''
1 1 sphinx==1.8.2
2 2 six==1.11.0
3 3 sphinx_rtd_theme==0.4.1
4 4 docutils==0.16.0
5 5 pygments==2.3.0
6 6 markupsafe==1.0.0
7 7 jinja2==2.9.6
8 pytz==2018.4
8 pytz==2023.3
@@ -1,265 +1,265 b''
1 1 # deps, generated via pipdeptree --exclude setuptools,wheel,pipdeptree,pip -f | tr '[:upper:]' '[:lower:]'
2 2
3 alembic==1.10.2
3 alembic==1.10.4
4 4 mako==1.2.4
5 5 markupsafe==2.1.2
6 6 sqlalchemy==1.4.46
7 7 greenlet==2.0.2
8 8 typing_extensions==4.5.0
9 9 typing_extensions==4.5.0
10 10 babel==2.12.1
11 11 celery==5.2.7
12 12 billiard==3.6.4.0
13 13 click==8.1.3
14 14 click-didyoumean==0.3.0
15 15 click==8.1.3
16 16 click-plugins==1.1.1
17 17 click==8.1.3
18 18 click-repl==0.2.0
19 19 click==8.1.3
20 20 prompt-toolkit==3.0.38
21 21 wcwidth==0.2.6
22 22 six==1.16.0
23 23 kombu==5.2.4
24 24 amqp==5.1.1
25 25 vine==5.0.0
26 26 vine==5.0.0
27 pytz==2022.7.1
27 pytz==2023.3
28 28 vine==5.0.0
29 29 channelstream==0.7.1
30 30 gevent==22.10.2
31 31 greenlet==2.0.2
32 32 zope.event==4.6
33 zope.interface==5.5.2
33 zope.interface==6.0.0
34 34 itsdangerous==1.1.0
35 35 marshmallow==2.18.0
36 36 pyramid==2.0.1
37 hupper==1.11
37 hupper==1.12
38 38 plaster==1.1.2
39 39 plaster-pastedeploy==1.0.1
40 40 pastedeploy==3.0.1
41 41 plaster==1.1.2
42 42 translationstring==1.4
43 43 venusian==3.0.0
44 44 webob==1.8.7
45 zope.deprecation==4.4.0
46 zope.interface==5.5.2
45 zope.deprecation==5.0.0
46 zope.interface==6.0.0
47 47 pyramid-apispec==0.3.3
48 48 apispec==1.3.3
49 49 pyramid-jinja2==2.10
50 50 jinja2==3.1.2
51 51 markupsafe==2.1.2
52 52 markupsafe==2.1.2
53 53 pyramid==2.0.1
54 hupper==1.11
54 hupper==1.12
55 55 plaster==1.1.2
56 56 plaster-pastedeploy==1.0.1
57 57 pastedeploy==3.0.1
58 58 plaster==1.1.2
59 59 translationstring==1.4
60 60 venusian==3.0.0
61 61 webob==1.8.7
62 zope.deprecation==4.4.0
63 zope.interface==5.5.2
64 zope.deprecation==4.4.0
62 zope.deprecation==5.0.0
63 zope.interface==6.0.0
64 zope.deprecation==5.0.0
65 65 python-dateutil==2.8.2
66 66 six==1.16.0
67 67 requests==2.28.2
68 68 certifi==2022.12.7
69 69 charset-normalizer==3.1.0
70 70 idna==3.4
71 71 urllib3==1.26.14
72 72 ws4py==0.5.1
73 73 deform==2.0.15
74 74 chameleon==3.10.2
75 75 colander==2.0
76 76 iso8601==1.1.0
77 77 translationstring==1.4
78 78 iso8601==1.1.0
79 79 peppercorn==0.6
80 80 translationstring==1.4
81 zope.deprecation==4.4.0
81 zope.deprecation==5.0.0
82 82 docutils==0.19
83 dogpile.cache==1.1.8
83 dogpile.cache==1.2.0
84 84 decorator==5.1.1
85 85 stevedore==5.0.0
86 86 pbr==5.11.1
87 87 formencode==2.0.1
88 88 six==1.16.0
89 89 gunicorn==20.1.0
90 90 infrae.cache==1.0.1
91 91 beaker==1.12.1
92 92 repoze.lru==0.7
93 msgpack-python==0.5.6
93 msgpack==1.0.5
94 94 mysqlclient==2.1.1
95 95 nbconvert==7.2.9
96 96 beautifulsoup4==4.11.2
97 97 soupsieve==2.4
98 98 bleach==6.0.0
99 99 six==1.16.0
100 100 webencodings==0.5.1
101 101 defusedxml==0.7.1
102 102 jinja2==3.1.2
103 103 markupsafe==2.1.2
104 104 jupyter_core==5.2.0
105 105 platformdirs==3.1.0
106 106 traitlets==5.9.0
107 107 jupyterlab-pygments==0.2.2
108 108 markupsafe==2.1.2
109 109 mistune==2.0.5
110 110 nbclient==0.7.2
111 111 jupyter_client==8.0.3
112 112 jupyter_core==5.2.0
113 113 platformdirs==3.1.0
114 114 traitlets==5.9.0
115 115 python-dateutil==2.8.2
116 116 six==1.16.0
117 117 pyzmq==25.0.0
118 118 tornado==6.2
119 119 traitlets==5.9.0
120 120 jupyter_core==5.2.0
121 121 platformdirs==3.1.0
122 122 traitlets==5.9.0
123 123 nbformat==5.7.3
124 124 fastjsonschema==2.16.3
125 125 jsonschema==4.17.3
126 126 attrs==22.2.0
127 127 pyrsistent==0.19.3
128 128 jupyter_core==5.2.0
129 129 platformdirs==3.1.0
130 130 traitlets==5.9.0
131 131 traitlets==5.9.0
132 132 traitlets==5.9.0
133 133 nbformat==5.7.3
134 134 fastjsonschema==2.16.3
135 135 jsonschema==4.17.3
136 136 attrs==22.2.0
137 137 pyrsistent==0.19.3
138 138 jupyter_core==5.2.0
139 139 platformdirs==3.1.0
140 140 traitlets==5.9.0
141 141 traitlets==5.9.0
142 142 packaging==23.0
143 143 pandocfilters==1.5.0
144 pygments==2.14.0
144 pygments==2.15.1
145 145 tinycss2==1.2.1
146 146 webencodings==0.5.1
147 147 traitlets==5.9.0
148 orjson==3.8.7
148 orjson==3.8.12
149 149 pastescript==3.3.0
150 paste==3.5.2
150 paste==3.5.3
151 151 six==1.16.0
152 152 pastedeploy==3.0.1
153 153 six==1.16.0
154 154 premailer==3.10.0
155 155 cachetools==5.3.0
156 156 cssselect==1.2.0
157 157 cssutils==2.6.0
158 158 lxml==4.9.2
159 159 requests==2.28.2
160 160 certifi==2022.12.7
161 161 charset-normalizer==3.1.0
162 162 idna==3.4
163 163 urllib3==1.26.14
164 psutil==5.9.4
165 psycopg2==2.9.5
164 psutil==5.9.5
165 psycopg2==2.9.6
166 166 py-bcrypt==0.4
167 167 py-gfm==2.0.0
168 markdown==3.4.1
168 markdown==3.4.3
169 169 pycurl==7.45.2
170 170 pycryptodome==3.17
171 pymysql==1.0.2
171 pymysql==1.0.3
172 172 pyotp==2.8.0
173 173 pyparsing==3.0.9
174 174 pyramid-debugtoolbar==4.10
175 pygments==2.14.0
175 pygments==2.15.1
176 176 pyramid==2.0.1
177 hupper==1.11
177 hupper==1.12
178 178 plaster==1.1.2
179 179 plaster-pastedeploy==1.0.1
180 180 pastedeploy==3.0.1
181 181 plaster==1.1.2
182 182 translationstring==1.4
183 183 venusian==3.0.0
184 184 webob==1.8.7
185 zope.deprecation==4.4.0
186 zope.interface==5.5.2
185 zope.deprecation==5.0.0
186 zope.interface==6.0.0
187 187 pyramid-mako==1.1.0
188 188 mako==1.2.4
189 189 markupsafe==2.1.2
190 190 pyramid==2.0.1
191 hupper==1.11
191 hupper==1.12
192 192 plaster==1.1.2
193 193 plaster-pastedeploy==1.0.1
194 194 pastedeploy==3.0.1
195 195 plaster==1.1.2
196 196 translationstring==1.4
197 197 venusian==3.0.0
198 198 webob==1.8.7
199 zope.deprecation==4.4.0
200 zope.interface==5.5.2
199 zope.deprecation==5.0.0
200 zope.interface==6.0.0
201 201 pyramid-mailer==0.15.1
202 202 pyramid==2.0.1
203 hupper==1.11
203 hupper==1.12
204 204 plaster==1.1.2
205 205 plaster-pastedeploy==1.0.1
206 206 pastedeploy==3.0.1
207 207 plaster==1.1.2
208 208 translationstring==1.4
209 209 venusian==3.0.0
210 210 webob==1.8.7
211 zope.deprecation==4.4.0
212 zope.interface==5.5.2
211 zope.deprecation==5.0.0
212 zope.interface==6.0.0
213 213 repoze.sendmail==4.4.1
214 transaction==3.0.1
215 zope.interface==5.5.2
216 zope.interface==5.5.2
217 transaction==3.0.1
218 zope.interface==5.5.2
214 transaction==3.1.0
215 zope.interface==6.0.0
216 zope.interface==6.0.0
217 transaction==3.1.0
218 zope.interface==6.0.0
219 219 python-ldap==3.4.3
220 220 pyasn1==0.4.8
221 221 pyasn1-modules==0.2.8
222 222 pyasn1==0.4.8
223 223 python-memcached==1.59
224 224 six==1.16.0
225 225 python-pam==2.0.2
226 226 python3-saml==1.15.0
227 227 isodate==0.6.1
228 228 six==1.16.0
229 229 lxml==4.9.2
230 230 xmlsec==1.3.13
231 231 lxml==4.9.2
232 232 pyyaml==6.0
233 redis==4.5.1
233 redis==4.5.5
234 234 async-timeout==4.0.2
235 235 regex==2022.10.31
236 236 routes==2.5.1
237 237 repoze.lru==0.7
238 238 six==1.16.0
239 simplejson==3.18.3
239 simplejson==3.19.1
240 240 sshpubkeys==3.3.1
241 cryptography==39.0.2
241 cryptography==40.0.2
242 242 cffi==1.15.1
243 243 pycparser==2.21
244 244 ecdsa==0.18.0
245 245 six==1.16.0
246 246 supervisor==4.2.5
247 tzlocal==4.2
247 tzlocal==4.3
248 248 pytz-deprecation-shim==0.1.0.post0
249 tzdata==2022.7
249 tzdata==2023.3
250 250 urlobject==2.4.3
251 251 waitress==2.1.2
252 252 weberror==0.13.1
253 paste==3.5.2
253 paste==3.5.3
254 254 six==1.16.0
255 pygments==2.14.0
255 pygments==2.15.1
256 256 tempita==0.5.2
257 257 webob==1.8.7
258 258 webhelpers2==2.0
259 259 markupsafe==2.1.2
260 260 six==1.16.0
261 261 whoosh==2.7.4
262 zope.cachedescriptors==4.4
262 zope.cachedescriptors==5.0.0
263 263
264 264 ## uncomment to add the debug libraries
265 265 #-r requirements_debug.txt
@@ -1,15 +1,15 b''
1 1 ## special libraries we could extend the requirements.txt file with to add some
2 2 ## custom libraries usefull for debug and memory tracing
3 3
4 4 objgraph
5 5
6 6 ## debug
7 7 ipdb
8 8 ipython
9 9
10 10 pipdeptree
11 11 invoke==2.0.0
12 12 bumpversion==0.6.0
13 13 bump2version==1.0.1
14 14 flake8
15 docutils-stub
15 docutils-stubs
@@ -1,44 +1,45 b''
1 1 # test related requirements
2 2
3 3 cov-core==1.15.0
4 coverage==7.2.1
5 mock==5.0.1
4 coverage==7.2.3
5 mock==5.0.2
6 6 py==1.11.0
7 7 pytest-cov==4.0.0
8 coverage==7.2.1
9 pytest==7.2.2
8 coverage==7.2.3
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 pytest==7.2.2
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 pytest-sugar==0.9.6
23 pytest-sugar==0.9.7
24 24 packaging==23.0
25 pytest==7.2.2
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 pytest==7.2.2
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/archive/default.tar.gz?with_hash=1&sha256=76c9ed4ea955971774db2daf3076f38b7388ccc1338b6fd0c02800ab99400426
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