1
0

check_releases.py 1.1 KB

12345678910111213141516171819202122232425262728293031
  1. # Copyright 2021-2025 Avaiga Private Limited
  2. #
  3. # Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with
  4. # the License. You may obtain a copy of the License at
  5. #
  6. # http://www.apache.org/licenses/LICENSE-2.0
  7. #
  8. # Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on
  9. # an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the
  10. # specific language governing permissions and limitations under the License.
  11. import os
  12. import sys
  13. if __name__ == "__main__":
  14. _path = sys.argv[1]
  15. _version = sys.argv[2]
  16. packages = [
  17. f"taipy-{_version}.tar.gz",
  18. f"taipy-common-{_version}.tar.gz",
  19. f"taipy-core-{_version}.tar.gz",
  20. f"taipy-rest-{_version}.tar.gz",
  21. f"taipy-gui-{_version}.tar.gz",
  22. f"taipy-templates-{_version}.tar.gz",
  23. ]
  24. for package in packages:
  25. if not os.path.exists(os.path.join(_path, package)):
  26. print(f"Package {package} does not exist") # noqa: T201
  27. sys.exit(1)