scisoftdev-tmp-HiPOP 1.0.5__tar.gz → 1.0.7__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.
- {scisoftdev_tmp_hipop-1.0.5 → scisoftdev_tmp_hipop-1.0.7}/.github/workflows/deploy.yaml +22 -0
- {scisoftdev_tmp_hipop-1.0.5 → scisoftdev_tmp_hipop-1.0.7}/PKG-INFO +1 -1
- scisoftdev_tmp_hipop-1.0.7/VERSION.txt +1 -0
- {scisoftdev_tmp_hipop-1.0.5 → scisoftdev_tmp_hipop-1.0.7}/pyproject.toml +1 -1
- scisoftdev_tmp_hipop-1.0.5/VERSION.txt +0 -1
- scisoftdev_tmp_hipop-1.0.5/bump_version.py +0 -48
- {scisoftdev_tmp_hipop-1.0.5 → scisoftdev_tmp_hipop-1.0.7}/.github/workflows/ci.yaml +0 -0
- {scisoftdev_tmp_hipop-1.0.5 → scisoftdev_tmp_hipop-1.0.7}/.gitignore +0 -0
- {scisoftdev_tmp_hipop-1.0.5 → scisoftdev_tmp_hipop-1.0.7}/CMakeLists.txt +0 -0
- {scisoftdev_tmp_hipop-1.0.5 → scisoftdev_tmp_hipop-1.0.7}/LICENSE +0 -0
- {scisoftdev_tmp_hipop-1.0.5 → scisoftdev_tmp_hipop-1.0.7}/README.md +0 -0
- {scisoftdev_tmp_hipop-1.0.5 → scisoftdev_tmp_hipop-1.0.7}/conda/env.yaml +0 -0
- {scisoftdev_tmp_hipop-1.0.5 → scisoftdev_tmp_hipop-1.0.7}/cpp/CMakeLists.txt +0 -0
- {scisoftdev_tmp_hipop-1.0.5 → scisoftdev_tmp_hipop-1.0.7}/cpp/cmake/HipopConfig.cmake.in +0 -0
- {scisoftdev_tmp_hipop-1.0.5 → scisoftdev_tmp_hipop-1.0.7}/cpp/examples/CMakeLists.txt +0 -0
- {scisoftdev_tmp_hipop-1.0.5 → scisoftdev_tmp_hipop-1.0.7}/cpp/examples/ParallelKShortestPath.cpp +0 -0
- {scisoftdev_tmp_hipop-1.0.5 → scisoftdev_tmp_hipop-1.0.7}/cpp/include/hipop/create.h +0 -0
- {scisoftdev_tmp_hipop-1.0.5 → scisoftdev_tmp_hipop-1.0.7}/cpp/include/hipop/graph.h +0 -0
- {scisoftdev_tmp_hipop-1.0.5 → scisoftdev_tmp_hipop-1.0.7}/cpp/include/hipop/shortest_path.h +0 -0
- {scisoftdev_tmp_hipop-1.0.5 → scisoftdev_tmp_hipop-1.0.7}/cpp/src/create.cpp +0 -0
- {scisoftdev_tmp_hipop-1.0.5 → scisoftdev_tmp_hipop-1.0.7}/cpp/src/graph.cpp +0 -0
- {scisoftdev_tmp_hipop-1.0.5 → scisoftdev_tmp_hipop-1.0.7}/cpp/src/shortest_path.cpp +0 -0
- {scisoftdev_tmp_hipop-1.0.5 → scisoftdev_tmp_hipop-1.0.7}/cpp/tests/CMakeLists.txt +0 -0
- {scisoftdev_tmp_hipop-1.0.5 → scisoftdev_tmp_hipop-1.0.7}/cpp/tests/helpers.h +0 -0
- {scisoftdev_tmp_hipop-1.0.5 → scisoftdev_tmp_hipop-1.0.7}/cpp/tests/testCopyGraph.cpp +0 -0
- {scisoftdev_tmp_hipop-1.0.5 → scisoftdev_tmp_hipop-1.0.7}/cpp/tests/testDijkstra1.cpp +0 -0
- {scisoftdev_tmp_hipop-1.0.5 → scisoftdev_tmp_hipop-1.0.7}/cpp/tests/testDijkstra2.cpp +0 -0
- {scisoftdev_tmp_hipop-1.0.5 → scisoftdev_tmp_hipop-1.0.7}/cpp/tests/testGraph.cpp +0 -0
- {scisoftdev_tmp_hipop-1.0.5 → scisoftdev_tmp_hipop-1.0.7}/cpp/tests/testGraphMerge.cpp +0 -0
- {scisoftdev_tmp_hipop-1.0.5 → scisoftdev_tmp_hipop-1.0.7}/cpp/tests/testKShortestPath.cpp +0 -0
- {scisoftdev_tmp_hipop-1.0.5 → scisoftdev_tmp_hipop-1.0.7}/cpp/tests/testManhattan.cpp +0 -0
- {scisoftdev_tmp_hipop-1.0.5 → scisoftdev_tmp_hipop-1.0.7}/cpp/tests/testYenKShortestPath.cpp +0 -0
- {scisoftdev_tmp_hipop-1.0.5 → scisoftdev_tmp_hipop-1.0.7}/cpp/tests/testparallelKShortestPath.cpp +0 -0
- {scisoftdev_tmp_hipop-1.0.5 → scisoftdev_tmp_hipop-1.0.7}/pytest.toml +0 -0
- {scisoftdev_tmp_hipop-1.0.5 → scisoftdev_tmp_hipop-1.0.7}/python/CMakeLists.txt +0 -0
- {scisoftdev_tmp_hipop-1.0.5 → scisoftdev_tmp_hipop-1.0.7}/python/examples/UpdateCosts.py +0 -0
- {scisoftdev_tmp_hipop-1.0.5 → scisoftdev_tmp_hipop-1.0.7}/python/examples/ksp.py +0 -0
- {scisoftdev_tmp_hipop-1.0.5 → scisoftdev_tmp_hipop-1.0.7}/python/examples/merge.py +0 -0
- {scisoftdev_tmp_hipop-1.0.5 → scisoftdev_tmp_hipop-1.0.7}/python/examples/test.py +0 -0
- {scisoftdev_tmp_hipop-1.0.5 → scisoftdev_tmp_hipop-1.0.7}/python/hipop/__init__.py.template +0 -0
- {scisoftdev_tmp_hipop-1.0.5 → scisoftdev_tmp_hipop-1.0.7}/python/hipop/cpp/graph.cpp +0 -0
- {scisoftdev_tmp_hipop-1.0.5 → scisoftdev_tmp_hipop-1.0.7}/python/hipop/cpp/main.cpp +0 -0
- {scisoftdev_tmp_hipop-1.0.5 → scisoftdev_tmp_hipop-1.0.7}/python/hipop/cpp/shortest_path.cpp +0 -0
- {scisoftdev_tmp_hipop-1.0.5 → scisoftdev_tmp_hipop-1.0.7}/python/hipop/graph.py +0 -0
- {scisoftdev_tmp_hipop-1.0.5 → scisoftdev_tmp_hipop-1.0.7}/python/hipop/render.py +0 -0
- {scisoftdev_tmp_hipop-1.0.5 → scisoftdev_tmp_hipop-1.0.7}/python/hipop/shortest_path.py +0 -0
- {scisoftdev_tmp_hipop-1.0.5 → scisoftdev_tmp_hipop-1.0.7}/python/tests/test_Graph.py +0 -0
- {scisoftdev_tmp_hipop-1.0.5 → scisoftdev_tmp_hipop-1.0.7}/python/tests/test_VersionConsistency.py +0 -0
|
@@ -8,9 +8,28 @@ on:
|
|
|
8
8
|
|
|
9
9
|
jobs:
|
|
10
10
|
|
|
11
|
+
check-version:
|
|
12
|
+
name: Check git tag
|
|
13
|
+
runs-on: ubuntu-latest
|
|
14
|
+
|
|
15
|
+
steps:
|
|
16
|
+
- uses: actions/checkout@v7
|
|
17
|
+
|
|
18
|
+
- name: Ensure git tag corresponds to project version
|
|
19
|
+
run: |
|
|
20
|
+
project_version="v$(tr -d '[:space:]' < VERSION.txt)"
|
|
21
|
+
echo "Git tag = [$GITHUB_REF_NAME]"
|
|
22
|
+
echo "Project version = [$project_version]"
|
|
23
|
+
if [ "$GITHUB_REF_NAME" != "$project_version" ]; then
|
|
24
|
+
echo "Mismatch between git tag and project version (VERSION.txt), aborting deployment..."
|
|
25
|
+
exit 1
|
|
26
|
+
fi
|
|
27
|
+
|
|
11
28
|
build-wheels:
|
|
12
29
|
name: Build wheels (${{ matrix.os }})
|
|
13
30
|
runs-on: ${{ matrix.os }}
|
|
31
|
+
needs:
|
|
32
|
+
- check-version
|
|
14
33
|
|
|
15
34
|
strategy:
|
|
16
35
|
fail-fast: false
|
|
@@ -42,6 +61,8 @@ jobs:
|
|
|
42
61
|
build-sdist:
|
|
43
62
|
name: Build source distribution
|
|
44
63
|
runs-on: ubuntu-latest
|
|
64
|
+
needs:
|
|
65
|
+
- check-version
|
|
45
66
|
|
|
46
67
|
steps:
|
|
47
68
|
- uses: actions/checkout@v7
|
|
@@ -64,6 +85,7 @@ jobs:
|
|
|
64
85
|
name: Publish to PyPI
|
|
65
86
|
runs-on: ubuntu-latest
|
|
66
87
|
needs:
|
|
88
|
+
- check-version
|
|
67
89
|
- build-wheels
|
|
68
90
|
- build-sdist
|
|
69
91
|
# TODO keep? if: github.event_name == 'release'
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
1.0.7
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
[project]
|
|
2
2
|
name = "scisoftdev-tmp-HiPOP" # TODO Project name (and VERSION !!) modified to test deployment, to restore.
|
|
3
|
-
dynamic = ["version"]
|
|
3
|
+
dynamic = ["version"] # Version number is defined in file VERSION.txt.
|
|
4
4
|
description = "High Performance Optimal Path module"
|
|
5
5
|
readme = "README.md"
|
|
6
6
|
requires-python = ">= 3.10"
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
1.0.5
|
|
@@ -1,48 +0,0 @@
|
|
|
1
|
-
import re
|
|
2
|
-
from pathlib import Path
|
|
3
|
-
import argparse
|
|
4
|
-
|
|
5
|
-
PATTERN_VERSION = r"\d+\.\d+\.\d+"
|
|
6
|
-
|
|
7
|
-
files = [("cpp/CMakeLists.txt", re.compile(rf"(project\(HiPOP VERSION )({PATTERN_VERSION})(\))")),
|
|
8
|
-
("python/hipop/__init__.py", re.compile(rf'(__version__ = ")({PATTERN_VERSION})(")')),
|
|
9
|
-
("conda/recipe/meta.yaml", re.compile(r'({% set version = ")('+PATTERN_VERSION+r')(" %})'))]
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
def read(file):
|
|
13
|
-
with open(file, "r") as f:
|
|
14
|
-
contents = f.read()
|
|
15
|
-
return contents
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
def write(file, new_contents):
|
|
19
|
-
with open(file, "w") as f:
|
|
20
|
-
f.write(new_contents)
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
cwd = Path(__file__).parent.resolve()
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
def show_diff(contents, new_contents):
|
|
27
|
-
for i, (lc, lnc) in enumerate(zip(contents.split("\n"), new_contents.split("\n"))):
|
|
28
|
-
if lc != lnc:
|
|
29
|
-
print(f"\tline {i}: {lc} -> {lnc}")
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
if __name__ == "__main__":
|
|
33
|
-
import argparse
|
|
34
|
-
parser = argparse.ArgumentParser()
|
|
35
|
-
parser.add_argument('MAJOR', help='major version number', type=int)
|
|
36
|
-
parser.add_argument('MINOR', help='minor version number', type=int)
|
|
37
|
-
parser.add_argument('PATCH', help='patch version number', type=int)
|
|
38
|
-
args = parser.parse_args()
|
|
39
|
-
|
|
40
|
-
new_version = f"{args.MAJOR}.{args.MINOR}.{args.PATCH}"
|
|
41
|
-
|
|
42
|
-
for f, pattern in files:
|
|
43
|
-
print("Bumping version in file:", f)
|
|
44
|
-
f_path = cwd.joinpath(f)
|
|
45
|
-
contents = read(f_path)
|
|
46
|
-
new_contents = pattern.sub(f"\g<1>{new_version}\g<3>", contents, count=1)
|
|
47
|
-
show_diff(contents, new_contents)
|
|
48
|
-
write(f_path, new_contents)
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{scisoftdev_tmp_hipop-1.0.5 → scisoftdev_tmp_hipop-1.0.7}/cpp/examples/ParallelKShortestPath.cpp
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{scisoftdev_tmp_hipop-1.0.5 → scisoftdev_tmp_hipop-1.0.7}/cpp/tests/testYenKShortestPath.cpp
RENAMED
|
File without changes
|
{scisoftdev_tmp_hipop-1.0.5 → scisoftdev_tmp_hipop-1.0.7}/cpp/tests/testparallelKShortestPath.cpp
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{scisoftdev_tmp_hipop-1.0.5 → scisoftdev_tmp_hipop-1.0.7}/python/hipop/cpp/shortest_path.cpp
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{scisoftdev_tmp_hipop-1.0.5 → scisoftdev_tmp_hipop-1.0.7}/python/tests/test_VersionConsistency.py
RENAMED
|
File without changes
|