-
Notifications
You must be signed in to change notification settings - Fork 7
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feature(installer): update installer version and improve desktop version launcher #2157
Conversation
Signed-off-by: Sylvain Leclerc <[email protected]>
Signed-off-by: Sylvain Leclerc <[email protected]>
Signed-off-by: Sylvain Leclerc <[email protected]>
Signed-off-by: Sylvain Leclerc <[email protected]>
Signed-off-by: Sylvain Leclerc <[email protected]>
Signed-off-by: Sylvain Leclerc <[email protected]>
Signed-off-by: Sylvain Leclerc <[email protected]>
Signed-off-by: Sylvain Leclerc <[email protected]>
Otherwise, alembic is actually launched after the gui.py script ends. We still need to analyze dependencies of all alembic scripts though. Also, make the application exit when the server process ends. Signed-off-by: Sylvain Leclerc <[email protected]>
Signed-off-by: Sylvain Leclerc <[email protected]>
Signed-off-by: Sylvain Leclerc <[email protected]>
Signed-off-by: Sylvain Leclerc <[email protected]>
Signed-off-by: Sylvain Leclerc <[email protected]>
Signed-off-by: Sylvain Leclerc <[email protected]>
Signed-off-by: Sylvain Leclerc <[email protected]>
Signed-off-by: Sylvain Leclerc <[email protected]>
Signed-off-by: Sylvain Leclerc <[email protected]>
Signed-off-by: Sylvain Leclerc <[email protected]>
Signed-off-by: Sylvain Leclerc <[email protected]>
Signed-off-by: Sylvain Leclerc <[email protected]>
Signed-off-by: Sylvain Leclerc <[email protected]>
Signed-off-by: Sylvain Leclerc <[email protected]>
Signed-off-by: Sylvain Leclerc <[email protected]>
Signed-off-by: Sylvain Leclerc <[email protected]>
Signed-off-by: Sylvain Leclerc <[email protected]>
Signed-off-by: Sylvain Leclerc <[email protected]>
Signed-off-by: Sylvain Leclerc <[email protected]>
Signed-off-by: Sylvain Leclerc <[email protected]>
Signed-off-by: Sylvain Leclerc <[email protected]>
Signed-off-by: Sylvain Leclerc <[email protected]>
Signed-off-by: Sylvain Leclerc <[email protected]>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The gui.py
file is really hard to understand IMO.
I wouldn't mind more doc cause I'm not familiar with this code 😃
.github/workflows/deploy.yml
Outdated
@@ -4,6 +4,7 @@ on: | |||
branches: | |||
- "master" | |||
- "hotfix/**" | |||
- "feature/update-installer" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should be removed or we could add more generic branch name such as installer/**
or deploy/**
migration_files = [str(f) for f in migrations_dir.iterdir() if f.is_file() and f.suffix == '.py'] | ||
# We need to analyze all alembic files to be sure the migration phase works fine: | ||
# alembic loads version files by their path, so we need to add them as "data" to the package, | ||
# but all the dependencies they use need to be included also, wo we need to perform a |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
typo: so we need
binaries=binaries, | ||
datas=[('./resources', './resources'), ('./alembic', './alembic')], | ||
binaries=[], | ||
datas=[('./resources', './resources'), ('./alembic', './alembic'), ('./alembic.ini', './')], |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why did you add ./
?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Before we had this: binaries = [('./alembic.ini', './alembic.ini')]
which created a folder called "alembic.ini" in which the file was placed.
Now the file is correctly placed at the root
migration_files = [str(f) for f in migrations_dir.iterdir() if f.is_file() and f.suffix == '.py'] | ||
# We need to analyze all alembic files to be sure the migration phase works fine: | ||
# alembic loads version files by their path, so we need to add them as "data" to the package, | ||
# but all the dependencies they use need to be included also, wo we need to perform a |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
same typo
antarest/gui.py
Outdated
quit_action.triggered.connect(app.quit) | ||
|
||
# Adding options to the System Tray | ||
def handle_action(reason: int) -> None: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This function/design is really weird but I'm far from understanding this file
Signed-off-by: Sylvain Leclerc <[email protected]>
Signed-off-by: Sylvain Leclerc <[email protected]>
Signed-off-by: Sylvain Leclerc <[email protected]>
Signed-off-by: Sylvain Leclerc <[email protected]>
Signed-off-by: Sylvain Leclerc <[email protected]>
Signed-off-by: Sylvain Leclerc <[email protected]>
Signed-off-by: Sylvain Leclerc <[email protected]>
Signed-off-by: Sylvain Leclerc <[email protected]>
Signed-off-by: Sylvain Leclerc <[email protected]>
Signed-off-by: Sylvain Leclerc <[email protected]>
Signed-off-by: Sylvain Leclerc <[email protected]>
alembic must not be defined as a script, otherwise it's executed when the application
quits. Instead, it must just be analyzed separately to get its dependencies