alibuild 1.17.28__tar.gz → 1.17.30__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 (93) hide show
  1. {alibuild-1.17.28 → alibuild-1.17.30}/PKG-INFO +1 -1
  2. {alibuild-1.17.28 → alibuild-1.17.30}/alibuild.egg-info/PKG-INFO +1 -1
  3. {alibuild-1.17.28 → alibuild-1.17.30}/alibuild_helpers/_version.py +3 -3
  4. {alibuild-1.17.28 → alibuild-1.17.30}/alibuild_helpers/build.py +1 -1
  5. {alibuild-1.17.28 → alibuild-1.17.30}/alibuild_helpers/git.py +1 -1
  6. {alibuild-1.17.28 → alibuild-1.17.30}/alibuild_helpers/init.py +2 -1
  7. {alibuild-1.17.28 → alibuild-1.17.30}/alibuild_helpers/sl.py +16 -3
  8. {alibuild-1.17.28 → alibuild-1.17.30}/tests/test_build.py +1 -1
  9. {alibuild-1.17.28 → alibuild-1.17.30}/tests/test_workarea.py +1 -1
  10. {alibuild-1.17.28 → alibuild-1.17.30}/.flake8 +0 -0
  11. {alibuild-1.17.28 → alibuild-1.17.30}/.github/workflows/documentation.yml +0 -0
  12. {alibuild-1.17.28 → alibuild-1.17.30}/.github/workflows/pr-check.yml +0 -0
  13. {alibuild-1.17.28 → alibuild-1.17.30}/.github/workflows/release.yml +0 -0
  14. {alibuild-1.17.28 → alibuild-1.17.30}/.gitignore +0 -0
  15. {alibuild-1.17.28 → alibuild-1.17.30}/.pylintrc +0 -0
  16. {alibuild-1.17.28 → alibuild-1.17.30}/ANALYTICS.md +0 -0
  17. {alibuild-1.17.28 → alibuild-1.17.30}/DESIGN.md +0 -0
  18. {alibuild-1.17.28 → alibuild-1.17.30}/LICENSE.md +0 -0
  19. {alibuild-1.17.28 → alibuild-1.17.30}/PACKAGING.md +0 -0
  20. {alibuild-1.17.28 → alibuild-1.17.30}/README.rst +0 -0
  21. {alibuild-1.17.28 → alibuild-1.17.30}/alfaBuild +0 -0
  22. {alibuild-1.17.28 → alibuild-1.17.30}/aliBuild +0 -0
  23. {alibuild-1.17.28 → alibuild-1.17.30}/aliDeps +0 -0
  24. {alibuild-1.17.28 → alibuild-1.17.30}/aliDoctor +0 -0
  25. {alibuild-1.17.28 → alibuild-1.17.30}/alibuild.egg-info/SOURCES.txt +0 -0
  26. {alibuild-1.17.28 → alibuild-1.17.30}/alibuild.egg-info/dependency_links.txt +0 -0
  27. {alibuild-1.17.28 → alibuild-1.17.30}/alibuild.egg-info/requires.txt +0 -0
  28. {alibuild-1.17.28 → alibuild-1.17.30}/alibuild.egg-info/top_level.txt +0 -0
  29. {alibuild-1.17.28 → alibuild-1.17.30}/alibuild_helpers/__init__.py +0 -0
  30. {alibuild-1.17.28 → alibuild-1.17.30}/alibuild_helpers/analytics.py +0 -0
  31. {alibuild-1.17.28 → alibuild-1.17.30}/alibuild_helpers/args.py +0 -0
  32. {alibuild-1.17.28 → alibuild-1.17.30}/alibuild_helpers/build_template.sh +0 -0
  33. {alibuild-1.17.28 → alibuild-1.17.30}/alibuild_helpers/clean.py +0 -0
  34. {alibuild-1.17.28 → alibuild-1.17.30}/alibuild_helpers/cmd.py +0 -0
  35. {alibuild-1.17.28 → alibuild-1.17.30}/alibuild_helpers/deps.py +0 -0
  36. {alibuild-1.17.28 → alibuild-1.17.30}/alibuild_helpers/doctor.py +0 -0
  37. {alibuild-1.17.28 → alibuild-1.17.30}/alibuild_helpers/log.py +0 -0
  38. {alibuild-1.17.28 → alibuild-1.17.30}/alibuild_helpers/scm.py +0 -0
  39. {alibuild-1.17.28 → alibuild-1.17.30}/alibuild_helpers/sync.py +0 -0
  40. {alibuild-1.17.28 → alibuild-1.17.30}/alibuild_helpers/templating_plugin.py +0 -0
  41. {alibuild-1.17.28 → alibuild-1.17.30}/alibuild_helpers/utilities.py +0 -0
  42. {alibuild-1.17.28 → alibuild-1.17.30}/alibuild_helpers/workarea.py +0 -0
  43. {alibuild-1.17.28 → alibuild-1.17.30}/alienv +0 -0
  44. {alibuild-1.17.28 → alibuild-1.17.30}/codecov.yml +0 -0
  45. {alibuild-1.17.28 → alibuild-1.17.30}/debian/changelog +0 -0
  46. {alibuild-1.17.28 → alibuild-1.17.30}/debian/compat +0 -0
  47. {alibuild-1.17.28 → alibuild-1.17.30}/debian/control +0 -0
  48. {alibuild-1.17.28 → alibuild-1.17.30}/debian/copyright +0 -0
  49. {alibuild-1.17.28 → alibuild-1.17.30}/debian/files +0 -0
  50. {alibuild-1.17.28 → alibuild-1.17.30}/debian/rules +0 -0
  51. {alibuild-1.17.28 → alibuild-1.17.30}/docs/README.md +0 -0
  52. {alibuild-1.17.28 → alibuild-1.17.30}/docs/SUPPORT +0 -0
  53. {alibuild-1.17.28 → alibuild-1.17.30}/docs/docs/alice_logo.png +0 -0
  54. {alibuild-1.17.28 → alibuild-1.17.30}/docs/docs/deps.png +0 -0
  55. {alibuild-1.17.28 → alibuild-1.17.30}/docs/docs/index.md +0 -0
  56. {alibuild-1.17.28 → alibuild-1.17.30}/docs/docs/quick.md +0 -0
  57. {alibuild-1.17.28 → alibuild-1.17.30}/docs/docs/reference.md +0 -0
  58. {alibuild-1.17.28 → alibuild-1.17.30}/docs/docs/stylesheets/extra.css +0 -0
  59. {alibuild-1.17.28 → alibuild-1.17.30}/docs/docs/troubleshooting.md +0 -0
  60. {alibuild-1.17.28 → alibuild-1.17.30}/docs/docs/user.md +0 -0
  61. {alibuild-1.17.28 → alibuild-1.17.30}/docs/mkdocs.yml +0 -0
  62. {alibuild-1.17.28 → alibuild-1.17.30}/pb +0 -0
  63. {alibuild-1.17.28 → alibuild-1.17.30}/pyproject.toml +0 -0
  64. {alibuild-1.17.28 → alibuild-1.17.30}/requirements.txt +0 -0
  65. {alibuild-1.17.28 → alibuild-1.17.30}/setup.cfg +0 -0
  66. {alibuild-1.17.28 → alibuild-1.17.30}/setup.py +0 -0
  67. {alibuild-1.17.28 → alibuild-1.17.30}/templates/alibuild_to_please.jnj +0 -0
  68. {alibuild-1.17.28 → alibuild-1.17.30}/tests/test_analytics.py +0 -0
  69. {alibuild-1.17.28 → alibuild-1.17.30}/tests/test_args.py +0 -0
  70. {alibuild-1.17.28 → alibuild-1.17.30}/tests/test_clean.py +0 -0
  71. {alibuild-1.17.28 → alibuild-1.17.30}/tests/test_cmd.py +0 -0
  72. {alibuild-1.17.28 → alibuild-1.17.30}/tests/test_deps.py +0 -0
  73. {alibuild-1.17.28 → alibuild-1.17.30}/tests/test_doctor.py +0 -0
  74. {alibuild-1.17.28 → alibuild-1.17.30}/tests/test_git.py +0 -0
  75. {alibuild-1.17.28 → alibuild-1.17.30}/tests/test_hashing.py +0 -0
  76. {alibuild-1.17.28 → alibuild-1.17.30}/tests/test_init.py +0 -0
  77. {alibuild-1.17.28 → alibuild-1.17.30}/tests/test_log.py +0 -0
  78. {alibuild-1.17.28 → alibuild-1.17.30}/tests/test_packagelist.py +0 -0
  79. {alibuild-1.17.28 → alibuild-1.17.30}/tests/test_parseRecipe.py +0 -0
  80. {alibuild-1.17.28 → alibuild-1.17.30}/tests/test_sync.py +0 -0
  81. {alibuild-1.17.28 → alibuild-1.17.30}/tests/test_utilities.py +0 -0
  82. {alibuild-1.17.28 → alibuild-1.17.30}/tests/testdist/broken1.sh +0 -0
  83. {alibuild-1.17.28 → alibuild-1.17.30}/tests/testdist/broken2.sh +0 -0
  84. {alibuild-1.17.28 → alibuild-1.17.30}/tests/testdist/broken3.sh +0 -0
  85. {alibuild-1.17.28 → alibuild-1.17.30}/tests/testdist/broken4.sh +0 -0
  86. {alibuild-1.17.28 → alibuild-1.17.30}/tests/testdist/broken5.sh +0 -0
  87. {alibuild-1.17.28 → alibuild-1.17.30}/tests/testdist/broken6.sh +0 -0
  88. {alibuild-1.17.28 → alibuild-1.17.30}/tests/testdist/broken7.sh +0 -0
  89. {alibuild-1.17.28 → alibuild-1.17.30}/tests/testdist/clobber-initdotsh.sh +0 -0
  90. {alibuild-1.17.28 → alibuild-1.17.30}/tests/testdist/defaults-o2.sh +0 -0
  91. {alibuild-1.17.28 → alibuild-1.17.30}/tests/testdist/delete-etc.sh +0 -0
  92. {alibuild-1.17.28 → alibuild-1.17.30}/tests/testdist/tracking-env.sh +0 -0
  93. {alibuild-1.17.28 → alibuild-1.17.30}/tox.ini +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: alibuild
3
- Version: 1.17.28
3
+ Version: 1.17.30
4
4
  Summary: ALICE Build Tool
5
5
  Home-page: https://alisw.github.io/alibuild
6
6
  Author: Giulio Eulisse
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: alibuild
3
- Version: 1.17.28
3
+ Version: 1.17.30
4
4
  Summary: ALICE Build Tool
5
5
  Home-page: https://alisw.github.io/alibuild
6
6
  Author: Giulio Eulisse
@@ -28,7 +28,7 @@ version_tuple: VERSION_TUPLE
28
28
  commit_id: COMMIT_ID
29
29
  __commit_id__: COMMIT_ID
30
30
 
31
- __version__ = version = '1.17.28'
32
- __version_tuple__ = version_tuple = (1, 17, 28)
31
+ __version__ = version = '1.17.30'
32
+ __version_tuple__ = version_tuple = (1, 17, 30)
33
33
 
34
- __commit_id__ = commit_id = 'gf6d105774'
34
+ __commit_id__ = commit_id = 'gcc6423102'
@@ -58,7 +58,7 @@ def update_git_repos(args, specs, buildOrder):
58
58
  specs[package]["scm"] = Git()
59
59
  if specs[package]["is_devel_pkg"]:
60
60
  specs[package]["source"] = os.path.join(os.getcwd(), specs[package]["package"])
61
- if exists(os.path.join(specs[package]["source"], ".sl")):
61
+ if exists(os.path.join(specs[package]["source"], ".sl")) or exists(os.path.join(specs[package]["source"], ".git/sl")):
62
62
  specs[package]["scm"] = Sapling()
63
63
  updateReferenceRepoSpec(args.referenceSources, package, specs[package],
64
64
  fetch=args.fetchRepos, allowGitPrompt=git_prompt)
@@ -68,7 +68,7 @@ class Git(SCM):
68
68
  return ["checkout", "-f", tag]
69
69
 
70
70
  def fetchCmd(self, remote, *refs):
71
- return ["fetch", "-f"] + clone_speedup_options() + [remote, *refs]
71
+ return ["fetch", "-f", "--prune"] + clone_speedup_options() + [remote, *refs]
72
72
 
73
73
  def setWriteUrlCmd(self, url):
74
74
  return ["remote", "set-url", "--push", "origin", url]
@@ -3,6 +3,7 @@ from alibuild_helpers.utilities import getPackageList, parseDefaults, readDefaul
3
3
  from alibuild_helpers.log import debug, error, warning, banner, info
4
4
  from alibuild_helpers.log import dieOnError
5
5
  from alibuild_helpers.workarea import updateReferenceRepoSpec
6
+ from alibuild_helpers.cmd import getstatusoutput
6
7
 
7
8
  from os.path import join
8
9
  import os.path as path
@@ -54,7 +55,7 @@ def doInit(args):
54
55
  architecture="",
55
56
  disable=[],
56
57
  defaults=args.defaults,
57
- performPreferCheck=lambda *x, **y: (1, ""),
58
+ performPreferCheck=lambda pkg, cmd: getstatusoutput(["bash", "-c", cmd]),
58
59
  performRequirementCheck=lambda *x, **y: (0, ""),
59
60
  performValidateDefaults=lambda spec : validateDefaults(spec, args.defaults),
60
61
  overrides=overrides,
@@ -20,9 +20,22 @@ class Sapling(SCM):
20
20
  return sapling(("whereami", ), directory)
21
21
 
22
22
  def branchOrRef(self, directory):
23
- # Format is <hash>[+] <branch>
24
- identity = sapling(("identify", ), directory)
25
- return identity.split(" ")[-1]
23
+ # Format is * branch ref or nothing
24
+ err, output = getstatusoutput("""\
25
+ set -e +x
26
+ sl -R {directory} bookmark -r . 2>/dev/null | grep -- "*"
27
+ """.format(
28
+ directory=quote(directory),
29
+ ), timeout=SL_COMMAND_TIMEOUT_SEC)
30
+ if err > 1:
31
+ raise SCMError("Error {} from sl bookmark -r . : {}".format(err, output))
32
+ # We use "none" to indicate there are no bookmarks. This means
33
+ # that a devel package will act as a single branch, regardless of where we are.
34
+ if not output.strip():
35
+ return "none"
36
+ # If a bookmark is there, we use it to determine that we should rebuild
37
+ # when we move to it
38
+ return output.split(" ")[2]
26
39
 
27
40
  def exec(self, *args, **kwargs):
28
41
  return sapling(*args, **kwargs)
@@ -101,7 +101,7 @@ GIT_SET_URL_ZLIB_ARGS = ("remote", "set-url", "--push", "origin", "https://githu
101
101
  GIT_CHECKOUT_ZLIB_ARGS = ("checkout", "-f", "master"), \
102
102
  "/sw/SOURCES/zlib/v1.2.3/8822efa61f", False
103
103
 
104
- GIT_FETCH_REF_ROOT_ARGS = ("fetch", "-f", "--filter=blob:none", "https://github.com/root-mirror/root", "+refs/tags/*:refs/tags/*",
104
+ GIT_FETCH_REF_ROOT_ARGS = ("fetch", "-f", "--prune", "--filter=blob:none", "https://github.com/root-mirror/root", "+refs/tags/*:refs/tags/*",
105
105
  "+refs/heads/*:refs/heads/*"), "/sw/MIRROR/root", False
106
106
  GIT_CLONE_SRC_ROOT_ARGS = ("clone", "-n", "https://github.com/root-mirror/root",
107
107
  "/sw/SOURCES/ROOT/v6-08-30/f7b3366117",
@@ -57,7 +57,7 @@ class WorkareaTestCase(unittest.TestCase):
57
57
  mock_exists.assert_has_calls([])
58
58
  mock_makedirs.assert_called_with("%s/sw/MIRROR" % getcwd(), exist_ok=True)
59
59
  mock_git.assert_called_once_with([
60
- "fetch", "-f", "--filter=blob:none", spec["source"], "+refs/tags/*:refs/tags/*", "+refs/heads/*:refs/heads/*",
60
+ "fetch", "-f", "--prune", "--filter=blob:none", spec["source"], "+refs/tags/*:refs/tags/*", "+refs/heads/*:refs/heads/*",
61
61
  ], directory="%s/sw/MIRROR/aliroot" % getcwd(), check=False, prompt=True)
62
62
  self.assertEqual(spec.get("reference"), "%s/sw/MIRROR/aliroot" % getcwd())
63
63
 
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
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
File without changes