-
Notifications
You must be signed in to change notification settings - Fork 8
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
CTX-5485: Changes regarding decision to not use anymore coretex cli tool which was installed via pip. #249
base: develop
Are you sure you want to change the base?
Conversation
…d CLI (compiled via pyinstaller) work as CLI installed via pip.
…ool which was installed via pip.
cli_entrypoint.py
Outdated
@@ -70,3 +56,6 @@ def cli() -> None: | |||
cli.add_command(run) | |||
cli.add_command(version) | |||
cli.add_command(update) | |||
|
|||
if getattr(sys, 'frozen', False): |
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.
Add comment explaining why this is needed
…cessing and detecting frozen state is needed.
…stallation package for debian.
|
||
# Define package name and directory structure | ||
PACKAGE_NAME="coretex" | ||
PACKAGE_DIR="${PACKAGE_NAME}" |
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 should be "dist/SOMETHING_SOMETHING"
.build/compile.sh
Outdated
source compile_env/bin/activate | ||
|
||
# Install the current package and pyinstaller | ||
pip install .. toml pyinstaller |
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 is this installing toml?
mkdir -p "${BIN_DIR}" | ||
|
||
# Create a Python virtual environment | ||
python -m venv compile_env |
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.
Rename the venv to debian-package-venv
.build/macos-package.sh
Outdated
PAYLOAD_DIR="dist/coretex/" | ||
|
||
# Build the .pkg package using pkgbuild | ||
pkgbuild --root "${PAYLOAD_DIR}" --identifier ai.coretex --version 1.0 --install-location "/usr/local/bin" "${PACKAGE_NAME}.pkg" |
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.
Can the version be loaded from the pyproject.toml
?
.build/generate_control.py
Outdated
|
||
# Create control file content | ||
controlContent = (f"Package: {packageName}\n" | ||
f"Version: {version}\n" |
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.
Formatting
.build/generate_control.py
Outdated
# Extract necessary information | ||
packageName = pyproject['project']['name'] | ||
version = pyproject['project']['version'] | ||
description = pyproject['project']['description'] |
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.
Use double quotes
This will not be merged until the deployment is properly working for this change. |
# Conflicts: # coretex/cli/commands/node.py # coretex/cli/modules/update.py # main.py
CTX-5485: Changes regarding decision to not use anymore coretex cli tool which was installed via pip.