OCA / delivery-carrier

Odoo Carriers And Deliveries Management
https://odoo-community.org/psc-teams/logistics-18
GNU Affero General Public License v3.0
112 stars 351 forks source link

[14.0] Install easypost dependencies #869

Closed antoniodavid closed 1 month ago

antoniodavid commented 1 month ago

I have created a new addon 868 to integrate the connection with EasyPost, but the GitHub Actions are not passing, as it fails to install the dependency in the required version.

The error is in the Python version installed, which is installing 3.6.

image

rousseldenis commented 1 month ago

That's why you shouldn't fix the easypost package version as pip will try to find the latest one for the current Python version in use in environment (version 9.3.0 is for Python >= 3.7)

rousseldenis commented 1 month ago

@antoniodavid you should set "easypost<8" in external dependencies

antoniodavid commented 1 month ago

Thank you for responding so quickly @rousseldenis, but I would like to know why the version being installed for Odoo 14 is 3.6 when the recommended version is 3.8.5.

rousseldenis commented 1 month ago

Thank you for responding so quickly @rousseldenis, but I would like to know why the version being installed for Odoo 14 is 3.6 when the recommended version is 3.8.5.

In fact, this has always be debated. If I remember correctly, we decided to run our tests instance with the minimum version required by Odoo which is for v14 : https://github.com/odoo/odoo/blob/14.0/setup.py#L58

antoniodavid commented 1 month ago

Thank you very much, I will see how I can fix it.