-
- Downloads
Reimplement Gitea lister using new Lister API
The lister is stateless and has full listing capability. It can request the Gitea API using HTTP token authentication. Rate-limiting was not encountered but is handled generically. Added support for getting repo last update date through API.
Showing
- swh/lister/gitea/__init__.py 1 addition, 2 deletionsswh/lister/gitea/__init__.py
- swh/lister/gitea/lister.py 109 additions, 63 deletionsswh/lister/gitea/lister.py
- swh/lister/gitea/models.py 0 additions, 18 deletionsswh/lister/gitea/models.py
- swh/lister/gitea/tasks.py 14 additions, 38 deletionsswh/lister/gitea/tasks.py
- swh/lister/gitea/tests/data/https_try.gitea.io/api_empty_response.json 0 additions, 4 deletions...tea/tests/data/https_try.gitea.io/api_empty_response.json
- swh/lister/gitea/tests/data/https_try.gitea.io/repos_page1 154 additions, 141 deletionsswh/lister/gitea/tests/data/https_try.gitea.io/repos_page1
- swh/lister/gitea/tests/data/https_try.gitea.io/repos_page2 252 additions, 0 deletionsswh/lister/gitea/tests/data/https_try.gitea.io/repos_page2
- swh/lister/gitea/tests/test_lister.py 119 additions, 53 deletionsswh/lister/gitea/tests/test_lister.py
- swh/lister/gitea/tests/test_tasks.py 23 additions, 109 deletionsswh/lister/gitea/tests/test_tasks.py
Loading
Please register or sign in to comment