py-swh-loader-npm-0.0.7 import to wip

This commit is contained in:
K.I.A.Derouiche 2020-12-27 11:08:39 +01:00
parent afa6561613
commit 5203a2d97c
4 changed files with 112 additions and 0 deletions

23
py-swh-loader-npm/DESCR Normal file
View File

@ -0,0 +1,23 @@
TODO: Adjust the following lines from README.md
swh-loader-npm
==============
Software Heritage loader to ingest [`npm`](https://www.npmjs.com/) packages into the archive.
# What does the loader do?
The npm loader visits and loads a npm package [1].
Each visit will result in:
- 1 snapshot (which targets n revisions ; 1 per package release version)
- 1 revision (which targets 1 directory ; the package release version uncompressed)
[1] https://docs.npmjs.com/about-packages-and-modules
## First visit
Given a npm package (origin), the loader, for the first visit:
- retrieves information for the given package (notably released versions)
...

View File

@ -0,0 +1,30 @@
# $NetBSD$
DISTNAME= swh.loader.npm-0.0.7
PKGNAME= ${PYPKGPREFIX}-swh-loader-npm-0.0.7
CATEGORIES= devel python
MASTER_SITES= ${MASTER_SITE_PYPI:=s/swh.loader.npm/}
MAINTAINER= kamelderouiche@yahoo.com
HOMEPAGE= https://forge.softwareheritage.org/source/swh-loader-npm.git
COMMENT= Software Heritage loader for npm packages
LICENSE= gnu-gpl-v3
PYTHON_VERSIONS_INCOMPATIBLE+= 27
DEPENDS+= ${PYPKGPREFIX}-requests>=2.25.0:../../devel/py-requests
DEPENDS+= ${PYPKGPREFIX}-vcversioner>=2.16.0.0:../../devel/py-vcversioner
DEPENDS+= ${PYPKGPREFIX}-chardet>=3.0.4:../../converters/py-chardet
DEPENDS+= ${PYPKGPREFIX}-dateutil>=2.8.1:../../time/py-dateutil
DEPENDS+= ${PYPKGPREFIX}-swh-model>=0.7.2:../../wip/py-swh-model
DEPENDS+= ${PYPKGPREFIX}-swh-storage>=0.0.83:../../wip/py-swh-storage
DEPENDS+= ${PYPKGPREFIX}-swh-scheduler>=0.0.39:../../wip/py-swh-scheduler
DEPENDS+= ${PYPKGPREFIX}-swh-core>=0.10.0:../../wip/py-swh-core
TEST_DEPENDS+= ${PYPKGPREFIX}-test>=6.2.0:../../devel/py-test
TEST_DEPENDS+= ${PYPKGPREFIX}-requests-mock>=1.8.0:../../devel/py-requests-mock
TEST_DEPENDS+= ${PYPKGPREFIX}-swh-core>=0.10.0:../../wip/py-swh-core
USE_LANGUAGES= # none
.include "../../lang/python/egg.mk"
.include "../../mk/bsd.pkg.mk"

53
py-swh-loader-npm/PLIST Normal file
View File

@ -0,0 +1,53 @@
@comment $NetBSD$
${PYSITELIB}/${EGG_INFODIR}/PKG-INFO
${PYSITELIB}/${EGG_INFODIR}/SOURCES.txt
${PYSITELIB}/${EGG_INFODIR}/dependency_links.txt
${PYSITELIB}/${EGG_INFODIR}/requires.txt
${PYSITELIB}/${EGG_INFODIR}/top_level.txt
${PYSITELIB}/swh/__init__.py
${PYSITELIB}/swh/__init__.pyc
${PYSITELIB}/swh/__init__.pyo
${PYSITELIB}/swh/loader/__init__.py
${PYSITELIB}/swh/loader/__init__.pyc
${PYSITELIB}/swh/loader/__init__.pyo
${PYSITELIB}/swh/loader/npm/__init__.py
${PYSITELIB}/swh/loader/npm/__init__.pyc
${PYSITELIB}/swh/loader/npm/__init__.pyo
${PYSITELIB}/swh/loader/npm/client.py
${PYSITELIB}/swh/loader/npm/client.pyc
${PYSITELIB}/swh/loader/npm/client.pyo
${PYSITELIB}/swh/loader/npm/loader.py
${PYSITELIB}/swh/loader/npm/loader.pyc
${PYSITELIB}/swh/loader/npm/loader.pyo
${PYSITELIB}/swh/loader/npm/tasks.py
${PYSITELIB}/swh/loader/npm/tasks.pyc
${PYSITELIB}/swh/loader/npm/tasks.pyo
${PYSITELIB}/swh/loader/npm/tests/__init__.py
${PYSITELIB}/swh/loader/npm/tests/__init__.pyc
${PYSITELIB}/swh/loader/npm/tests/__init__.pyo
${PYSITELIB}/swh/loader/npm/tests/common.py
${PYSITELIB}/swh/loader/npm/tests/common.pyc
${PYSITELIB}/swh/loader/npm/tests/common.pyo
${PYSITELIB}/swh/loader/npm/tests/resources/0b_metadata.json
${PYSITELIB}/swh/loader/npm/tests/resources/22u-validators_metadata.json
${PYSITELIB}/swh/loader/npm/tests/resources/org_metadata_visit1.json
${PYSITELIB}/swh/loader/npm/tests/resources/org_metadata_visit2.json
${PYSITELIB}/swh/loader/npm/tests/resources/tarballs/0b-1.0.0.tgz
${PYSITELIB}/swh/loader/npm/tests/resources/tarballs/org-0.0.2.tgz
${PYSITELIB}/swh/loader/npm/tests/resources/tarballs/org-0.0.3.tgz
${PYSITELIB}/swh/loader/npm/tests/resources/tarballs/org-0.0.4.tgz
${PYSITELIB}/swh/loader/npm/tests/resources/tarballs/org-0.0.5.tgz
${PYSITELIB}/swh/loader/npm/tests/resources/tarballs/org-0.1.0.tgz
${PYSITELIB}/swh/loader/npm/tests/resources/tarballs/org-0.2.0.tgz
${PYSITELIB}/swh/loader/npm/tests/test_client.py
${PYSITELIB}/swh/loader/npm/tests/test_client.pyc
${PYSITELIB}/swh/loader/npm/tests/test_client.pyo
${PYSITELIB}/swh/loader/npm/tests/test_loader.py
${PYSITELIB}/swh/loader/npm/tests/test_loader.pyc
${PYSITELIB}/swh/loader/npm/tests/test_loader.pyo
${PYSITELIB}/swh/loader/npm/tests/test_utils.py
${PYSITELIB}/swh/loader/npm/tests/test_utils.pyc
${PYSITELIB}/swh/loader/npm/tests/test_utils.pyo
${PYSITELIB}/swh/loader/npm/utils.py
${PYSITELIB}/swh/loader/npm/utils.pyc
${PYSITELIB}/swh/loader/npm/utils.pyo

View File

@ -0,0 +1,6 @@
$NetBSD$
SHA1 (swh.loader.npm-0.0.7.tar.gz) = 00b001f1ac9365e7b9bbab3a7a40d8d8384362db
RMD160 (swh.loader.npm-0.0.7.tar.gz) = 01ed6e23c5a89f6d83e11ead2ad2f04dbd98b965
SHA512 (swh.loader.npm-0.0.7.tar.gz) = 295d659533e64511e0d0045c6f6321e8fde7b88c6a37ab4d74a3cde321f0c630d5a5175cd5fe4438a70638f6f381ef5c6bfc18fdf8bacf6821cbf4d7c23f5333
Size (swh.loader.npm-0.0.7.tar.gz) = 164509 bytes