xmipp3-installer 1.1.0__tar.gz → 2.0.1__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 (75) hide show
  1. {xmipp3_installer-1.1.0/src/xmipp3_installer.egg-info → xmipp3_installer-2.0.1}/PKG-INFO +2 -2
  2. {xmipp3_installer-1.1.0 → xmipp3_installer-2.0.1}/README.md +1 -1
  3. {xmipp3_installer-1.1.0 → xmipp3_installer-2.0.1}/pyproject.toml +1 -1
  4. {xmipp3_installer-1.1.0 → xmipp3_installer-2.0.1}/src/xmipp3_installer/api_client/assembler/installation_info_assembler.py +1 -3
  5. {xmipp3_installer-1.1.0 → xmipp3_installer-2.0.1}/src/xmipp3_installer/installer/constants/__init__.py +1 -2
  6. {xmipp3_installer-1.1.0 → xmipp3_installer-2.0.1}/src/xmipp3_installer/installer/handlers/git_handler.py +6 -4
  7. {xmipp3_installer-1.1.0 → xmipp3_installer-2.0.1}/src/xmipp3_installer/installer/modes/mode_get_sources_executor.py +1 -4
  8. {xmipp3_installer-1.1.0 → xmipp3_installer-2.0.1/src/xmipp3_installer.egg-info}/PKG-INFO +2 -2
  9. {xmipp3_installer-1.1.0 → xmipp3_installer-2.0.1}/LICENSE.txt +0 -0
  10. {xmipp3_installer-1.1.0 → xmipp3_installer-2.0.1}/setup.cfg +0 -0
  11. {xmipp3_installer-1.1.0 → xmipp3_installer-2.0.1}/src/xmipp3_installer/__init__.py +0 -0
  12. {xmipp3_installer-1.1.0 → xmipp3_installer-2.0.1}/src/xmipp3_installer/__main__.py +0 -0
  13. {xmipp3_installer-1.1.0 → xmipp3_installer-2.0.1}/src/xmipp3_installer/api_client/api_client.py +0 -0
  14. {xmipp3_installer-1.1.0 → xmipp3_installer-2.0.1}/src/xmipp3_installer/application/__init__.py +0 -0
  15. {xmipp3_installer-1.1.0 → xmipp3_installer-2.0.1}/src/xmipp3_installer/application/cli/__init__.py +0 -0
  16. {xmipp3_installer-1.1.0 → xmipp3_installer-2.0.1}/src/xmipp3_installer/application/cli/arguments/__init__.py +0 -0
  17. {xmipp3_installer-1.1.0 → xmipp3_installer-2.0.1}/src/xmipp3_installer/application/cli/arguments/modes.py +0 -0
  18. {xmipp3_installer-1.1.0 → xmipp3_installer-2.0.1}/src/xmipp3_installer/application/cli/arguments/params.py +0 -0
  19. {xmipp3_installer-1.1.0 → xmipp3_installer-2.0.1}/src/xmipp3_installer/application/cli/cli.py +0 -0
  20. {xmipp3_installer-1.1.0 → xmipp3_installer-2.0.1}/src/xmipp3_installer/application/cli/parsers/base_help_formatter.py +0 -0
  21. {xmipp3_installer-1.1.0 → xmipp3_installer-2.0.1}/src/xmipp3_installer/application/cli/parsers/error_handler_parser.py +0 -0
  22. {xmipp3_installer-1.1.0 → xmipp3_installer-2.0.1}/src/xmipp3_installer/application/cli/parsers/format.py +0 -0
  23. {xmipp3_installer-1.1.0 → xmipp3_installer-2.0.1}/src/xmipp3_installer/application/cli/parsers/general_help_formatter.py +0 -0
  24. {xmipp3_installer-1.1.0 → xmipp3_installer-2.0.1}/src/xmipp3_installer/application/cli/parsers/mode_help_formatter.py +0 -0
  25. {xmipp3_installer-1.1.0 → xmipp3_installer-2.0.1}/src/xmipp3_installer/application/logger/__init__.py +0 -0
  26. {xmipp3_installer-1.1.0 → xmipp3_installer-2.0.1}/src/xmipp3_installer/application/logger/errors.py +0 -0
  27. {xmipp3_installer-1.1.0 → xmipp3_installer-2.0.1}/src/xmipp3_installer/application/logger/logger.py +0 -0
  28. {xmipp3_installer-1.1.0 → xmipp3_installer-2.0.1}/src/xmipp3_installer/application/logger/predefined_messages.py +0 -0
  29. {xmipp3_installer-1.1.0 → xmipp3_installer-2.0.1}/src/xmipp3_installer/application/user_interactions.py +0 -0
  30. {xmipp3_installer-1.1.0 → xmipp3_installer-2.0.1}/src/xmipp3_installer/installer/__init__.py +0 -0
  31. {xmipp3_installer-1.1.0 → xmipp3_installer-2.0.1}/src/xmipp3_installer/installer/constants/paths.py +0 -0
  32. {xmipp3_installer-1.1.0 → xmipp3_installer-2.0.1}/src/xmipp3_installer/installer/handlers/__init__.py +0 -0
  33. {xmipp3_installer-1.1.0 → xmipp3_installer-2.0.1}/src/xmipp3_installer/installer/handlers/cmake/__init__.py +0 -0
  34. {xmipp3_installer-1.1.0 → xmipp3_installer-2.0.1}/src/xmipp3_installer/installer/handlers/cmake/cmake_constants.py +0 -0
  35. {xmipp3_installer-1.1.0 → xmipp3_installer-2.0.1}/src/xmipp3_installer/installer/handlers/cmake/cmake_handler.py +0 -0
  36. {xmipp3_installer-1.1.0 → xmipp3_installer-2.0.1}/src/xmipp3_installer/installer/handlers/conda_handler.py +0 -0
  37. {xmipp3_installer-1.1.0 → xmipp3_installer-2.0.1}/src/xmipp3_installer/installer/handlers/generic_package_handler.py +0 -0
  38. {xmipp3_installer-1.1.0 → xmipp3_installer-2.0.1}/src/xmipp3_installer/installer/handlers/shell_handler.py +0 -0
  39. {xmipp3_installer-1.1.0 → xmipp3_installer-2.0.1}/src/xmipp3_installer/installer/handlers/versions_manager.py +0 -0
  40. {xmipp3_installer-1.1.0 → xmipp3_installer-2.0.1}/src/xmipp3_installer/installer/installer_service.py +0 -0
  41. {xmipp3_installer-1.1.0 → xmipp3_installer-2.0.1}/src/xmipp3_installer/installer/modes/__init__.py +0 -0
  42. {xmipp3_installer-1.1.0 → xmipp3_installer-2.0.1}/src/xmipp3_installer/installer/modes/mode_all_executor.py +0 -0
  43. {xmipp3_installer-1.1.0 → xmipp3_installer-2.0.1}/src/xmipp3_installer/installer/modes/mode_clean/__init__.py +0 -0
  44. {xmipp3_installer-1.1.0 → xmipp3_installer-2.0.1}/src/xmipp3_installer/installer/modes/mode_clean/mode_clean_all_executor.py +0 -0
  45. {xmipp3_installer-1.1.0 → xmipp3_installer-2.0.1}/src/xmipp3_installer/installer/modes/mode_clean/mode_clean_bin_executor.py +0 -0
  46. {xmipp3_installer-1.1.0 → xmipp3_installer-2.0.1}/src/xmipp3_installer/installer/modes/mode_clean/mode_clean_executor.py +0 -0
  47. {xmipp3_installer-1.1.0 → xmipp3_installer-2.0.1}/src/xmipp3_installer/installer/modes/mode_cmake/__init__.py +0 -0
  48. {xmipp3_installer-1.1.0 → xmipp3_installer-2.0.1}/src/xmipp3_installer/installer/modes/mode_cmake/mode_cmake_executor.py +0 -0
  49. {xmipp3_installer-1.1.0 → xmipp3_installer-2.0.1}/src/xmipp3_installer/installer/modes/mode_cmake/mode_compile_and_install_executor.py +0 -0
  50. {xmipp3_installer-1.1.0 → xmipp3_installer-2.0.1}/src/xmipp3_installer/installer/modes/mode_cmake/mode_config_build_executor.py +0 -0
  51. {xmipp3_installer-1.1.0 → xmipp3_installer-2.0.1}/src/xmipp3_installer/installer/modes/mode_config_executor.py +0 -0
  52. {xmipp3_installer-1.1.0 → xmipp3_installer-2.0.1}/src/xmipp3_installer/installer/modes/mode_executor.py +0 -0
  53. {xmipp3_installer-1.1.0 → xmipp3_installer-2.0.1}/src/xmipp3_installer/installer/modes/mode_git_executor.py +0 -0
  54. {xmipp3_installer-1.1.0 → xmipp3_installer-2.0.1}/src/xmipp3_installer/installer/modes/mode_selector.py +0 -0
  55. {xmipp3_installer-1.1.0 → xmipp3_installer-2.0.1}/src/xmipp3_installer/installer/modes/mode_sync/mode_add_model_executor.py +0 -0
  56. {xmipp3_installer-1.1.0 → xmipp3_installer-2.0.1}/src/xmipp3_installer/installer/modes/mode_sync/mode_get_models_executor.py +0 -0
  57. {xmipp3_installer-1.1.0 → xmipp3_installer-2.0.1}/src/xmipp3_installer/installer/modes/mode_sync/mode_sync_executor.py +0 -0
  58. {xmipp3_installer-1.1.0 → xmipp3_installer-2.0.1}/src/xmipp3_installer/installer/modes/mode_sync/mode_test_executor.py +0 -0
  59. {xmipp3_installer-1.1.0 → xmipp3_installer-2.0.1}/src/xmipp3_installer/installer/modes/mode_version_executor.py +0 -0
  60. {xmipp3_installer-1.1.0 → xmipp3_installer-2.0.1}/src/xmipp3_installer/installer/orquestrator.py +0 -0
  61. {xmipp3_installer-1.1.0 → xmipp3_installer-2.0.1}/src/xmipp3_installer/installer/urls.py +0 -0
  62. {xmipp3_installer-1.1.0 → xmipp3_installer-2.0.1}/src/xmipp3_installer/repository/__init__.py +0 -0
  63. {xmipp3_installer-1.1.0 → xmipp3_installer-2.0.1}/src/xmipp3_installer/repository/config.py +0 -0
  64. {xmipp3_installer-1.1.0 → xmipp3_installer-2.0.1}/src/xmipp3_installer/repository/config_vars/__init__.py +0 -0
  65. {xmipp3_installer-1.1.0 → xmipp3_installer-2.0.1}/src/xmipp3_installer/repository/config_vars/config_values_adapter.py +0 -0
  66. {xmipp3_installer-1.1.0 → xmipp3_installer-2.0.1}/src/xmipp3_installer/repository/config_vars/default_values.py +0 -0
  67. {xmipp3_installer-1.1.0 → xmipp3_installer-2.0.1}/src/xmipp3_installer/repository/config_vars/variables.py +0 -0
  68. {xmipp3_installer-1.1.0 → xmipp3_installer-2.0.1}/src/xmipp3_installer/repository/invalid_config_line.py +0 -0
  69. {xmipp3_installer-1.1.0 → xmipp3_installer-2.0.1}/src/xmipp3_installer/shared/file_operations.py +0 -0
  70. {xmipp3_installer-1.1.0 → xmipp3_installer-2.0.1}/src/xmipp3_installer/shared/singleton.py +0 -0
  71. {xmipp3_installer-1.1.0 → xmipp3_installer-2.0.1}/src/xmipp3_installer.egg-info/SOURCES.txt +0 -0
  72. {xmipp3_installer-1.1.0 → xmipp3_installer-2.0.1}/src/xmipp3_installer.egg-info/dependency_links.txt +0 -0
  73. {xmipp3_installer-1.1.0 → xmipp3_installer-2.0.1}/src/xmipp3_installer.egg-info/entry_points.txt +0 -0
  74. {xmipp3_installer-1.1.0 → xmipp3_installer-2.0.1}/src/xmipp3_installer.egg-info/requires.txt +0 -0
  75. {xmipp3_installer-1.1.0 → xmipp3_installer-2.0.1}/src/xmipp3_installer.egg-info/top_level.txt +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: xmipp3_installer
3
- Version: 1.1.0
3
+ Version: 2.0.1
4
4
  Summary: Package to handle the installation of Xmipp3
5
5
  Author-email: Martín Salinas <ssalinasmartin@gmail.com>
6
6
  License: GPL-3.0-only
@@ -33,7 +33,7 @@ Requires-Dist: ninja==1.*; extra == "test"
33
33
  Dynamic: license-file
34
34
 
35
35
  # xmipp3-installer
36
- Python package that handles the installation of [xmipp3](https://github.com/I2PC/xmipp).
36
+ Python package that handles the installation of [xmipp3](https://github.com/I2PC/xmipp3).
37
37
 
38
38
  ## Installation
39
39
  To install the package, simply run:
@@ -1,5 +1,5 @@
1
1
  # xmipp3-installer
2
- Python package that handles the installation of [xmipp3](https://github.com/I2PC/xmipp).
2
+ Python package that handles the installation of [xmipp3](https://github.com/I2PC/xmipp3).
3
3
 
4
4
  ## Installation
5
5
  To install the package, simply run:
@@ -1,6 +1,6 @@
1
1
  [project]
2
2
  name = "xmipp3_installer"
3
- version = "1.1.0"
3
+ version = "2.0.1"
4
4
  authors = [
5
5
  { name = "Martín Salinas", email = "ssalinasmartin@gmail.com" },
6
6
  ]
@@ -91,9 +91,7 @@ def __get_installation_branch_name(branch_name: str, version_manager: versions_m
91
91
  #### Return:
92
92
  - (str): Release name if Xmipp is in a release branch, or the branch name otherwise.
93
93
  """
94
- if not branch_name or branch_name == constants.MASTER_BRANCHNAME:
95
- return version_manager.xmipp_version_number
96
- return branch_name
94
+ return branch_name or version_manager.xmipp_version_name
97
95
 
98
96
  def __get_user_id() -> str:
99
97
  """
@@ -7,8 +7,7 @@ XMIPP_VIZ = 'xmippViz'
7
7
  XMIPP_SOURCES = [XMIPP_CORE, XMIPP_VIZ]
8
8
 
9
9
  # Branch names
10
- DEVEL_BRANCHNAME = 'devel'
11
- MASTER_BRANCHNAME = 'master'
10
+ MAIN_BRANCHNAME = 'main'
12
11
 
13
12
  # Context
14
13
  VERSIONS_CONTEXT_KEY = "versions"
@@ -15,15 +15,17 @@ def get_current_branch(dir: str='./') -> str:
15
15
  - dir (str): Optional. Directory of the repository to get current branch from. Default is current directory.
16
16
 
17
17
  #### Returns:
18
- - (str): The name of the branch, 'HEAD' if a tag, or empty string if given directory is not a repository or a recognizable tag.
18
+ - (str): The name of the branch, 'HEAD' if it is a tag, or empty string if the given directory is not a repository or a recognizable tag.
19
19
  """
20
20
  ret_code, branch_name = shell_handler.run_shell_command("git rev-parse --abbrev-ref HEAD", cwd=dir)
21
21
  # If there was an error, we are in no branch
22
- return branch_name if not ret_code else ''
22
+ return '' if ret_code else branch_name
23
23
 
24
24
  def is_tag(dir: str='./') -> bool:
25
25
  """
26
26
  ### Returns True if the current Xmipp repository is in a tag.
27
+
28
+ This happens when the current commit matches a tag.
27
29
 
28
30
  #### Params:
29
31
  - dir (str): Optional. Directory of the repository where the check will happen. Default is current directory.
@@ -31,8 +33,8 @@ def is_tag(dir: str='./') -> bool:
31
33
  #### Returns:
32
34
  - (bool): True if the repository is a tag. False otherwise.
33
35
  """
34
- current_branch = get_current_branch(dir=dir)
35
- return not current_branch or current_branch == "HEAD"
36
+ ret_code, _ = shell_handler.run_shell_command("git describe --tags --exact-match HEAD", cwd=dir)
37
+ return not ret_code
36
38
 
37
39
  def is_branch_up_to_date(dir: str='./') -> bool:
38
40
  """
@@ -69,10 +69,7 @@ class ModeGetSourcesExecutor(mode_executor.ModeExecutor):
69
69
  """
70
70
  current_branch = git_handler.get_current_branch()
71
71
  tag_name = None
72
- if (
73
- not current_branch or
74
- current_branch in {constants.MASTER_BRANCHNAME, self.xmipp_tag_name}
75
- ):
72
+ if (not current_branch or current_branch == self.xmipp_tag_name):
76
73
  tag_name = self.source_versions.get(source_name)
77
74
  return git_handler.get_clonable_branch(source_repo, self.target_branch, tag_name)
78
75
 
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: xmipp3_installer
3
- Version: 1.1.0
3
+ Version: 2.0.1
4
4
  Summary: Package to handle the installation of Xmipp3
5
5
  Author-email: Martín Salinas <ssalinasmartin@gmail.com>
6
6
  License: GPL-3.0-only
@@ -33,7 +33,7 @@ Requires-Dist: ninja==1.*; extra == "test"
33
33
  Dynamic: license-file
34
34
 
35
35
  # xmipp3-installer
36
- Python package that handles the installation of [xmipp3](https://github.com/I2PC/xmipp).
36
+ Python package that handles the installation of [xmipp3](https://github.com/I2PC/xmipp3).
37
37
 
38
38
  ## Installation
39
39
  To install the package, simply run: