2021.4 #19

Merged
edraft merged 237 commits from 2021.4 into master 2021-04-01 10:13:33 +02:00
2 changed files with 11 additions and 2 deletions
Showing only changes of commit a12a54f671 - Show all commits

View File

@ -65,8 +65,11 @@ class Pip:
if 'version' in atr:
new_version = atr.split(': ')[1]
if new_version != '':
return f'{package}=={new_version}'
return package
@classmethod
def get_outdated(cls) -> bytes:
"""

View File

@ -127,9 +127,15 @@ class InstallService(CommandABC):
if not is_already_in_project:
new_package = Pip.get_package(package)
if new_package is None:
if new_package is not None:
new_package = package
if '/' in new_package:
new_package = new_package.split('/')[0]
if '\\' in new_package:
new_package = new_package.split('\\')[0]
self._project_settings.dependencies.append(new_package)
config = {