Giter Site home page Giter Site logo

Comments (6)

pedrobaeza avatar pedrobaeza commented on July 20, 2024

Hi, @mymage. If I look at the setup folder of any repository, I see the folder with underscores, not dashes:

https://github.com/OCA/l10n-spain/tree/15.0/setup

So I think it's correct right now.

from maintainer-tools.

mymage avatar mymage commented on July 20, 2024

Hola @pedrobaeza I apologize, you are right for module name, I copied/wrote it wrong.

But on PR OCA/management-system#498 still open I used the format
odoo-addon-<module_name_with_underscore> @ git+https://github.com/OCA/<repository>.git@refs/pull/<PR_number>/head#subdirectory=setup/<module_name_with_underscore> and it works.
I don't know if the initial odoo-addon-* part depends on the repo.

The <repository>/refs part on the wiki I think it is wrong at least for the / that has to be @, the .git is only to evidence the difference beween the "name" of the repository and the "object" (for us newbie).

Thanks

from maintainer-tools.

chienandalu avatar chienandalu commented on July 20, 2024

Having similar issues with another PR (OCA/survey@986a1f6), another point to take into account is how the repository modules are packed. In my case, had to to prefix my requirement with odoo13-addon- (maybe @sbidoul can enlighten us on why this difference between repositories, that I guess it has to do with this https://github.com/acsone/setuptools-odoo#versioning although I don't fully understand it 😅 )

from maintainer-tools.

sbidoul avatar sbidoul commented on July 20, 2024

Hi @chienandalu. For Odoo < 15, PyPI package names are constructed as odoo{series}-addon-addon_name. For Odoo >= 15, it is odoo-addon-addon_name.

The reason we could do this change, is that the pip dependency resolver is now smart enough to pick-up the correct addon version based on the installed Odoo version, so we can now have the same package name across Odoo series, which is simpler and avoid to create a whole new set of PyPI projects for each new Odoo series.

@mymage

  • Underscores vs dashes in package names don't matter for python packaging, but in the subdirectory part, it is important to use underscores, since it is the directory name. So it's better to user underscores in addon names everywhere.
  • The .git suffix in the repository URL should not matter for GitHub.

from maintainer-tools.

chienandalu avatar chienandalu commented on July 20, 2024

Thanks for the heads up @sbidoul ! All clear now 👍

from maintainer-tools.

pedrobaeza avatar pedrobaeza commented on July 20, 2024

Updated according this: https://github.com/OCA/maintainer-tools/wiki/Use-temporary-reference(s)-to-another-pull-request(s)

from maintainer-tools.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.