(package_name)
| 999 | installed_package.append(package_info) |
| 1000 | |
| 1001 | def get_package_info(package_name): |
| 1002 | from pathlib import Path |
| 1003 | package_info = { |
| 1004 | 'name': package_name, |
| 1005 | 'url': options.index_url, |
| 1006 | 'desc': '' |
| 1007 | } |
| 1008 | |
| 1009 | # the case with git + http |
| 1010 | if package_name.split('.')[-1] == 'git': |
| 1011 | package_name = Path(package_name).stem |
| 1012 | |
| 1013 | plugin_installed, version = self.check_plugin_installed( |
| 1014 | package_name) |
| 1015 | if plugin_installed: |
| 1016 | package_info['version'] = version |
| 1017 | package_info['name'] = package_name |
| 1018 | else: |
| 1019 | logger.warning( |
| 1020 | f'The package {package_name} is not in the lib, this might be happened' |
| 1021 | f' when installing the package with git+https method, should be ignored' |
| 1022 | ) |
| 1023 | package_info['version'] = '' |
| 1024 | |
| 1025 | return package_info |
| 1026 | |
| 1027 | for package in args: |
| 1028 | package_info = get_package_info(package) |
nothing calls this directly
no test coverage detected