-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Ivan Titov
committed
Apr 15, 2020
1 parent
3522bed
commit 5f6bac5
Showing
8 changed files
with
225 additions
and
52 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,7 @@ | ||
{ | ||
"name": "Package Manager", | ||
"author": "Ivan Titov", | ||
"version": "0.3-beta", | ||
"version": "0.4-beta", | ||
"source": "Houdini-Packages/Houdini-Package-Manager", | ||
"source_type": "github" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
try: | ||
from PyQt5.QtWidgets import * | ||
from PyQt5.QtGui import * | ||
from PyQt5.QtCore import * | ||
except ImportError: | ||
from PySide2.QtWidgets import * | ||
from PySide2.QtGui import * | ||
from PySide2.QtCore import * | ||
|
||
|
||
class NewVersionDialog(QDialog): | ||
def __init__(self, parent=None): | ||
super(NewVersionDialog, self).__init__(parent) | ||
|
||
self.setWindowTitle('New version') | ||
|
||
layout = QFormLayout(self) | ||
layout.setContentsMargins(4, 4, 4, 4) | ||
layout.setSpacing(4) | ||
|
||
self.current_version_label = QLabel() | ||
layout.addRow('Current version', self.current_version_label) | ||
|
||
self.next_version_label = QLabel() | ||
layout.addRow('Next version', self.next_version_label) | ||
|
||
self.update_info_label = QLabel() | ||
layout.addRow('Info', self.update_info_label) | ||
|
||
# Data | ||
self.__package = None | ||
|
||
def updateFromCurrentPackage(self): | ||
pass | ||
|
||
@classmethod | ||
def getUserChoice(cls): | ||
pass |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
from .local_package import findInstalledPackages | ||
from .github import installFromGitHubRepo | ||
from .new_version_dialog import NewVersionDialog | ||
|
||
|
||
def checkForUpdates(): | ||
dialog = NewVersionDialog() | ||
packages = [] | ||
for package in findInstalledPackages(): | ||
if package.source and package.version: | ||
if package.source_type == 'github': | ||
if package.hasUpdates(): | ||
packages.append(package) | ||
if packages: | ||
dialog.setPackageList(packages) | ||
dialog.exec_() |
Oops, something went wrong.