Changeset View
Changeset View
Standalone View
Standalone View
README.md
Show All 13 Lines | |||||
- `swh.lister.github` | - `swh.lister.github` | ||||
- `swh.lister.gitlab` | - `swh.lister.gitlab` | ||||
- `swh.lister.gnu` | - `swh.lister.gnu` | ||||
- `swh.lister.pypi` | - `swh.lister.pypi` | ||||
- `swh.lister.npm` | - `swh.lister.npm` | ||||
- `swh.lister.phabricator` | - `swh.lister.phabricator` | ||||
- `swh.lister.cran` | - `swh.lister.cran` | ||||
- `swh.lister.cgit` | - `swh.lister.cgit` | ||||
- `swh.lister.packagist` | |||||
Dependencies | Dependencies | ||||
------------ | ------------ | ||||
All required dependencies can be found in the `requirements*.txt` files located | All required dependencies can be found in the `requirements*.txt` files located | ||||
at the root of the repository. | at the root of the repository. | ||||
Local deployment | Local deployment | ||||
▲ Show 20 Lines • Show All 186 Lines • ▼ Show 20 Lines | |||||
logging.basicConfig(level=logging.DEBUG) | logging.basicConfig(level=logging.DEBUG) | ||||
# simple cgit instance | # simple cgit instance | ||||
cgit_lister(url='https://git.kernel.org/') | cgit_lister(url='https://git.kernel.org/') | ||||
# cgit instance whose listed repositories differ from the base url | # cgit instance whose listed repositories differ from the base url | ||||
cgit_lister(url='https://cgit.kde.org/', | cgit_lister(url='https://cgit.kde.org/', | ||||
url_prefix='https://anongit.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 | Licensing | ||||
--------- | --------- | ||||
This program is free software: you can redistribute it and/or modify it under | This program is free software: you can redistribute it and/or modify it under | ||||
the terms of the GNU General Public License as published by the Free Software | the terms of the GNU General Public License as published by the Free Software | ||||
Foundation, either version 3 of the License, or (at your option) any later | Foundation, either version 3 of the License, or (at your option) any later | ||||
version. | version. | ||||
This program is distributed in the hope that it will be useful, but WITHOUT ANY | This program is distributed in the hope that it will be useful, but WITHOUT ANY | ||||
WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A | WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A | ||||
PARTICULAR PURPOSE. See the GNU General Public License for more details. | PARTICULAR PURPOSE. See the GNU General Public License for more details. | ||||
See top-level LICENSE file for the full text of the GNU General Public License | See top-level LICENSE file for the full text of the GNU General Public License | ||||
along with this program. | along with this program. |