Comments (6)
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.
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.
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.
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.
- 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.
Thanks for the heads up @sbidoul ! All clear now 👍
from maintainer-tools.
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)
- False warning C7902(missing-readme) on some repo HOT 3
- pre-commit crashes in CI HOT 1
- Documentation for the best way to manage a high number of OCA repositories HOT 11
- I faced with error while using this module in pre-commit. HOT 1
- About squashing translation commits HOT 2
- Update our tooling to support Odoo 17 HOT 20
- Mention `odoo-module-migrator` in migration procedure wiki page HOT 1
- Mention `oca-port` in migration procedure wiki page HOT 6
- oca-gen-addon-readme: exits with no error if `description.rst` is not present HOT 14
- Update migration v17 Wiki HOT 2
- Clarify CONTRIBUTOR.md formatting HOT 20
- Wiki migration 17.0: New Settings format HOT 1
- oca-gen-addon-readme: stop emitting an XML declaration HOT 1
- Fail to run pre-commit on OCA project: ERROR No matching distribution found for setuptools_scm HOT 2
- Update wiki "Migration to version 16.0" with `fields_view_get` becomes `get_view` HOT 2
- Mention data-hotkey in the 15.0 migration guide
- delete
- WIKI for documentation HOT 6
- module 'github3' has no attribute 'authorize'
- copy_maintainers script fails syncing the big teams HOT 7
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from maintainer-tools.