generated from KOLANICH/python_project_boilerplate.py
Converts addons.mozilla.org releases into a git repo
| .github | Initial commit | |
| AMO2Git | Initial commit | |
| .editorconfig | Initial commit | |
| .gitignore | Initial commit | |
| .gitlab-ci.yml | Initial commit | |
| Code_Of_Conduct.md | Initial commit | |
| MANIFEST.in | Initial commit | |
| pyproject.toml | Initial commit | |
| ReadMe.md | Initial commit | |
| UNLICENSE | Initial commit | |
AMO2Git.py Unlicensed work
(削除) wheel (GitLab) (削除ここまで)
(削除) wheel (GHA via
nightly.link) (削除ここまで)(削除) GitLab Build Status (削除ここまで)
(削除) GitLab Coverage (削除ここまで)
(削除) GitHub Actions (削除ここまで)
Libraries.io Status
Code style: antiflash
This tool converts a release history on AMO into a git repo history. Useful when the addon developer is uncooperative.
Prerequisites
- Install
aria2c. Windows version can be downloaded here. - Install
git. - Install
git-lfs. On Windows git-lfs is shipped with modern versions of Git for Windows. - Install
Python 3. For Windows I recommend Anaconda.Python 2is dead, stop raping its corpse. Use2to3with manual postprocessing to migrate incompatible code to3. It shouldn't take so much time. - Install this tool and its dependencies:
-
plumbumPyPi Status TravisCI Build Status License - for command line interface -
tqdmPyPi Status TravisCI Build Status License - for progressbars -
gitpythonPyPi Status TravisCI Build Status License - for operations with git -
requestsPyPi Status TravisCI Build Status License - for interacting to AMO RESTful API.
Usage
- Obtain an addon
id,slugor guid. Or you can just pass an URI, the program will parse theslugfrom it itself.
-
On Windows:
AMO2git retreive <addon slug or URI> > ./retrieve.battype ./retrieve.batand examine the shell script../retrieve.bat
-
On Linux:
AMO2git retreive <addon slug or URI> > ./retrieve.shless ./retrieve.shand examine the shell script.chmod +x ./retrieve.sh./retrieve.sh
- The files will be downloaded to the subdir of the current working directory.
AMO2git convert <addon slug or URI>The tool will create a subdir with the repo. WebExtension, restartless (bootstrap.js) and xul versions of the addon will be in the corresponding branches. Versions will be marked with tags.