Important Attn: Addon Devs - Python 3 compatible addons - Printable Version +- Kodi Community Forum (https://forum.kodi.tv) +-- Forum: Development (https://forum.kodi.tv/forumdisplay.php?fid=32) +--- Forum: Add-ons (https://forum.kodi.tv/forumdisplay.php?fid=26) +--- Thread: Important Attn: Addon Devs - Python 3 compatible addons (/showthread.php?tid=351745) |
RE: Attn: Addon Devs - Python 3 compatible addons - mediaminister - 2020-03-19 When I take a look at https://github.com/xbmc/repo-scripts/pulls, I see that some add-ons add +matrix to the version number and other add-ons add .1 to the version number. So, I'm wondering what the difference is and what the best practice is for a Py2/3 compatible add-on. What version scheme should be used for Py2/3 compatible video plugins, script modules, etc... RE: Attn: Addon Devs - Python 3 compatible addons - ronie - 2020-03-19 yup, it's an issue we're trying to solve for upstream/pypi python modules. things like beautifulsoup4, requests, dateutil, urllib3, etc... those python libraries have their own version numbers and we'd like to respect those. for instance, python requests is currently at version 2.23.0. but we can't have script.module.requests 2.23.0 in both our leia repo and our matrix repo, as the version in matrix needs to be higher than the leia version. so the idea is to use: leia - script.module.requests 2.23.0 matrix - script.module.requests 2.23.0+matrix.1 RE: Attn: Addon Devs - Python 3 compatible addons - pkscout - 2020-03-20 (2020-03-18, 10:49)mediaminister Wrote: There is still great confusion for me regarding this change which makes it impossible for me to customize add-ons for use with Kodi 19 Matrix. I don't know about best practice, but here's what I did with Artist Slideshow.
As I do maintenance updates, the last digit can be updated 99 times before I run into a duplication problem. So the next minor update would be:
And if I do a minor or major update, the maintenance number resets. So:
Since the code base is the same, this lets me maintain basically the same versioning but makes sure the Matrix version is always newer. RE: Attn: Addon Devs - Python 3 compatible addons - jay.kody - 2020-03-31 @ronie Can you add the info from this thread to the https://kodi.wiki/view/Submitting_Add-ons wiki page? It would be nice to have this thread documented in a more compact way. RE: Attn: Addon Devs - Python 3 compatible addons - vl_maksime - 2020-03-31 I need advice, how to organize a repository to automatically update all my add-ons when update Kodi from 18 to 19 without reinstalling all add-ons and dependencies? I made two separate repositories: Kodi 14-18 and Kodi 19. When I update from Kodi 18 to Kodi 19, all add-ons are disabled. When I try to update the main add-on, appears error "The dependency on xbmc.python version 2.19.0 could not be satisfied". It's because that the all dependencies are disabled, they are from Kodi 18 and they don't updates when I'm update main addon. So I have to manually update all the dependencies, then the main add-on. Here is repository descriptions and repository structure. RE: Attn: Addon Devs - Python 3 compatible addons - Skipmode A1 - 2020-04-04 I was wondering why do i need to bump the dependencies? Also bump it to what? +matrix.1? Or to whatever the author decided on the version in the python 3 branch? RE: Attn: Addon Devs - Python 3 compatible addons - Roman_V_M - 2020-04-04 (2020-04-04, 08:02)Skipmode A1 Wrote: I was wondering why do i need to bump the dependencies? If you mean library dependencies, the version attribute specified the minimal required version number and is actually optional. BTW, I have updated my kodi-addon-submitter script that allows to automate addon submission using CI/CD pipelines like Travis CI or GitHub Actions. Now it supports parallel submissions of Python 2/3 addons to Matrix and lower branches. It means that if you submit a Python 2/3 compatible addon, for example, to Krypton branch, the script will automatically update addon.xml with proper version numbers and create an additional pull request to Matrix branch. |