Skip to content
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

Draft
wants to merge 15 commits into
base: develop
Choose a base branch
from

Conversation

bogdant36
Copy link
Collaborator

CTX-5485: Changes regarding decision to not use anymore coretex cli tool which was installed via pip.

Bogdan Tintor added 4 commits August 13, 2024 16:01
@@ -70,3 +56,6 @@ def cli() -> None:
cli.add_command(run)
cli.add_command(version)
cli.add_command(update)

if getattr(sys, 'frozen', False):
Copy link
Collaborator

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.
@bogdant36 bogdant36 marked this pull request as ready for review August 19, 2024 07:45

# Define package name and directory structure
PACKAGE_NAME="coretex"
PACKAGE_DIR="${PACKAGE_NAME}"
Copy link
Collaborator

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"

source compile_env/bin/activate

# Install the current package and pyinstaller
pip install .. toml pyinstaller
Copy link
Collaborator

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
Copy link
Collaborator

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

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"
Copy link
Collaborator

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?


# Create control file content
controlContent = (f"Package: {packageName}\n"
f"Version: {version}\n"
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Formatting

# Extract necessary information
packageName = pyproject['project']['name']
version = pyproject['project']['version']
description = pyproject['project']['description']
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Use double quotes

@dule1322
Copy link
Collaborator

This will not be merged until the deployment is properly working for this change.

@bogdant36 bogdant36 marked this pull request as draft August 29, 2024 08:32
# Conflicts:
#	coretex/cli/commands/node.py
#	coretex/cli/modules/update.py
#	main.py
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants