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.
Files changed (48) hide show
  1. {scisoftdev_tmp_hipop-1.0.5 → scisoftdev_tmp_hipop-1.0.7}/.github/workflows/deploy.yaml +22 -0
  2. {scisoftdev_tmp_hipop-1.0.5 → scisoftdev_tmp_hipop-1.0.7}/PKG-INFO +1 -1
  3. scisoftdev_tmp_hipop-1.0.7/VERSION.txt +1 -0
  4. {scisoftdev_tmp_hipop-1.0.5 → scisoftdev_tmp_hipop-1.0.7}/pyproject.toml +1 -1
  5. scisoftdev_tmp_hipop-1.0.5/VERSION.txt +0 -1
  6. scisoftdev_tmp_hipop-1.0.5/bump_version.py +0 -48
  7. {scisoftdev_tmp_hipop-1.0.5 → scisoftdev_tmp_hipop-1.0.7}/.github/workflows/ci.yaml +0 -0
  8. {scisoftdev_tmp_hipop-1.0.5 → scisoftdev_tmp_hipop-1.0.7}/.gitignore +0 -0
  9. {scisoftdev_tmp_hipop-1.0.5 → scisoftdev_tmp_hipop-1.0.7}/CMakeLists.txt +0 -0
  10. {scisoftdev_tmp_hipop-1.0.5 → scisoftdev_tmp_hipop-1.0.7}/LICENSE +0 -0
  11. {scisoftdev_tmp_hipop-1.0.5 → scisoftdev_tmp_hipop-1.0.7}/README.md +0 -0
  12. {scisoftdev_tmp_hipop-1.0.5 → scisoftdev_tmp_hipop-1.0.7}/conda/env.yaml +0 -0
  13. {scisoftdev_tmp_hipop-1.0.5 → scisoftdev_tmp_hipop-1.0.7}/cpp/CMakeLists.txt +0 -0
  14. {scisoftdev_tmp_hipop-1.0.5 → scisoftdev_tmp_hipop-1.0.7}/cpp/cmake/HipopConfig.cmake.in +0 -0
  15. {scisoftdev_tmp_hipop-1.0.5 → scisoftdev_tmp_hipop-1.0.7}/cpp/examples/CMakeLists.txt +0 -0
  16. {scisoftdev_tmp_hipop-1.0.5 → scisoftdev_tmp_hipop-1.0.7}/cpp/examples/ParallelKShortestPath.cpp +0 -0
  17. {scisoftdev_tmp_hipop-1.0.5 → scisoftdev_tmp_hipop-1.0.7}/cpp/include/hipop/create.h +0 -0
  18. {scisoftdev_tmp_hipop-1.0.5 → scisoftdev_tmp_hipop-1.0.7}/cpp/include/hipop/graph.h +0 -0
  19. {scisoftdev_tmp_hipop-1.0.5 → scisoftdev_tmp_hipop-1.0.7}/cpp/include/hipop/shortest_path.h +0 -0
  20. {scisoftdev_tmp_hipop-1.0.5 → scisoftdev_tmp_hipop-1.0.7}/cpp/src/create.cpp +0 -0
  21. {scisoftdev_tmp_hipop-1.0.5 → scisoftdev_tmp_hipop-1.0.7}/cpp/src/graph.cpp +0 -0
  22. {scisoftdev_tmp_hipop-1.0.5 → scisoftdev_tmp_hipop-1.0.7}/cpp/src/shortest_path.cpp +0 -0
  23. {scisoftdev_tmp_hipop-1.0.5 → scisoftdev_tmp_hipop-1.0.7}/cpp/tests/CMakeLists.txt +0 -0
  24. {scisoftdev_tmp_hipop-1.0.5 → scisoftdev_tmp_hipop-1.0.7}/cpp/tests/helpers.h +0 -0
  25. {scisoftdev_tmp_hipop-1.0.5 → scisoftdev_tmp_hipop-1.0.7}/cpp/tests/testCopyGraph.cpp +0 -0
  26. {scisoftdev_tmp_hipop-1.0.5 → scisoftdev_tmp_hipop-1.0.7}/cpp/tests/testDijkstra1.cpp +0 -0
  27. {scisoftdev_tmp_hipop-1.0.5 → scisoftdev_tmp_hipop-1.0.7}/cpp/tests/testDijkstra2.cpp +0 -0
  28. {scisoftdev_tmp_hipop-1.0.5 → scisoftdev_tmp_hipop-1.0.7}/cpp/tests/testGraph.cpp +0 -0
  29. {scisoftdev_tmp_hipop-1.0.5 → scisoftdev_tmp_hipop-1.0.7}/cpp/tests/testGraphMerge.cpp +0 -0
  30. {scisoftdev_tmp_hipop-1.0.5 → scisoftdev_tmp_hipop-1.0.7}/cpp/tests/testKShortestPath.cpp +0 -0
  31. {scisoftdev_tmp_hipop-1.0.5 → scisoftdev_tmp_hipop-1.0.7}/cpp/tests/testManhattan.cpp +0 -0
  32. {scisoftdev_tmp_hipop-1.0.5 → scisoftdev_tmp_hipop-1.0.7}/cpp/tests/testYenKShortestPath.cpp +0 -0
  33. {scisoftdev_tmp_hipop-1.0.5 → scisoftdev_tmp_hipop-1.0.7}/cpp/tests/testparallelKShortestPath.cpp +0 -0
  34. {scisoftdev_tmp_hipop-1.0.5 → scisoftdev_tmp_hipop-1.0.7}/pytest.toml +0 -0
  35. {scisoftdev_tmp_hipop-1.0.5 → scisoftdev_tmp_hipop-1.0.7}/python/CMakeLists.txt +0 -0
  36. {scisoftdev_tmp_hipop-1.0.5 → scisoftdev_tmp_hipop-1.0.7}/python/examples/UpdateCosts.py +0 -0
  37. {scisoftdev_tmp_hipop-1.0.5 → scisoftdev_tmp_hipop-1.0.7}/python/examples/ksp.py +0 -0
  38. {scisoftdev_tmp_hipop-1.0.5 → scisoftdev_tmp_hipop-1.0.7}/python/examples/merge.py +0 -0
  39. {scisoftdev_tmp_hipop-1.0.5 → scisoftdev_tmp_hipop-1.0.7}/python/examples/test.py +0 -0
  40. {scisoftdev_tmp_hipop-1.0.5 → scisoftdev_tmp_hipop-1.0.7}/python/hipop/__init__.py.template +0 -0
  41. {scisoftdev_tmp_hipop-1.0.5 → scisoftdev_tmp_hipop-1.0.7}/python/hipop/cpp/graph.cpp +0 -0
  42. {scisoftdev_tmp_hipop-1.0.5 → scisoftdev_tmp_hipop-1.0.7}/python/hipop/cpp/main.cpp +0 -0
  43. {scisoftdev_tmp_hipop-1.0.5 → scisoftdev_tmp_hipop-1.0.7}/python/hipop/cpp/shortest_path.cpp +0 -0
  44. {scisoftdev_tmp_hipop-1.0.5 → scisoftdev_tmp_hipop-1.0.7}/python/hipop/graph.py +0 -0
  45. {scisoftdev_tmp_hipop-1.0.5 → scisoftdev_tmp_hipop-1.0.7}/python/hipop/render.py +0 -0
  46. {scisoftdev_tmp_hipop-1.0.5 → scisoftdev_tmp_hipop-1.0.7}/python/hipop/shortest_path.py +0 -0
  47. {scisoftdev_tmp_hipop-1.0.5 → scisoftdev_tmp_hipop-1.0.7}/python/tests/test_Graph.py +0 -0
  48. {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'
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: scisoftdev-tmp-HiPOP
3
- Version: 1.0.5
3
+ Version: 1.0.7
4
4
  Summary: High Performance Optimal Path module
5
5
  Keywords: graph,graph-theory,shortest-path,dijkstra
6
6
  License-Expression: LGPL-3.0-only
@@ -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)