meta.py 4.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134
  1. # copyright (c) 2024 PaddlePaddle Authors. All Rights Reserve.
  2. #
  3. # Licensed under the Apache License, Version 2.0 (the "License");
  4. # you may not use this file except in compliance with the License.
  5. # You may obtain a copy of the License at
  6. #
  7. # http://www.apache.org/licenses/LICENSE-2.0
  8. #
  9. # Unless required by applicable law or agreed to in writing, software
  10. # distributed under the License is distributed on an "AS IS" BASIS,
  11. # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  12. # See the License for the specific language governing permissions and
  13. # limitations under the License.
  14. __all__ = ['get_all_repo_names']
  15. REPO_NAMES = [
  16. 'PaddleClas', 'PaddleOCR', 'PaddleDetection', 'PaddleSeg', 'PaddleNLP',
  17. 'PaddleTS'
  18. ]
  19. REPO_META = {
  20. 'PaddleSeg': {
  21. 'repo_url': '/PaddlePaddle/PaddleSeg.git',
  22. 'platform': 'github',
  23. 'branch': 'release/2.9.1',
  24. 'pkg_name': 'paddleseg',
  25. 'lib_name': 'paddleseg',
  26. 'pdx_pkg_name': 'PaddleSeg_api',
  27. 'editable': False,
  28. 'extra_req_files': ['Matting/requirements.txt'],
  29. 'path_env': 'PADDLE_PDX_PADDLESEG_PATH',
  30. },
  31. 'PaddleClas': {
  32. 'repo_url': '/PaddlePaddle/PaddleClas.git',
  33. 'platform': 'github',
  34. 'branch': 'release/2.5.2',
  35. 'pkg_name': 'paddleclas',
  36. 'lib_name': 'paddleclas',
  37. 'pdx_pkg_name': 'PaddleClas_api',
  38. # PaddleClas must be installed in non-editable mode, otherwise it throws
  39. # an Import error.
  40. 'editable': False,
  41. 'path_env': 'PADDLE_PDX_PADDLECLAS_PATH',
  42. },
  43. 'PaddleDetection': {
  44. 'repo_url': '/PaddlePaddle/PaddleDetection.git',
  45. 'platform': 'github',
  46. 'branch': 'release/2.7.1',
  47. 'pkg_name': 'paddledet',
  48. 'lib_name': 'ppdet',
  49. 'pdx_pkg_name': 'PaddleDetection_api',
  50. 'editable': False,
  51. 'path_env': 'PADDLE_PDX_PADDLEDETECTION_PATH',
  52. },
  53. 'PaddleOCR': {
  54. 'repo_url': '/PaddlePaddle/PaddleOCR.git',
  55. 'platform': 'github',
  56. 'branch': 'release/2.6.1',
  57. 'pkg_name': 'paddleocr',
  58. 'lib_name': 'paddleocr',
  59. 'pdx_pkg_name': 'PaddleOCR_api',
  60. 'editable': False,
  61. 'extra_req_files': ['ppstructure/kie/requirements.txt'],
  62. 'path_env': 'PADDLE_PDX_PADDLEOCR_PATH',
  63. 'requires': ['PaddleNLP'],
  64. },
  65. 'PaddleTS': {
  66. 'repo_url': '/PaddlePaddle/PaddleTS.git',
  67. 'platform': 'github',
  68. 'branch': 'release_v1.1',
  69. 'pkg_name': 'paddlets',
  70. 'lib_name': 'paddlets',
  71. 'pdx_pkg_name': 'PaddleTS_api',
  72. 'editable': False,
  73. 'path_env': 'PADDLE_PDX_PADDLETS_PATH',
  74. 'pdx_pkg_deps': ['pandas', 'ruamel.yaml'],
  75. },
  76. 'PaddleNLP': {
  77. 'repo_url': '/PaddlePaddle/PaddleNLP.git',
  78. 'platform': 'github',
  79. 'branch': 'develop',
  80. 'pkg_name': 'paddlenlp',
  81. 'lib_name': 'paddlenlp',
  82. 'pdx_pkg_name': 'PaddleNLP_api',
  83. 'editable': False,
  84. 'path_env': 'PADDLE_PDX_PADDLENLP_PATH',
  85. },
  86. 'PaddleSpeech': {
  87. 'repo_url': '/PaddlePaddle/PaddleSpeech.git',
  88. 'platform': 'github',
  89. 'branch': 'develop',
  90. 'pkg_name': 'paddlespeech',
  91. 'lib_name': 'paddlespeech',
  92. 'pdx_pkg_name': 'PaddleSpeech_api',
  93. 'editable': False,
  94. 'path_env': 'PADDLE_PDX_PADDLESPEECH_PATH',
  95. 'requires': ['PaddleNLP'],
  96. },
  97. 'PARL': {
  98. 'repo_url': '/PaddlePaddle/PARL.git',
  99. 'platform': 'github',
  100. 'branch': 'develop',
  101. 'pkg_name': 'parl',
  102. 'lib_name': 'parl',
  103. 'pdx_pkg_name': 'PARL_api',
  104. 'editable': False,
  105. 'path_env': 'PADDLE_PDX_PARL_PATH',
  106. },
  107. 'PaddleMIX': {
  108. 'repo_url': '/PaddlePaddle/PaddleMIX.git',
  109. 'platform': 'github',
  110. 'branch': 'develop',
  111. 'pkg_name': 'paddlemix',
  112. 'lib_name': 'paddlemix',
  113. 'pdx_pkg_name': 'PaddleMIX_api',
  114. 'editable': True,
  115. 'extra_editable': 'ppdiffusers',
  116. 'path_env': 'PADDLE_PDX_PADDLEMIX_PATH',
  117. 'requires': ['PaddleNLP'],
  118. },
  119. }
  120. def get_repo_meta(repo_name):
  121. """ get_repo_meta """
  122. return REPO_META[repo_name]
  123. def get_all_repo_names():
  124. """ get_all_repo_names """
  125. return REPO_NAMES