clusterhop 0.1.0__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- clusterhop-0.1.0/.gitignore.local +6 -0
- clusterhop-0.1.0/.nvimrc +130 -0
- clusterhop-0.1.0/PKG-INFO +22 -0
- clusterhop-0.1.0/pyproject.toml +91 -0
- clusterhop-0.1.0/readme.md +10 -0
- clusterhop-0.1.0/share/.gitkeep +0 -0
- clusterhop-0.1.0/src/clusterhop/__init__.py +4 -0
- clusterhop-0.1.0/src/clusterhop/cli/__init__.py +10 -0
- clusterhop-0.1.0/src/clusterhop/metadata.py +6 -0
clusterhop-0.1.0/.nvimrc
ADDED
|
@@ -0,0 +1,130 @@
|
|
|
1
|
+
function! s:insert_license_slash()
|
|
2
|
+
set formatoptions-=cro
|
|
3
|
+
execute "normal! i// -------------------------------------------------------------------------------------------------"
|
|
4
|
+
execute "normal! o// SPDX-License-Identifier: Apache-2.0"
|
|
5
|
+
execute "normal! o// Copyright (C) 2026 Jayesh Badwaik <j.badwaik@fz-juelich.de>"
|
|
6
|
+
execute "normal! o// -------------------------------------------------------------------------------------------------"
|
|
7
|
+
normal! o
|
|
8
|
+
set formatoptions+=cro
|
|
9
|
+
endfunction
|
|
10
|
+
|
|
11
|
+
function! s:insert_license_hash()
|
|
12
|
+
set formatoptions-=cro
|
|
13
|
+
execute "normal! i# --------------------------------------------------------------------------------------------------"
|
|
14
|
+
execute "normal! o# SPDX-License-Identifier: Apache-2.0"
|
|
15
|
+
execute "normal! o# Copyright (C) 2026 Jayesh Badwaik <j.badwaik@fz-juelich.de>"
|
|
16
|
+
execute "normal! o# --------------------------------------------------------------------------------------------------"
|
|
17
|
+
set formatoptions+=cro
|
|
18
|
+
endfunction
|
|
19
|
+
|
|
20
|
+
function! s:insert_license_percent()
|
|
21
|
+
set formatoptions-=cro
|
|
22
|
+
execute "normal! i% --------------------------------------------------------------------------------------------------"
|
|
23
|
+
execute "normal! o% SPDX-License-Identifier: Apache-2.0"
|
|
24
|
+
execute "normal! o% Copyright (C) 2026 Jayesh Badwaik <j.badwaik@fz-juelich.de>"
|
|
25
|
+
execute "normal! o% --------------------------------------------------------------------------------------------------"
|
|
26
|
+
set formatoptions+=cro
|
|
27
|
+
endfunction
|
|
28
|
+
|
|
29
|
+
|
|
30
|
+
function! s:insert_license_quote()
|
|
31
|
+
set formatoptions-=cro
|
|
32
|
+
execute "normal! i\" --------------------------------------------------------------------------------------------------"
|
|
33
|
+
execute "normal! o\" SPDX-License-Identifier: Apache-2.0"
|
|
34
|
+
execute "normal! o\" Copyright (C) 2026 Jayesh Badwaik <j.badwaik@fz-juelich.de>"
|
|
35
|
+
execute "normal! o\" --------------------------------------------------------------------------------------------------"
|
|
36
|
+
set formatoptions+=cro
|
|
37
|
+
endfunction
|
|
38
|
+
|
|
39
|
+
function! s:insert_license_html()
|
|
40
|
+
set formatoptions-=cro
|
|
41
|
+
execute "normal! i<!--"
|
|
42
|
+
execute "normal! o- SPDX-License-Identifier: Apache-2.0"
|
|
43
|
+
execute "normal! o- Copyright (C) 2026 Jayesh Badwaik <j.badwaik@fz-juelich.de>"
|
|
44
|
+
execute "normal! o-->"
|
|
45
|
+
set formatoptions+=cro
|
|
46
|
+
endfunction
|
|
47
|
+
|
|
48
|
+
function! Insert_license_slash()
|
|
49
|
+
execute "normal! O"
|
|
50
|
+
call s:insert_license_cpp()
|
|
51
|
+
endfunction
|
|
52
|
+
|
|
53
|
+
function! Insert_license_hash()
|
|
54
|
+
execute "normal! O"
|
|
55
|
+
call s:insert_license_hash()
|
|
56
|
+
endfunction
|
|
57
|
+
|
|
58
|
+
function! Insert_license_percent()
|
|
59
|
+
execute "normal! O"
|
|
60
|
+
call s:insert_license_percent()
|
|
61
|
+
endfunction
|
|
62
|
+
|
|
63
|
+
function! Insert_license_quote()
|
|
64
|
+
execute "normal! O"
|
|
65
|
+
call s:insert_license_quote()
|
|
66
|
+
endfunction
|
|
67
|
+
|
|
68
|
+
function! Insert_license_html()
|
|
69
|
+
execute "normal! O"
|
|
70
|
+
call s:insert_license_html()
|
|
71
|
+
endfunction
|
|
72
|
+
|
|
73
|
+
autocmd BufNewFile *.{cuh} call <SID>insert_license_slash()
|
|
74
|
+
autocmd BufNewFile *.{cuhpp} call <SID>insert_license_slash()
|
|
75
|
+
autocmd BufNewFile *.{h} call <SID>insert_license_slash()
|
|
76
|
+
autocmd BufNewFile *.{c} call <SID>insert_license_slash()
|
|
77
|
+
autocmd BufNewFile *.{hpp} call <SID>insert_license_slash()
|
|
78
|
+
autocmd BufNewFile *.{cpp} call <SID>insert_license_slash()
|
|
79
|
+
autocmd BufNewFile *.{cu} call <SID>insert_license_slash()
|
|
80
|
+
autocmd BufNewFile *.{ipp} call <SID>insert_license_slash()
|
|
81
|
+
autocmd BufNewFile *.{rs} call <SID>insert_license_slash()
|
|
82
|
+
|
|
83
|
+
autocmd BufNewFile CMakeLists.txt call <SID>insert_license_hash()
|
|
84
|
+
autocmd BufNewFile *.cmake call <SID>insert_license_hash()
|
|
85
|
+
autocmd BufNewFile *.{sh} call <SID>insert_license_hash()
|
|
86
|
+
autocmd BufNewFile *.{py} call <SID>insert_license_hash()
|
|
87
|
+
autocmd BufNewFile *.{toml} call <SID>insert_license_hash()
|
|
88
|
+
autocmd BufNewFile *.{yml} call <SID>insert_license_hash()
|
|
89
|
+
|
|
90
|
+
autocmd BufNewFile *.{md} call <SID>insert_license_html()
|
|
91
|
+
|
|
92
|
+
autocmd BufNewFile *.{tex} call <SID>insert_license_percent()
|
|
93
|
+
autocmd BufNewFile *.{sty} call <SID>insert_license_percent()
|
|
94
|
+
autocmd BufNewFile *.{cls} call <SID>insert_license_percent()
|
|
95
|
+
|
|
96
|
+
" Remove Trailing Whitespace on Save
|
|
97
|
+
autocmd BufWritePre * %s/\s\+$//e
|
|
98
|
+
|
|
99
|
+
" Show trailing whitespace:
|
|
100
|
+
highlight ExtraWhitespace ctermbg=red guibg=red
|
|
101
|
+
autocmd ColorScheme * highlight ExtraWhitespace ctermbg=red guibg=red
|
|
102
|
+
match ExtraWhitespace /\s\+$/
|
|
103
|
+
|
|
104
|
+
function! Insert_header_guard()
|
|
105
|
+
execute "normal! O"
|
|
106
|
+
call s:insert_header_guard()
|
|
107
|
+
endfunction
|
|
108
|
+
|
|
109
|
+
|
|
110
|
+
autocmd BufNewFile *.{cuh} call <SID>insert_header_guard()
|
|
111
|
+
autocmd BufNewFile *.{cuhpp} call <SID>insert_header_guard()
|
|
112
|
+
autocmd BufNewFile *.{h} call <SID>insert_header_guard()
|
|
113
|
+
autocmd BufNewFile *.{hpp} call <SID>insert_header_guard()
|
|
114
|
+
autocmd BufNewFile *.{hip} call <SID>insert_header_guard()
|
|
115
|
+
|
|
116
|
+
" Automatic C / C++ header guards
|
|
117
|
+
function! s:insert_header_guard()
|
|
118
|
+
set formatoptions-=cro
|
|
119
|
+
let gatename_0 = substitute(substitute(toupper(@%), "\\.", "_", "g"), "/", "_", "g")
|
|
120
|
+
let gatename_1 = substitute(gatename_0, "SRC_INCLUDE_", "", "g")
|
|
121
|
+
let gatename_2 = substitute(gatename_1, "TEST_COMMON_INCLUDE_", "", "g")
|
|
122
|
+
let gatename_3 = substitute(gatename_2, "BENCH_COMMON_INCLUDE_", "", "g")
|
|
123
|
+
let gatename = gatename_3
|
|
124
|
+
execute "normal! o#ifndef " . gatename
|
|
125
|
+
execute "normal! o#define " . gatename
|
|
126
|
+
normal! o
|
|
127
|
+
execute "normal! Go#endif // " . gatename
|
|
128
|
+
set formatoptions-=cro
|
|
129
|
+
normal! k
|
|
130
|
+
endfunction
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
Metadata-Version: 2.4
|
|
2
|
+
Name: clusterhop
|
|
3
|
+
Version: 0.1.0
|
|
4
|
+
Summary: A clusterhop Parser and Emitter
|
|
5
|
+
Project-URL: Source, https://ambhora.codes/software/clusterhop
|
|
6
|
+
Author-email: Jayesh Badwaik <j.badwaik@fz-juelich.de>
|
|
7
|
+
License-Expression: Apache-2.0
|
|
8
|
+
Requires-Dist: jsonschema
|
|
9
|
+
Requires-Dist: pexpect
|
|
10
|
+
Requires-Dist: semver
|
|
11
|
+
Description-Content-Type: text/markdown
|
|
12
|
+
|
|
13
|
+
<!--
|
|
14
|
+
- SPDX-License-Identifier: Apache-2.0
|
|
15
|
+
- Copyright (C) 2026 Jayesh Badwaik <j.badwaik@fz-juelich.de>
|
|
16
|
+
-->
|
|
17
|
+
|
|
18
|
+
# clusterhop
|
|
19
|
+
|
|
20
|
+
ClusterHop is CI/CD connector for HPC clusters between GitLab and HPC Clusters. It allows users to
|
|
21
|
+
seamlessly submit jobs from GitLab CI/CD pipelines to HPC clusters, monitor their status, and
|
|
22
|
+
retrieve results back to GitLab.
|
|
@@ -0,0 +1,91 @@
|
|
|
1
|
+
# --------------------------------------------------------------------------------------------------
|
|
2
|
+
# SPDX-License-Identifier: Apache-2.0
|
|
3
|
+
# Copyright (C) 2026 Jayesh Badwaik <j.badwaik@fz-juelich.de>
|
|
4
|
+
# --------------------------------------------------------------------------------------------------
|
|
5
|
+
|
|
6
|
+
[project]
|
|
7
|
+
name = "clusterhop"
|
|
8
|
+
dynamic = ["version"]
|
|
9
|
+
description = 'A clusterhop Parser and Emitter'
|
|
10
|
+
readme = "readme.md"
|
|
11
|
+
license = "Apache-2.0"
|
|
12
|
+
authors = [
|
|
13
|
+
{ name = "Jayesh Badwaik", email = "j.badwaik@fz-juelich.de" },
|
|
14
|
+
]
|
|
15
|
+
dependencies = [
|
|
16
|
+
"semver",
|
|
17
|
+
"pexpect",
|
|
18
|
+
"jsonschema"
|
|
19
|
+
]
|
|
20
|
+
|
|
21
|
+
[project.urls]
|
|
22
|
+
Source = "https://ambhora.codes/software/clusterhop"
|
|
23
|
+
|
|
24
|
+
[project.scripts]
|
|
25
|
+
clusterhop = "clusterhop.cli:main"
|
|
26
|
+
|
|
27
|
+
# --------------------------------------------------------------------------------------------------
|
|
28
|
+
# Hatch configuration
|
|
29
|
+
# --------------------------------------------------------------------------------------------------
|
|
30
|
+
[tool.hatch.version]
|
|
31
|
+
path = "src/clusterhop/metadata.py"
|
|
32
|
+
|
|
33
|
+
[build-system]
|
|
34
|
+
requires = ["hatchling"]
|
|
35
|
+
build-backend = "hatchling.build"
|
|
36
|
+
|
|
37
|
+
[tool.hatch.build.targets.wheel]
|
|
38
|
+
packages = ["src/clusterhop"]
|
|
39
|
+
|
|
40
|
+
[tool.hatch.build.targets.wheel.shared-data]
|
|
41
|
+
"share"="share"
|
|
42
|
+
|
|
43
|
+
# --------------------------------------------------------------------------------------------------
|
|
44
|
+
# PyTest configuration
|
|
45
|
+
# --------------------------------------------------------------------------------------------------
|
|
46
|
+
[tool.pytest.ini_options]
|
|
47
|
+
pythonpath = ["src"]
|
|
48
|
+
addopts = "--cov --cov-report term-missing --cov-fail-under=10"
|
|
49
|
+
|
|
50
|
+
[tool.black]
|
|
51
|
+
line-length = 100
|
|
52
|
+
|
|
53
|
+
[tool.hatch.envs.test]
|
|
54
|
+
dependencies = [
|
|
55
|
+
"pytest>=6.3",
|
|
56
|
+
"pytest-cov"
|
|
57
|
+
]
|
|
58
|
+
|
|
59
|
+
|
|
60
|
+
[tool.hatch.envs.mypy]
|
|
61
|
+
dependencies = [
|
|
62
|
+
"types-PyYAML",
|
|
63
|
+
"mypy",
|
|
64
|
+
"semver",
|
|
65
|
+
"pytest",
|
|
66
|
+
]
|
|
67
|
+
|
|
68
|
+
[tool.hatch.envs.doc]
|
|
69
|
+
dependencies = [
|
|
70
|
+
"mkdocs-material",
|
|
71
|
+
"mkdocstrings[python]",
|
|
72
|
+
"mkdocs-awesome-nav",
|
|
73
|
+
"mkdocs-add-number-plugin",
|
|
74
|
+
"gitpython",
|
|
75
|
+
"pyyaml",
|
|
76
|
+
"pymdown-extensions",
|
|
77
|
+
"mkdocs-gen-files",
|
|
78
|
+
"mkdocs-awesome-pages-plugin",
|
|
79
|
+
"mkdocs-macros-plugin",
|
|
80
|
+
"mkdocs-pagetree-plugin",
|
|
81
|
+
"mkdocs-git-authors-plugin",
|
|
82
|
+
"mkdocs-git-revision-date-localized-plugin"
|
|
83
|
+
]
|
|
84
|
+
|
|
85
|
+
|
|
86
|
+
[tool.hatch.envs.format]
|
|
87
|
+
dependencies = [
|
|
88
|
+
"black"
|
|
89
|
+
]
|
|
90
|
+
|
|
91
|
+
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
<!--
|
|
2
|
+
- SPDX-License-Identifier: Apache-2.0
|
|
3
|
+
- Copyright (C) 2026 Jayesh Badwaik <j.badwaik@fz-juelich.de>
|
|
4
|
+
-->
|
|
5
|
+
|
|
6
|
+
# clusterhop
|
|
7
|
+
|
|
8
|
+
ClusterHop is CI/CD connector for HPC clusters between GitLab and HPC Clusters. It allows users to
|
|
9
|
+
seamlessly submit jobs from GitLab CI/CD pipelines to HPC clusters, monitor their status, and
|
|
10
|
+
retrieve results back to GitLab.
|
|
File without changes
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
# --------------------------------------------------------------------------------------------------
|
|
2
|
+
# SPDX-License-Identifier: Apache-2.0
|
|
3
|
+
# Copyright (C) 2026 Jayesh Badwaik <j.badwaik@fz-juelich.de>
|
|
4
|
+
# --------------------------------------------------------------------------------------------------
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
# --------------------------------------------------------------------------------------------------
|
|
2
|
+
# SPDX-License-Identifier: Apache-2.0
|
|
3
|
+
# Copyright (C) 2026 Jayesh Badwaik <j.badwaik@fz-juelich.de>
|
|
4
|
+
# --------------------------------------------------------------------------------------------------
|
|
5
|
+
|
|
6
|
+
import sys
|
|
7
|
+
import json
|
|
8
|
+
|
|
9
|
+
def main():
|
|
10
|
+
print(json.dumps({"arguments": sys.argv}))
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
# --------------------------------------------------------------------------------------------------
|
|
2
|
+
# SPDX-License-Identifier: Apache-2.0
|
|
3
|
+
# Copyright (C) 2026 Jayesh Badwaik <j.badwaik@fz-juelich.de>
|
|
4
|
+
# --------------------------------------------------------------------------------------------------
|
|
5
|
+
|
|
6
|
+
__version__ = "0.1.0"
|