Amritanshu ab8fed17d0 Fix: Product update failed as sku_version_id was not sent on the schema and hence update tried to create a new sku.
Fix: If a product sku was updated and then deleted on the same day, it failed as the valid_till for the sku_version was set to yesterday while the valid_from was set to today.
Fix: Product update also failed as the db.commit was on the loop adding new skus
2026-02-20 16:27:14 +00:00
2026-02-11 08:41:12 +00:00
2026-02-17 09:45:32 +05:30
2026-02-17 09:45:32 +05:30
2024-06-03 13:22:56 +05:30
2025-07-11 11:44:28 +00:00
2025-07-02 04:32:35 +00:00

Installation (Ubuntu)

This project uses pyenv for Python version management and Poetry for dependency and virtual environment management.


1. Install pyenv

1.1 Install pyenv (if not already installed)

curl -fsSL https://pyenv.run | bash

1.2 Configure shell for pyenv

Add the following to ~/.zshrc:

echo 'export PYENV_ROOT="$HOME/.pyenv"' >> ~/.zshrc
echo '[[ -d $PYENV_ROOT/bin ]] && export PATH="$PYENV_ROOT/bin:$PATH"' >> ~/.zshrc
echo 'eval "$(pyenv init - zsh)"' >> ~/.zshrc

Reload the shell:

exec "$SHELL"

Verify:

pyenv --version

1.3 Install system dependencies

sudo apt update; sudo apt install make build-essential libssl-dev zlib1g-dev \
libbz2-dev libreadline-dev libsqlite3-dev curl git \
libncursesw5-dev xz-utils tk-dev libxml2-dev libxmlsec1-dev libffi-dev liblzma-dev

2. Install Python 3.14 using pyenv

pyenv install 3.14

Set the local Python version for this project:

pyenv local 3.14

Verify:

python --version

3. Install Poetry

3.1 Install Poetry (if not already installed)

curl -sSL https://install.python-poetry.org | python3 -

Ensure Poetry is on PATH:

export PATH="$HOME/.local/bin:$PATH"

Enable tab completion for Zsh

mkdir $ZSH_CUSTOM/plugins/poetry
poetry completions zsh > $ZSH_CUSTOM/plugins/poetry/_poetry

You must then add poetry to your plugins array in ~/.zshrc:

plugins(
	poetry
	...
	)

Verify:

poetry --version

4. Configure Poetry to use pyenvs Python

From the project root directory:

poetry env use "$(pyenv which python)"

Verify the environment:

poetry env info

5. Install the project

5.1 Install dependencies

poetry install

This will:

  • Create a virtual environment
  • Install all dependencies defined in pyproject.toml
  • Use Python 3.14 from pyenv

6. Activate the environment (optional)

eval $(poetry env activate)

Or run commands directly:

poetry run python your_script.py

7. Install nvm

7.1 Install nvm (if not already installed)

curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.40.3/install.sh | bash

7.2 Configure shell for pyenv

Add the following to ~/.zshrc:

export NVM_DIR="$([ -z "${XDG_CONFIG_HOME-}" ] && printf %s "${HOME}/.nvm" || printf %s "${XDG_CONFIG_HOME}/nvm")"
[ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh" # This loads nvm

Reload the shell:

exec "$SHELL"

Verify:

nvm --version

Notes

  • Do not use system-wide pip for this project.
  • All dependencies (including psycopg) are managed by Poetry.
  • PostgreSQL must be running and properly configured before application startup.
Description
No description provided
Readme 6 MiB
Languages
Python 43.2%
TypeScript 42.8%
HTML 11.3%
Shell 0.8%
Sass 0.5%
Other 1.3%