swh.loader.mercurial 3.4.0__py3-none-any.whl → 3.5.0__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
File without changes
@@ -28,7 +28,7 @@ def compute_nar_hash_for_ref(
28
28
  tmp_path = Path(os.path.join(temp_dir, "compute-nar"))
29
29
  tmp_path.mkdir(exist_ok=True)
30
30
  repo = clone_repository(repo_url, ref, tmp_path)
31
- nar = Nar(hash_names=[hash_name], exclude_vcs=True)
31
+ nar = Nar(hash_names=[hash_name], exclude_vcs=True, vcs_type="hg")
32
32
  nar.serialize(repo)
33
33
  return nar.hexdigest()[hash_name]
34
34
 
@@ -0,0 +1,87 @@
1
+ Metadata-Version: 2.1
2
+ Name: swh.loader.mercurial
3
+ Version: 3.5.0
4
+ Summary: Software Heritage Mercurial Loader
5
+ Author-email: Software Heritage developers <swh-devel@inria.fr>
6
+ Project-URL: Homepage, https://gitlab.softwareheritage.org/swh/devel/swh-loader-mercurial
7
+ Project-URL: Bug Reports, https://gitlab.softwareheritage.org/swh/devel/swh-loader-mercurial/-/issues
8
+ Project-URL: Funding, https://www.softwareheritage.org/donate
9
+ Project-URL: Documentation, https://docs.softwareheritage.org/devel/swh-loader-mercurial/
10
+ Project-URL: Source, https://gitlab.softwareheritage.org/swh/devel/swh-loader-mercurial.git
11
+ Classifier: Programming Language :: Python :: 3
12
+ Classifier: Intended Audience :: Developers
13
+ Classifier: License :: OSI Approved :: GNU General Public License v3 (GPLv3)
14
+ Classifier: Operating System :: OS Independent
15
+ Classifier: Development Status :: 4 - Beta
16
+ Requires-Python: >=3.7
17
+ Description-Content-Type: text/x-rst
18
+ License-File: LICENSE
19
+ License-File: AUTHORS
20
+ Requires-Dist: click
21
+ Requires-Dist: patool
22
+ Requires-Dist: python-dateutil
23
+ Requires-Dist: python-hglib
24
+ Requires-Dist: mercurial
25
+ Requires-Dist: swh.model >=2.6.1
26
+ Requires-Dist: swh.storage >=0.37.0
27
+ Requires-Dist: swh.scheduler >=0.0.39
28
+ Requires-Dist: swh.loader.core >=5.0.0
29
+ Provides-Extra: testing
30
+ Requires-Dist: click ; extra == 'testing'
31
+ Requires-Dist: patool ; extra == 'testing'
32
+ Requires-Dist: python-dateutil ; extra == 'testing'
33
+ Requires-Dist: python-hglib ; extra == 'testing'
34
+ Requires-Dist: mercurial ; extra == 'testing'
35
+ Requires-Dist: swh.model >=2.6.1 ; extra == 'testing'
36
+ Requires-Dist: swh.storage >=0.37.0 ; extra == 'testing'
37
+ Requires-Dist: swh.scheduler >=0.0.39 ; extra == 'testing'
38
+ Requires-Dist: swh.loader.core >=5.0.0 ; extra == 'testing'
39
+ Requires-Dist: pytest ; extra == 'testing'
40
+ Requires-Dist: pytest-mock ; extra == 'testing'
41
+ Requires-Dist: swh.core[http] >=0.0.61 ; extra == 'testing'
42
+ Requires-Dist: swh.scheduler[testing] >=0.5.0 ; extra == 'testing'
43
+ Requires-Dist: swh.storage[testing] ; extra == 'testing'
44
+ Requires-Dist: types-click ; extra == 'testing'
45
+ Requires-Dist: types-deprecated ; extra == 'testing'
46
+ Requires-Dist: types-python-dateutil ; extra == 'testing'
47
+
48
+ swh-loader-mercurial
49
+ ====================
50
+
51
+ The Software Heritage Mercurial Loader is a tool and a library to walk a local
52
+ mercurial repository and inject into the SWH dataset all contained files that
53
+ weren't known before.
54
+
55
+ The main entry points are:
56
+
57
+ - ``swh.loader.mercurial.loader.HgLoader`` which reads and loads a local
58
+ repository into an SWH archive.
59
+
60
+ - ``swh.loader.mercurial.loader.HgArchiveLoader`` which reads and loads
61
+ a local repository wrapped within a tarball
62
+
63
+ - ``swh.loader.mercurial.directory.HgCheckoutLoader`` which ingests the hg
64
+ tree at a specific changeset or tag.
65
+
66
+ CLI run
67
+ -------
68
+
69
+ Configuration file
70
+ ++++++++++++++++++
71
+
72
+ /tmp/mercurial.yml:
73
+
74
+ .. code-block:: yaml
75
+
76
+ storage:
77
+ cls: remote
78
+ args:
79
+ url: http://localhost:5002/
80
+
81
+
82
+ Basic use
83
+ +++++++++
84
+
85
+ .. code-block:: shell
86
+
87
+ swh loader --C /tmp/mercurial.yml run mercurial https://www.mercurial-scm.org/repo/hello
@@ -1,5 +1,3 @@
1
- swh/__init__.py,sha256=qEFeq3yuf3lQKVseALmL8aPM8fpCS54B_5pry00M3hk,76
2
- swh/loader/__init__.py,sha256=qEFeq3yuf3lQKVseALmL8aPM8fpCS54B_5pry00M3hk,76
3
1
  swh/loader/mercurial/__init__.py,sha256=ioPrVqbM_-w8sEwWUKEw9jCTbzQTkWwMaJM77D7YItM,745
4
2
  swh/loader/mercurial/archive_extract.py,sha256=gMSxvwIxZu5-Ei9a7ZeNCjZV-wBMIBTGonUutZ16yhE,1981
5
3
  swh/loader/mercurial/converters.py,sha256=qrL63I-6ezmICJa7cTB_jlS0kiPfHGL3xH8NXJTF1nU,1040
@@ -14,7 +12,7 @@ swh/loader/mercurial/tests/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJ
14
12
  swh/loader/mercurial/tests/conftest.py,sha256=xMFVE0tp9bbspeywcIpS5gDjeZF_SMWcIgvyrsybuXQ,1671
15
13
  swh/loader/mercurial/tests/loader_checker.py,sha256=lcOoO4viwqfUgKKm9sUBhw5_uyS93pyT-BMWDnPxgzU,2353
16
14
  swh/loader/mercurial/tests/test_converters.py,sha256=5r02CYtZ85xdK00wcfDjmWJo1Qr4BHOYHtjxWaHOVhY,2155
17
- swh/loader/mercurial/tests/test_directory.py,sha256=VjJZdmhnN3SwTgKtlXUDPR7toJj58nioKS-3XIUa_NE,6234
15
+ swh/loader/mercurial/tests/test_directory.py,sha256=E9JGdODIyO8otrDaRYWdq_HbIIp3bngukGUjVlDKKsk,6249
18
16
  swh/loader/mercurial/tests/test_identify.py,sha256=Dp21Ic8b8HMt3hcdqHzPuTpInTk4WLD-yjf7u79PJZM,3016
19
17
  swh/loader/mercurial/tests/test_loader.py,sha256=hoqe_mw-toRTl0Y6hU9f15TnZ8XEpCDPifeg_PT_hl4,26197
20
18
  swh/loader/mercurial/tests/test_tasks.py,sha256=7vB4HSlmN7QKyA4p7ZnKRCmb4PgsY0qnW96KUJVjuzs,1970
@@ -35,10 +33,10 @@ swh/loader/mercurial/tests/data/the-sandbox.json,sha256=baIwB2DbiXkwzxoA0Z8vDFlt
35
33
  swh/loader/mercurial/tests/data/the-sandbox.tgz,sha256=MkJ6Nx_CDRkFlox9dcfq-I2ktFa2niAeAT2f7ClvrtY,13309
36
34
  swh/loader/mercurial/tests/data/transplant.json,sha256=h9akY1VS5nv5LOoiZuiJ3tg9ikkeciqdpjpeyGFR_p0,633
37
35
  swh/loader/mercurial/tests/data/transplant.tgz,sha256=eoS3hnKcIOkNrx3pj8lj3lMP7_V8EEjg4rmNI0qO1Vs,3206
38
- swh.loader.mercurial-3.4.0.dist-info/AUTHORS,sha256=CfkR1t8Z3y1NSRjmzMBmWzN55CEqCDCIXp1XtqzAjf4,117
39
- swh.loader.mercurial-3.4.0.dist-info/LICENSE,sha256=jOtLnuWt7d5Hsx6XXB2QxzrSe2sWWh3NgMfFRetluQM,35147
40
- swh.loader.mercurial-3.4.0.dist-info/METADATA,sha256=4IUG7VjKmdKB9OQxwZSww3t5tMwsahCWwYxllG4223E,2546
41
- swh.loader.mercurial-3.4.0.dist-info/WHEEL,sha256=pkctZYzUS4AYVn6dJ-7367OJZivF2e8RA9b_ZBjif18,92
42
- swh.loader.mercurial-3.4.0.dist-info/entry_points.txt,sha256=KR1-Noi4WbxrdetuNh-QSOSVVp12_NT04aa5nK3YO5o,202
43
- swh.loader.mercurial-3.4.0.dist-info/top_level.txt,sha256=8XlamXOHbQHPR7Tn7kZa8F4ufiLuK-BL_bZje5MY9hw,4
44
- swh.loader.mercurial-3.4.0.dist-info/RECORD,,
36
+ swh.loader.mercurial-3.5.0.dist-info/AUTHORS,sha256=CfkR1t8Z3y1NSRjmzMBmWzN55CEqCDCIXp1XtqzAjf4,117
37
+ swh.loader.mercurial-3.5.0.dist-info/LICENSE,sha256=jOtLnuWt7d5Hsx6XXB2QxzrSe2sWWh3NgMfFRetluQM,35147
38
+ swh.loader.mercurial-3.5.0.dist-info/METADATA,sha256=KNu69_WAvugTogDs0NI1jGkQW7K1yNCqaZBk4K_R44E,3070
39
+ swh.loader.mercurial-3.5.0.dist-info/WHEEL,sha256=oiQVh_5PnQM0E3gPdiz09WCNmwiHDMaGer_elqB3coM,92
40
+ swh.loader.mercurial-3.5.0.dist-info/entry_points.txt,sha256=KR1-Noi4WbxrdetuNh-QSOSVVp12_NT04aa5nK3YO5o,202
41
+ swh.loader.mercurial-3.5.0.dist-info/top_level.txt,sha256=8XlamXOHbQHPR7Tn7kZa8F4ufiLuK-BL_bZje5MY9hw,4
42
+ swh.loader.mercurial-3.5.0.dist-info/RECORD,,
@@ -1,5 +1,5 @@
1
1
  Wheel-Version: 1.0
2
- Generator: bdist_wheel (0.40.0)
2
+ Generator: bdist_wheel (0.42.0)
3
3
  Root-Is-Purelib: true
4
4
  Tag: py3-none-any
5
5
 
swh/__init__.py DELETED
@@ -1,3 +0,0 @@
1
- from pkgutil import extend_path
2
-
3
- __path__ = extend_path(__path__, __name__)
swh/loader/__init__.py DELETED
@@ -1,3 +0,0 @@
1
- from pkgutil import extend_path
2
-
3
- __path__ = extend_path(__path__, __name__)
@@ -1,74 +0,0 @@
1
- Metadata-Version: 2.1
2
- Name: swh.loader.mercurial
3
- Version: 3.4.0
4
- Summary: Software Heritage Mercurial Loader
5
- Home-page: https://forge.softwareheritage.org/diffusion/DLDHG/
6
- Author: Software Heritage developers
7
- Author-email: swh-devel@inria.fr
8
- Project-URL: Bug Reports, https://forge.softwareheritage.org/maniphest
9
- Project-URL: Funding, https://www.softwareheritage.org/donate
10
- Project-URL: Source, https://forge.softwareheritage.org/source/swh-loader-mercurial
11
- Project-URL: Documentation, https://docs.softwareheritage.org/devel/swh-loader-mercurial/
12
- Classifier: Programming Language :: Python :: 3
13
- Classifier: Intended Audience :: Developers
14
- Classifier: License :: OSI Approved :: GNU General Public License v3 (GPLv3)
15
- Classifier: Operating System :: OS Independent
16
- Classifier: Development Status :: 4 - Beta
17
- Requires-Python: >=3.7
18
- Description-Content-Type: text/markdown
19
- License-File: LICENSE
20
- License-File: AUTHORS
21
- Requires-Dist: billiard (<4)
22
- Requires-Dist: click
23
- Requires-Dist: patool
24
- Requires-Dist: python-dateutil
25
- Requires-Dist: python-hglib
26
- Requires-Dist: mercurial
27
- Requires-Dist: swh.model (>=2.6.1)
28
- Requires-Dist: swh.storage (>=0.37.0)
29
- Requires-Dist: swh.scheduler (>=0.0.39)
30
- Requires-Dist: swh.loader.core (>=5.0.0)
31
- Provides-Extra: testing
32
- Requires-Dist: pytest ; extra == 'testing'
33
- Requires-Dist: pytest-mock ; extra == 'testing'
34
- Requires-Dist: swh.core[http] (>=0.0.61) ; extra == 'testing'
35
- Requires-Dist: swh.scheduler[testing] (>=0.5.0) ; extra == 'testing'
36
- Requires-Dist: swh.storage[testing] ; extra == 'testing'
37
- Requires-Dist: types-click ; extra == 'testing'
38
- Requires-Dist: types-deprecated ; extra == 'testing'
39
- Requires-Dist: types-python-dateutil ; extra == 'testing'
40
-
41
- swh-loader-mercurial
42
- =========================
43
-
44
- The Software Heritage Mercurial Loader is a tool and a library to walk a local mercurial
45
- repository and inject into the SWH dataset all contained files that weren't known
46
- before.
47
-
48
- The main entry points are:
49
- - :class:`swh.loader.mercurial.loader.HgLoader` which reads and loads a local
50
- repository into an SWH archive.
51
-
52
- - :class:`swh.loader.mercurial.loader.HgArchiveLoader` which reads and loads
53
- a local repository wrapped within a tarball
54
-
55
- - :class:`swh.loader.mercurial.directory.HgCheckoutLoader` which ingests the hg tree at
56
- a specific changeset or tag.
57
-
58
- # CLI run
59
-
60
- ## Configuration file
61
-
62
- /tmp/mercurial.yml:
63
- ``` YAML
64
- storage:
65
- cls: remote
66
- args:
67
- url: http://localhost:5002/
68
- ```
69
-
70
- ## Basic use
71
-
72
- ``` bash
73
- swh loader --C /tmp/mercurial.yml run mercurial https://www.mercurial-scm.org/repo/hello
74
- ```