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

[ADD] 17.0 analysis #4294

Merged
merged 3 commits into from
Feb 27, 2024
Merged

[ADD] 17.0 analysis #4294

merged 3 commits into from
Feb 27, 2024

Conversation

StefanRijnhart
Copy link
Member

No description provided.

Copy link
Contributor

@legalsylvain legalsylvain left a comment

Choose a reason for hiding this comment

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

Minor remarks inline.

Thanks for initializing OpenUpgrade 17.0 !

Comment on lines 1 to 2
This module is a containers of migration script to migrate from 15.0 to
16.0 version.
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
This module is a containers of migration script to migrate from 15.0 to
16.0 version.
This module is a containers of migration script to migrate from 16.0 to
17.0 version.

Copy link
Member Author

@StefanRijnhart StefanRijnhart Feb 3, 2024

Choose a reason for hiding this comment

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

Thanks, fixed now!

requirements.txt Outdated
@@ -1 +1,2 @@
openupgradelib @ git+https://github.com/OCA/openupgradelib@master
# generated from manifests external_dependencies
openupgradelib
Copy link
Contributor

Choose a reason for hiding this comment

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

Why this change ?
As soon as merging a PR in openupgradelib doens't generate a new package on pypi, I guess that we should keep the url "openupgradelib @ git+https://github.com/OCA/openupgradelib@master"

Don't you think ?

Copy link
Member Author

Choose a reason for hiding this comment

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

Thanks! Fixed by setting the external dependency in the module manifest to this git notation.

@legalsylvain
Copy link
Contributor

/ocabot migration openupgrade_scripts

@OCA-git-bot OCA-git-bot added this to the 17.0 milestone Feb 2, 2024
@OCA-git-bot OCA-git-bot mentioned this pull request Feb 2, 2024
99 tasks
merged_models = {
# odoo
# OCA/...
}
Copy link
Contributor

Choose a reason for hiding this comment

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

This file is empty. FYI, I began a list of renamed / merged Odoo modules here :
#4124 (comment)

Copy link
Member Author

@StefanRijnhart StefanRijnhart Feb 3, 2024

Choose a reason for hiding this comment

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

Thanks! Great work on the renamed and merge modules. I updated apriori with it and reran the analysis.

@StefanRijnhart StefanRijnhart force-pushed the 17.0-analysis branch 2 times, most recently from 5561fa3 to 80705f3 Compare February 3, 2024 08:45
@StefanRijnhart StefanRijnhart marked this pull request as ready for review February 3, 2024 09:50
@alexisadrianc
Copy link

👍

Copy link
Contributor

@legalsylvain legalsylvain left a comment

Choose a reason for hiding this comment

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

Thanks !

/ocabot merge nobump

@OCA-git-bot
Copy link
Contributor

On my way to merge this fine PR!
Prepared branch 17.0-ocabot-merge-pr-4294-by-legalsylvain-bump-nobump, awaiting test results.

@OCA-git-bot OCA-git-bot merged commit 6c04175 into OCA:17.0 Feb 27, 2024
1 check passed
@OCA-git-bot
Copy link
Contributor

@legalsylvain The merge process could not be finalized, because command twine upload --repository-url https://upload.pypi.org/legacy/ -u __token__ odoo_addon_openupgrade_scripts-17.0.1.0.0.3-py3-none-any.whl failed with output:

Uploading distributions to https://upload.pypi.org/legacy/
Uploading odoo_addon_openupgrade_scripts-17.0.1.0.0.3-py3-none-any.whl
�[?25l
�[2K�[35m  0%�[0m �[90m━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━�[0m �[32m0.0/478.7 kB�[0m • �[36m--:--�[0m • �[31m?�[0m
�[2K�[35m  0%�[0m �[90m━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━�[0m �[32m0.0/478.7 kB�[0m • �[36m--:--�[0m • �[31m?�[0m
�[2K�[35m  0%�[0m �[90m━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━�[0m �[32m0.0/478.7 kB�[0m • �[36m--:--�[0m • �[31m?�[0m
�[2K�[35m 17%�[0m �[91m━━━━━━�[0m�[91m╸�[0m�[90m━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━�[0m �[32m81.9/478.7 kB�[0m • �[36m00:01�[0m • �[31m37.1 MB/s�[0m
�[2K�[35m 33%�[0m �[91m━━━━━━━━━━━━━�[0m�[90m╺�[0m�[90m━━━━━━━━━━━━━━━━━━━━━━━━━━�[0m �[32m155.6/478.7 kB�[0m • �[36m00:01�[0m • �[31m1.4 MB/s�[0m
�[2K�[35m 53%�[0m �[91m━━━━━━━━━━━━━━━━━━━━━�[0m�[90m╺�[0m�[90m━━━━━━━━━━━━━━━━━━�[0m �[32m254.0/478.7 kB�[0m • �[36m00:01�[0m • �[31m1.1 MB/s�[0m
�[2K�[35m 91%�[0m �[91m━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━�[0m�[90m╺�[0m�[90m━━━�[0m �[32m434.2/478.7 kB�[0m • �[36m00:01�[0m • �[31m1.3 MB/s�[0m
�[2K�[35m100%�[0m �[90m━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━�[0m �[32m478.7/478.7 kB�[0m • �[33m00:00�[0m • �[31m1.1 MB/s�[0m
�[2K�[35m100%�[0m �[90m━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━�[0m �[32m478.7/478.7 kB�[0m • �[33m00:00�[0m • �[31m1.1 MB/s�[0m
�[2K�[35m100%�[0m �[90m━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━�[0m �[32m478.7/478.7 kB�[0m • �[33m00:00�[0m • �[31m1.1 MB/s�[0m
�[2K�[35m100%�[0m �[90m━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━�[0m �[32m478.7/478.7 kB�[0m • �[33m00:00�[0m • �[31m1.1 MB/s�[0m
�[2K�[35m100%�[0m �[90m━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━�[0m �[32m478.7/478.7 kB�[0m • �[33m00:00�[0m • �[31m1.1 MB/s�[0m
�[2K�[35m100%�[0m �[90m━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━�[0m �[32m478.7/478.7 kB�[0m • �[33m00:00�[0m • �[31m1.1 MB/s�[0m
�[?25h�[33mWARNING �[0m Error during upload. Retry with the --verbose option for more details. 
�[31mERROR   �[0m HTTPError: 400 Bad Request from https://upload.pypi.org/legacy/        
         Invalid value for requires_dist. Error: Can't have direct dependency:  
         'openupgradelib @ git+https://github.com/OCA/openupgradelib.git@master'

@legalsylvain
Copy link
Contributor

@sbidoul : maybe do you have an idea about the correct syntax to add git dependency for python package.
here is the current code :

    "external_dependencies": {
        "python": [
            "openupgradelib @ git+https://github.com/OCA/openupgradelib.git@master"
        ]
    },

@sbidoul
Copy link
Member

sbidoul commented Feb 27, 2024

@legalsylvain it's

"external_dependencies": {
        "python": [
            "openupgradelib"
        ]
    },

There is no way to declare the git URL in external dependencies.

@legalsylvain
Copy link
Contributor

There is no way to declare the git URL in external dependencies.

I mean, in V16 or before, there was a way to define alternative package in setup.py. There is a way to mention git url in pyproject.toml ?

@sbidoul
Copy link
Member

sbidoul commented Feb 27, 2024

I mean, in V16 or before, there was a way to define alternative package in setup.py.

External dependencies overrides are still possible with pyproject.toml.

There is a way to mention git url in pyproject.toml ?

That (a git URL) was not possible with setup.py either.

The only place we can do this is in test-requirements.txt, IIRC.

@legalsylvain
Copy link
Contributor

Thanks a lot @sbidoul

@tracencode

This comment was marked as off-topic.

@rvalyi

This comment was marked as off-topic.

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.

7 participants