Skip to content

Add pyproject.toml.#3

Closed
Hussam-Suleiman wants to merge 1 commit into18.0from
18.0-uv
Closed

Add pyproject.toml.#3
Hussam-Suleiman wants to merge 1 commit into18.0from
18.0-uv

Conversation

@Hussam-Suleiman
Copy link
Copy Markdown

No description provided.

Comment thread pyproject.toml
# indirect unrealeased dependencies
#"odoo-addons-design-themes==18.0.*",
# Add some constraints to Odoo deps that should be in their setup.py
"pyyaml==6.0.2",
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Where did you get this requirement from?

Comment thread pyproject.toml
#"odoo-addons-design-themes==18.0.*",
# Add some constraints to Odoo deps that should be in their setup.py
"pyyaml==6.0.2",
"appdirs==1.4.4",
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

And this one? I can go on for each module, but the general question would be:

Can you base yourself on:

https://github.com/odoo/odoo/blob/18.0/requirements.txt

Because basically that's all that we need, any other requirements and their versions should be defined in the manifest of the OCA modules and not here. For example this one (just as an example, this particular module is not used in this project)

Comment thread pyproject.toml
"manifestoo>=1.0",
"odoo-test-helper",
"websocket-client",
]
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

What would be nice if, in our PR, we can see which has been taken over from the old 14.0 file and which is added as a change to 18.0. So for this we can pull over the original commit(s) using a technical git command, and then put our changes on top. The technical commands to do this are roughly these

which would translate in this case to something like

$ git clone https://github.com/OCA/$repo -b 14.0
$ cd $repo
$ git checkout -b 18.0-add-pyproject-toml origin/18.0
$ git format-patch --keep-subject --stdout origin/18.0..origin/14.0 -- pyproject.toml | git am -3 --keep

And then overwrite pyproject.toml with the current file with your edits, and commit the changes:
$ cp /tmp/pyproject.toml .
$ git commit -m "[MIG] pyproject.toml 14 to 18" 

Comment thread pyproject.toml

# unreleased dependency, add it to test-requirements.txt to let the
# test pipeline to use it as well
#odoo-addons-design-themes = { git = "https://github.com/acsone/design-themes", branch = "14.0-with-pyproject" }
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

I think we can leave this one out completely, we don't need a website theme

Comment thread pyproject.toml
# unreleased dependency, add it to test-requirements.txt to let the
# test pipeline to use it as well
#odoo-addons-design-themes = { git = "https://github.com/acsone/design-themes", branch = "14.0-with-pyproject" }
#odoo18-addon-website-apps-store = { git = "https://github.com/OCA/apps-store", rev = "refs/tree/18.0/head"}
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

This can be left out completely, we are deinstalling the app store modules as part of the migration

Comment thread pyproject.toml

# Example to develop module from an other repository
# installing in editable mode
# odoo14-addon-membership-delegated-partner-line = { path = "src/vertical-association/setup/membership_delegated_partner_line", editable = true }
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

This module is added here:

OCA/vertical-association#214

So for that I think we should add something like:

odoo18-addon-membership-delegated-partner-line = { path = "https://github.com/gfcapalbo/membership", branch = "18.0-MIG-membership_delegated_partner_line" }

Until it gets merged of course

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