swh.lister.packagist

Implement a packagist lister to list the
names and metadata url of all the
packages.

Closes 1776
This commit is contained in:
Archit Agrawal 2019-07-08 00:40:47 +05:30
parent 08ade29e6d
commit 5727f15cf3
12 changed files with 246 additions and 2 deletions

View file

@ -19,6 +19,7 @@ following Python modules:
- `swh.lister.phabricator`
- `swh.lister.cran`
- `swh.lister.cgit`
- `swh.lister.packagist`
Dependencies
------------
@ -221,6 +222,19 @@ cgit_lister(url='https://cgit.kde.org/',
url_prefix='https://anongit.kde.org/')
```
## lister-packagist
Once configured, you can execute a Packagist lister using the following instructions
in a `python3` script:
```lang=python
import logging
from swh.lister.packagist.tasks import packagist_lister
logging.basicConfig(level=logging.DEBUG)
packagist_lister()
```
Licensing
---------