##// END OF EJS Templates
project: switched completly to pyproject.toml
super-admin -
r1101:e8c454cf python3
parent child Browse files
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 5 [project]
2 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 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 34 [tool.ruff]
8 35 select = [
@@ -18,7 +18,7 b''
18 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 23 # link to config for pyramid
24 24 CONFIG = {}
@@ -464,7 +464,7 b' class HTTPApplication(object):'
464 464
465 465 def status_view(self, request):
466 466 import vcsserver
467 return {'status': 'OK', 'vcsserver_version': safe_str(vcsserver.__version__),
467 return {'status': 'OK', 'vcsserver_version': vcsserver.__version__,
468 468 'pid': os.getpid()}
469 469
470 470 def service_view(self, request):
@@ -492,7 +492,7 b' class HTTPApplication(object):'
492 492 resp = {
493 493 'id': payload.get('id'),
494 494 'result': dict(
495 version=safe_str(vcsserver.__version__),
495 version=vcsserver.__version__,
496 496 config=server_config,
497 497 app_config=app_config,
498 498 environ=environ,
@@ -72,7 +72,7 b' class BaseInstallHooks(object):'
72 72 content = hook_file.read()
73 73
74 74 expected_env = '#!{}'.format(executable)
75 expected_rc_version = "\nRC_HOOK_VER = '{}'\n".format(safe_str(vcsserver.__version__))
75 expected_rc_version = "\nRC_HOOK_VER = '{}'\n".format(vcsserver.__version__)
76 76 assert content.strip().startswith(expected_env)
77 77 assert expected_rc_version in content
78 78
@@ -65,7 +65,7 b' class RequestWrapperTween(object):'
65 65 repo_name = call_context.get('X-RC-Repo-Name', '')
66 66
67 67 count = request.request_count()
68 _ver_ = ascii_str(vcsserver.__version__)
68 _ver_ = vcsserver.__version__
69 69 _path = safe_str(get_access_path(request.environ))
70 70
71 71 ip = '127.0.0.1'
1 NO CONTENT: file was removed
General Comments 0
You need to be logged in to leave comments. Login now