- Mailing Lists
- Contributors
- Help solving a CI issue
Archives
- By thread 1419
-
By date
- August 2019 59
- September 2019 118
- October 2019 165
- November 2019 97
- December 2019 35
- January 2020 58
- February 2020 204
- March 2020 121
- April 2020 172
- May 2020 50
- June 2020 158
- July 2020 85
- August 2020 94
- September 2020 193
- October 2020 277
- November 2020 100
- December 2020 159
- January 2021 38
- February 2021 87
- March 2021 146
- April 2021 73
- May 2021 90
- June 2021 86
- July 2021 123
- August 2021 50
- September 2021 68
- October 2021 66
- November 2021 74
- December 2021 75
- January 2022 98
- February 2022 77
- March 2022 68
- April 2022 31
- May 2022 59
- June 2022 87
- July 2022 141
- August 2022 38
- September 2022 73
- October 2022 152
- November 2022 39
- December 2022 50
- January 2023 93
- February 2023 49
- March 2023 106
- April 2023 47
- May 2023 69
- June 2023 92
- July 2023 64
- August 2023 103
- September 2023 91
- October 2023 101
- November 2023 94
- December 2023 46
- January 2024 75
- February 2024 79
- March 2024 104
- April 2024 63
- May 2024 40
- June 2024 160
- July 2024 80
- August 2024 70
- September 2024 62
- October 2024 121
- November 2024 117
- December 2024 89
- January 2025 59
- February 2025 104
- March 2025 96
- April 2025 107
- May 2025 52
- June 2025 72
- July 2025 60
- August 2025 81
- September 2025 124
- October 2025 63
- November 2025 22
Contributors
Help solving a CI issue
Hello, I’m the new PSC of l10n-Argentina. We are delayed with uploading the modules to the repository due to a issue that I’m trying to solve.
If you see this PR (https://github.com/OCA/l10n-argentina/pull/66) you will see that CI is trying to install pyafipws like an external dependency. The problem is that the pipx package is outdated and I need to instal pyafipws from a github repository and follow some specific install guidelines.
I need to install the version in this repo https://github.com/reingart/pyafipws - branch py3k and also execute this commands:
Go to installation directory of PyAFIPWS:
If you see this PR (https://github.com/OCA/l10n-argentina/pull/66) you will see that CI is trying to install pyafipws like an external dependency. The problem is that the pipx package is outdated and I need to instal pyafipws from a github repository and follow some specific install guidelines.
I need to install the version in this repo https://github.com/reingart/pyafipws - branch py3k and also execute this commands:
Go to installation directory of PyAFIPWS:
cd /usr/local/lib/python3/dist-packages/pyafipws
Note: Replace
Create a folder with the name cache:
python3 by the python version in the system (like python3.9)Create a folder with the name cache:
sudo mkdir cache
Change permission of folder:
sudo chmod -R 777 cache
* extracted from one of our local wikis
This instructions can be easily followed in a local or production installation but I’m having trouble to replicate this with OCA CI since oca tries to install it with pipx and it will not work because we need an specific version.
This library is essential to our Argentinian localization since it’s a wrapper of our country AFIP api, which is widely used across all our localization. So electronic invoice modules can not work without it.
So I’m thinking in writing a custom CI workflow with GitHub actions but don’t know if it’s allowed in OCA and also don’t know where to start.
I will be dedicating time to this next week so any input or suggestion of how to do that will be great.
Any of you had to do something similar in the past? If you can refer me to a repo which also need something similar or point me in the correct direction about this I will be very great
full since I want to do it without changing OCA CI configuration too much.
Help will be highly appreciated.
Also, if any of you with repo access can make branch 14.0 the default one in the repository, it will be great, since we are going to start migrating version 14.0 first, adapt the modules and add tests and the migrate to 15 and 16.
Sorry for the length of the email. Hope you can provide some input. Thanks and regards.
This instructions can be easily followed in a local or production installation but I’m having trouble to replicate this with OCA CI since oca tries to install it with pipx and it will not work because we need an specific version.
This library is essential to our Argentinian localization since it’s a wrapper of our country AFIP api, which is widely used across all our localization. So electronic invoice modules can not work without it.
So I’m thinking in writing a custom CI workflow with GitHub actions but don’t know if it’s allowed in OCA and also don’t know where to start.
I will be dedicating time to this next week so any input or suggestion of how to do that will be great.
Any of you had to do something similar in the past? If you can refer me to a repo which also need something similar or point me in the correct direction about this I will be very great
full since I want to do it without changing OCA CI configuration too much.
Help will be highly appreciated.
Also, if any of you with repo access can make branch 14.0 the default one in the repository, it will be great, since we are going to start migrating version 14.0 first, adapt the modules and add tests and the migrate to 15 and 16.
Sorry for the length of the email. Hope you can provide some input. Thanks and regards.
by Nicolas Rodriguez Sande - 01:21 - 2 Nov 2022
Follow-Ups
-
Re: Help solving a CI issue
> I need to install the version in this > repo https://github.com/reingart/pyafipws - branch py3k and also execute > this commands: you can use external_dependencies_override (cf https://pypi.org/project/ setuptools-odoo/#controlling-setuptools-odoo-behaviour) where you can do something like pyafipws@https://github.com/reingart/pyafipws/archive/py3k.zip (cf https://pip.pypa.io/en/stable/reference/requirement-specifiers/ #requirement-specifiers) > Go to installation directory of PyAFIPWS: > cd /usr/local/lib/python3/dist-packages/pyafipws > Note: Replace python3 by the python version in the system (like python3.9) > Create a folder with the name cache: > sudo mkdir cache > Change permission of folder: > sudo chmod -R 777 cache > * extracted from one of our local wikis I'd strongly suggest to fix this in the python package itself, this will make stuff better for anyone involved anyways. Having a cache directory there is quite wrong, this should go to /var/cache or ~/.cache (cf https:// en.wikipedia.org/wiki/Filesystem_Hierarchy_Standard), and you can create this for the global case (local can just create it on first run) during installation by overriding the install command class passing a custom cmdclass (cf https:// docs.python.org/3/distutils/extending.html#integrating-new-commands) dict. -- Your partner for the hard Odoo problems https://hunki-enterprises.com
by Holger Brunn - 07:30 - 2 Nov 2022