##// END OF EJS Templates
package: fix dev-env, bumped some deps to be consistent
super-admin -
r1102:2c99a397 python3
parent child Browse files
Show More
@@ -1,94 +1,96 b''
1 #SHELL = /bin/bash
1
2
2 # set by: PATH_TO_OUTDATED_PACKAGES=/some/path/outdated_packages.py
3 # set by: PATH_TO_OUTDATED_PACKAGES=/some/path/outdated_packages.py
3 OUTDATED_PACKAGES = ${PATH_TO_OUTDATED_PACKAGES}
4 OUTDATED_PACKAGES = ${PATH_TO_OUTDATED_PACKAGES}
4
5
5 .PHONY: clean
6 .PHONY: clean
6 ## Cleanup compiled and cache py files
7 ## Cleanup compiled and cache py files
7 clean:
8 clean:
8 make test-clean
9 make test-clean
9 find . -type f \( -iname '*.c' -o -iname '*.pyc' -o -iname '*.so' -o -iname '*.orig' \) -exec rm '{}' ';'
10 find . -type f \( -iname '*.c' -o -iname '*.pyc' -o -iname '*.so' -o -iname '*.orig' \) -exec rm '{}' ';'
10
11
11
12
12 .PHONY: test
13 .PHONY: test
13 ## run test-clean and tests
14 ## run test-clean and tests
14 test:
15 test:
15 make test-clean
16 make test-clean
16 make test-only
17 make test-only
17
18
18
19
19 .PHONY:test-clean
20 .PHONY: test-clean
20 ## run test-clean and tests
21 ## run test-clean and tests
21 test-clean:
22 test-clean:
22 rm -rf coverage.xml htmlcov junit.xml pylint.log result
23 rm -rf coverage.xml htmlcov junit.xml pylint.log result
23 find . -type d -name "__pycache__" -prune -exec rm -rf '{}' ';'
24 find . -type d -name "__pycache__" -prune -exec rm -rf '{}' ';'
24 find . -type f \( -iname '.coverage.*' \) -exec rm '{}' ';'
25 find . -type f \( -iname '.coverage.*' \) -exec rm '{}' ';'
25
26
26
27
27 .PHONY: test-only
28 .PHONY: test-only
28 ## Run tests only without cleanup
29 ## Run tests only without cleanup
29 test-only:
30 test-only:
30 PYTHONHASHSEED=random \
31 PYTHONHASHSEED=random \
31 py.test -x -vv -r xw -p no:sugar \
32 py.test -x -vv -r xw -p no:sugar \
32 --cov-report=term-missing --cov-report=html --cov=vcsserver vcsserver
33 --cov-report=term-missing --cov-report=html --cov=vcsserver vcsserver
33
34
34
35
35
36 .PHONY: pip-packages
36 .PHONY: pip-packages
37 ## Show outdated packages
37 ## Show outdated packages
38 pip-packages:
38 pip-packages:
39 python ${OUTDATED_PACKAGES}
39 python ${OUTDATED_PACKAGES}
40
40
41
41
42 .PHONY: sdist
42 .PHONY: build
43 ## Build sdist
43 ## Build sdist/egg
44 sdist:
44 build:
45 python setup.py sdist
45 python -m build
46
46
47
47 .PHONY: dev-env
48 .PHONY: dev-env
48 ## Build sdist
49 ## make dev-env based on the requirements files and install develop of packages
49 dev-env:
50 dev-env:
51 pip install build virtualenv pipdeptree
50 pip wheel --wheel-dir=/home/rhodecode/.cache/pip/wheels -r requirements.txt -r requirements_test.txt -r requirements_debug.txt
52 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
53 pip install --no-index --find-links=/home/rhodecode/.cache/pip/wheels -r requirements.txt -r requirements_test.txt -r requirements_debug.txt
52 pip install -e .
54 pip install -e .
53
55
54 # Default command on calling make
56 # Default command on calling make
55 .DEFAULT_GOAL := show-help
57 .DEFAULT_GOAL := show-help
56
58
57 .PHONY: show-help
59 .PHONY: show-help
58 show-help:
60 show-help:
59 @echo "$$(tput bold)Available rules:$$(tput sgr0)"
61 @echo "$$(tput bold)Available rules:$$(tput sgr0)"
60 @echo
62 @echo
61 @sed -n -e "/^## / { \
63 @sed -n -e "/^## / { \
62 h; \
64 h; \
63 s/.*//; \
65 s/.*//; \
64 :doc" \
66 :doc" \
65 -e "H; \
67 -e "H; \
66 n; \
68 n; \
67 s/^## //; \
69 s/^## //; \
68 t doc" \
70 t doc" \
69 -e "s/:.*//; \
71 -e "s/:.*//; \
70 G; \
72 G; \
71 s/\\n## /---/; \
73 s/\\n## /---/; \
72 s/\\n/ /g; \
74 s/\\n/ /g; \
73 p; \
75 p; \
74 }" ${MAKEFILE_LIST} \
76 }" ${MAKEFILE_LIST} \
75 | LC_ALL='C' sort --ignore-case \
77 | LC_ALL='C' sort --ignore-case \
76 | awk -F '---' \
78 | awk -F '---' \
77 -v ncol=$$(tput cols) \
79 -v ncol=$$(tput cols) \
78 -v indent=19 \
80 -v indent=19 \
79 -v col_on="$$(tput setaf 6)" \
81 -v col_on="$$(tput setaf 6)" \
80 -v col_off="$$(tput sgr0)" \
82 -v col_off="$$(tput sgr0)" \
81 '{ \
83 '{ \
82 printf "%s%*s%s ", col_on, -indent, $$1, col_off; \
84 printf "%s%*s%s ", col_on, -indent, $$1, col_off; \
83 n = split($$2, words, " "); \
85 n = split($$2, words, " "); \
84 line_length = ncol - indent; \
86 line_length = ncol - indent; \
85 for (i = 1; i <= n; i++) { \
87 for (i = 1; i <= n; i++) { \
86 line_length -= length(words[i]) + 1; \
88 line_length -= length(words[i]) + 1; \
87 if (line_length <= 0) { \
89 if (line_length <= 0) { \
88 line_length = ncol - indent - length(words[i]) - 1; \
90 line_length = ncol - indent - length(words[i]) - 1; \
89 printf "\n%*s ", -indent, " "; \
91 printf "\n%*s ", -indent, " "; \
90 } \
92 } \
91 printf "%s ", words[i]; \
93 printf "%s ", words[i]; \
92 } \
94 } \
93 printf "\n"; \
95 printf "\n"; \
94 }'
96 }'
@@ -1,51 +1,54 b''
1 [build-system]
1 [build-system]
2 requires = ["setuptools>=61.0.0", "wheel"]
2 requires = ["setuptools>=61.0.0", "wheel"]
3 build-backend = "setuptools.build_meta"
3 build-backend = "setuptools.build_meta"
4
4
5 [project]
5 [project]
6 name = "rhodecode-vcsserver"
6 name = "rhodecode-vcsserver"
7 description = "Version Control System Server for RhodeCode"
7 description = "Version Control System Server for RhodeCode"
8 authors = [
8 authors = [
9 {name = "RhodeCode GmbH", email = "support@rhodecode.com"},
9 {name = "RhodeCode GmbH", email = "support@rhodecode.com"},
10 ]
10 ]
11
11
12 license = {text = "GPL V3"}
12 license = {text = "GPL V3"}
13 requires-python = ">=3.10"
13 requires-python = ">=3.10"
14 dynamic = ["version", "readme"]
14 dynamic = ["version", "readme", "dependencies", "optional-dependencies"]
15 classifiers = [
15 classifiers = [
16 'Development Status :: 6 - Mature',
16 'Development Status :: 6 - Mature',
17 'Intended Audience :: Developers',
17 'Intended Audience :: Developers',
18 'Operating System :: OS Independent',
18 'Operating System :: OS Independent',
19 'Topic :: Software Development :: Version Control',
19 'Topic :: Software Development :: Version Control',
20 'License :: OSI Approved :: GNU General Public License v3 or later (GPLv3+)',
20 'License :: OSI Approved :: GNU General Public License v3 or later (GPLv3+)',
21 'Programming Language :: Python :: 3.10',
21 'Programming Language :: Python :: 3.10',
22 ]
22 ]
23
23
24 [project.entry-points."paste.app_factory"]
24 [project.entry-points."paste.app_factory"]
25 main = "vcsserver.http_main:main"
25 main = "vcsserver.http_main:main"
26
26
27
27 [tool.setuptools]
28 [tool.setuptools]
28 packages = ["vcsserver"]
29 packages = ["vcsserver"]
29
30
30 [tool.setuptools.dynamic]
31 [tool.setuptools.dynamic]
31 readme = {file = ["README.rst"], content-type = "text/rst"}
32 readme = {file = ["README.rst"], content-type = "text/rst"}
32 version = {file = "vcsserver/VERSION"}
33 version = {file = "vcsserver/VERSION"}
34 dependencies = {file = ["requirements.txt"]}
35 optional-dependencies.tests = {file = ["requirements_test.txt"]}
33
36
34 [tool.ruff]
37 [tool.ruff]
35 select = [
38 select = [
36 # Pyflakes
39 # Pyflakes
37 "F",
40 "F",
38 # Pycodestyle
41 # Pycodestyle
39 "E",
42 "E",
40 "W",
43 "W",
41 # isort
44 # isort
42 "I001"
45 "I001"
43 ]
46 ]
44 ignore = [
47 ignore = [
45 "E501", # line too long, handled by black
48 "E501", # line too long, handled by black
46 ]
49 ]
47 # Same as Black.
50 # Same as Black.
48 line-length = 120
51 line-length = 120
49
52
50 [tool.ruff.isort]
53 [tool.ruff.isort]
51 known-first-party = ["vcsserver"]
54 known-first-party = ["vcsserver"]
@@ -1,53 +1,53 b''
1 # deps, generated via pipdeptree --exclude setuptools,wheel,pipdeptree,pip -f | tr '[:upper:]' '[:lower:]'
1 # deps, generated via pipdeptree --exclude setuptools,wheel,pipdeptree,pip -f | tr '[:upper:]' '[:lower:]'
2
2
3 atomicwrites==1.4.1
3 atomicwrites==1.4.1
4 contextlib2==21.6.0
4 contextlib2==21.6.0
5 cov-core==1.15.0
5 cov-core==1.15.0
6 coverage==7.2.3
6 coverage==7.2.3
7 dogpile.cache==1.2.0
7 dogpile.cache==1.2.0
8 decorator==5.1.1
8 decorator==5.1.1
9 stevedore==5.0.0
9 stevedore==5.0.0
10 pbr==5.11.1
10 pbr==5.11.1
11 dulwich==0.21.5
11 dulwich==0.21.5
12 urllib3==1.26.14
12 urllib3==1.26.14
13 gunicorn==20.1.0
13 gunicorn==20.1.0
14 hg-evolve==11.0.1
14 hg-evolve==11.0.1
15 importlib-metadata==6.0.0
15 importlib-metadata==6.0.0
16 zipp==3.15.0
16 zipp==3.15.0
17 mercurial==6.3.3
17 mercurial==6.3.3
18 mock==5.0.2
18 mock==5.0.2
19 more-itertools==9.1.0
19 more-itertools==9.1.0
20 msgpack==1.0.5
20 msgpack==1.0.5
21 orjson==3.8.12
21 orjson==3.8.12
22 psutil==5.9.5
22 psutil==5.9.5
23 py==1.11.0
23 py==1.11.0
24 pygit2==1.12.1
24 pygit2==1.12.1
25 cffi==1.15.1
25 cffi==1.15.1
26 pycparser==2.21
26 pycparser==2.21
27 pygments==2.15.1
27 pygments==2.15.1
28 pyparsing==3.0.9
28 pyparsing==3.0.9
29 pyramid==2.0.1
29 pyramid==2.0.1
30 hupper==1.12
30 hupper==1.12
31 plaster==1.1.2
31 plaster==1.1.2
32 plaster-pastedeploy==1.0.1
32 plaster-pastedeploy==1.0.1
33 pastedeploy==3.0.1
33 pastedeploy==3.0.1
34 plaster==1.1.2
34 plaster==1.1.2
35 translationstring==1.4
35 translationstring==1.4
36 venusian==3.0.0
36 venusian==3.0.0
37 webob==1.8.7
37 webob==1.8.7
38 zope.deprecation==5.0.0
38 zope.deprecation==5.0.0
39 zope.interface==6.0.0
39 zope.interface==6.0.0
40 redis==4.5.5
40 redis==4.5.5
41 async-timeout==4.0.2
41 async-timeout==4.0.2
42 repoze.lru==0.7
42 repoze.lru==0.7
43 scandir==1.10.0
43 scandir==1.10.0
44 setproctitle==1.3.2
44 setproctitle==1.3.2
45 subvertpy==0.11.0
45 subvertpy==0.11.0
46 wcwidth==0.2.6
46 wcwidth==0.2.6
47
47
48
48
49 ## test related requirements
49 ## test related requirements
50 -r requirements_test.txt
50 #-r requirements_test.txt
51
51
52 ## uncomment to add the debug libraries
52 ## uncomment to add the debug libraries
53 #-r requirements_debug.txt
53 #-r requirements_debug.txt
@@ -1,45 +1,45 b''
1 # test related requirements
1 # test related requirements
2
2
3 cov-core==1.15.0
3 cov-core==1.15.0
4 coverage==7.2.3
4 coverage==7.2.3
5 mock==5.0.2
5 mock==5.0.2
6 py==1.11.0
6 py==1.11.0
7 pytest-cov==4.0.0
7 pytest-cov==4.0.0
8 coverage==7.2.3
8 coverage==7.2.3
9 pytest==7.3.1
9 pytest==7.3.1
10 attrs==22.2.0
10 attrs==22.2.0
11 iniconfig==2.0.0
11 iniconfig==2.0.0
12 packaging==23.0
12 packaging==23.1
13 pluggy==1.0.0
13 pluggy==1.0.0
14 pytest-profiling==1.7.0
14 pytest-profiling==1.7.0
15 gprof2dot==2022.7.29
15 gprof2dot==2022.7.29
16 pytest==7.3.1
16 pytest==7.3.1
17 attrs==22.2.0
17 attrs==22.2.0
18 iniconfig==2.0.0
18 iniconfig==2.0.0
19 packaging==23.0
19 packaging==23.1
20 pluggy==1.0.0
20 pluggy==1.0.0
21 six==1.16.0
21 six==1.16.0
22 pytest-runner==6.0.0
22 pytest-runner==6.0.0
23 pytest-sugar==0.9.7
23 pytest-sugar==0.9.7
24 packaging==23.0
24 packaging==23.1
25 pytest==7.3.1
25 pytest==7.3.1
26 attrs==22.2.0
26 attrs==22.2.0
27 iniconfig==2.0.0
27 iniconfig==2.0.0
28 packaging==23.0
28 packaging==23.1
29 pluggy==1.0.0
29 pluggy==1.0.0
30 termcolor==2.3.0
30 termcolor==2.3.0
31 pytest-timeout==2.1.0
31 pytest-timeout==2.1.0
32 pytest==7.3.1
32 pytest==7.3.1
33 attrs==22.2.0
33 attrs==22.2.0
34 iniconfig==2.0.0
34 iniconfig==2.0.0
35 packaging==23.0
35 packaging==23.1
36 pluggy==1.0.0
36 pluggy==1.0.0
37 webtest==3.0.0
37 webtest==3.0.0
38 beautifulsoup4==4.11.2
38 beautifulsoup4==4.11.2
39 soupsieve==2.4
39 soupsieve==2.4
40 waitress==2.1.2
40 waitress==2.1.2
41 webob==1.8.7
41 webob==1.8.7
42
42
43 # RhodeCode test-data
43 # RhodeCode test-data
44 rc_testdata @ https://code.rhodecode.com/upstream/rc-testdata-dist/raw/e72cda25374768bc8605a67066012428f9d90d03/rc_testdata-0.10.0.tar.gz#egg=rc_testdata
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
45 rc_testdata==0.10.0
General Comments 0
You need to be logged in to leave comments. Login now