Show More
@@ -1,8 +1,35 b'' | |||||
|
1 | [build-system] | |||
|
2 | requires = ["setuptools>=61.0.0", "wheel"] | |||
|
3 | build-backend = "setuptools.build_meta" | |||
|
4 | ||||
1 | [project] |
|
5 | [project] | |
2 | name = "rhodecode-vcsserver" |
|
6 | name = "rhodecode-vcsserver" | |
3 | description = "" |
|
7 | description = "Version Control System Server for RhodeCode" | |
|
8 | authors = [ | |||
|
9 | {name = "RhodeCode GmbH", email = "support@rhodecode.com"}, | |||
|
10 | ] | |||
|
11 | ||||
|
12 | license = {text = "GPL V3"} | |||
4 | requires-python = ">=3.10" |
|
13 | requires-python = ">=3.10" | |
5 | version = "5.0.0" |
|
14 | dynamic = ["version", "readme"] | |
|
15 | classifiers = [ | |||
|
16 | 'Development Status :: 6 - Mature', | |||
|
17 | 'Intended Audience :: Developers', | |||
|
18 | 'Operating System :: OS Independent', | |||
|
19 | 'Topic :: Software Development :: Version Control', | |||
|
20 | 'License :: OSI Approved :: GNU General Public License v3 or later (GPLv3+)', | |||
|
21 | 'Programming Language :: Python :: 3.10', | |||
|
22 | ] | |||
|
23 | ||||
|
24 | [project.entry-points."paste.app_factory"] | |||
|
25 | main = "vcsserver.http_main:main" | |||
|
26 | ||||
|
27 | [tool.setuptools] | |||
|
28 | packages = ["vcsserver"] | |||
|
29 | ||||
|
30 | [tool.setuptools.dynamic] | |||
|
31 | readme = {file = ["README.rst"], content-type = "text/rst"} | |||
|
32 | version = {file = "vcsserver/VERSION"} | |||
6 |
|
33 | |||
7 | [tool.ruff] |
|
34 | [tool.ruff] | |
8 | select = [ |
|
35 | select = [ |
@@ -18,7 +18,7 b'' | |||||
18 | import pkgutil |
|
18 | import pkgutil | |
19 |
|
19 | |||
20 |
|
20 | |||
21 | __version__ = pkgutil.get_data('vcsserver', 'VERSION').strip() |
|
21 | __version__ = pkgutil.get_data('vcsserver', 'VERSION').strip().decode() | |
22 |
|
22 | |||
23 | # link to config for pyramid |
|
23 | # link to config for pyramid | |
24 | CONFIG = {} |
|
24 | CONFIG = {} |
@@ -464,7 +464,7 b' class HTTPApplication(object):' | |||||
464 |
|
464 | |||
465 | def status_view(self, request): |
|
465 | def status_view(self, request): | |
466 | import vcsserver |
|
466 | import vcsserver | |
467 |
return {'status': 'OK', 'vcsserver_version': |
|
467 | return {'status': 'OK', 'vcsserver_version': vcsserver.__version__, | |
468 | 'pid': os.getpid()} |
|
468 | 'pid': os.getpid()} | |
469 |
|
469 | |||
470 | def service_view(self, request): |
|
470 | def service_view(self, request): | |
@@ -492,7 +492,7 b' class HTTPApplication(object):' | |||||
492 | resp = { |
|
492 | resp = { | |
493 | 'id': payload.get('id'), |
|
493 | 'id': payload.get('id'), | |
494 | 'result': dict( |
|
494 | 'result': dict( | |
495 |
version= |
|
495 | version=vcsserver.__version__, | |
496 | config=server_config, |
|
496 | config=server_config, | |
497 | app_config=app_config, |
|
497 | app_config=app_config, | |
498 | environ=environ, |
|
498 | environ=environ, |
@@ -72,7 +72,7 b' class BaseInstallHooks(object):' | |||||
72 | content = hook_file.read() |
|
72 | content = hook_file.read() | |
73 |
|
73 | |||
74 | expected_env = '#!{}'.format(executable) |
|
74 | expected_env = '#!{}'.format(executable) | |
75 |
expected_rc_version = "\nRC_HOOK_VER = '{}'\n".format( |
|
75 | expected_rc_version = "\nRC_HOOK_VER = '{}'\n".format(vcsserver.__version__) | |
76 | assert content.strip().startswith(expected_env) |
|
76 | assert content.strip().startswith(expected_env) | |
77 | assert expected_rc_version in content |
|
77 | assert expected_rc_version in content | |
78 |
|
78 |
@@ -65,7 +65,7 b' class RequestWrapperTween(object):' | |||||
65 | repo_name = call_context.get('X-RC-Repo-Name', '') |
|
65 | repo_name = call_context.get('X-RC-Repo-Name', '') | |
66 |
|
66 | |||
67 | count = request.request_count() |
|
67 | count = request.request_count() | |
68 |
_ver_ = |
|
68 | _ver_ = vcsserver.__version__ | |
69 | _path = safe_str(get_access_path(request.environ)) |
|
69 | _path = safe_str(get_access_path(request.environ)) | |
70 |
|
70 | |||
71 | ip = '127.0.0.1' |
|
71 | ip = '127.0.0.1' |
1 | NO CONTENT: file was removed |
|
NO CONTENT: file was removed |
General Comments 0
You need to be logged in to leave comments.
Login now