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

odoo/requirements.txt - Poetry OR virtualenv, pip install -r requirements.txt #1

Open
bobslee opened this issue Feb 14, 2022 · 1 comment
Labels
enhancement New feature or request

Comments

@bobslee
Copy link
Member

bobslee commented Feb 14, 2022

Currently Poetry is used to manage Python packages in virtualenv.
However we need to create a pyproject.toml file from Odoo's requirments.txt, which is not ideal.

ALTERNATIVE 1 - convert to pyproject.toml

https://github.com/src-r-r/python-stanza
https://github.com/kk6/poetrify

ALTERNATIVE 2 - (tools: virtualenv, pip)

dev-server.sh install

Executes:

# check if [ ! .venv ]
virtualenv .venv
# check and raise odoo/requirements.txt
./.venv/bin/pip install -U -r odoo/requirements.txt
# check if addons/requirements.txt
./.venv/bin/pip install -U -r addons/requirements.txt
@bobslee bobslee added the enhancement New feature or request label Feb 14, 2022
@bobslee bobslee changed the title virtualenv, pip install -r requirements.txt Poetry TO virtualenv, pip install -r requirements.txt Feb 14, 2022
@bobslee bobslee changed the title Poetry TO virtualenv, pip install -r requirements.txt odoo/requirements.txt - Poetry OR virtualenv, pip install -r requirements.txt Feb 14, 2022
@bobslee
Copy link
Member Author

bobslee commented Feb 14, 2022

ALTERNATIVE 1 - convert to pyproject.toml

Tested but doesn't work !
Too error-prone with installing those libraries in virtualenv, and weird errors upon executing the commands.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant