datashare-python 0.2.15__py3-none-any.whl → 0.2.20__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.
- datashare_python/template.py +8 -5
- datashare_python/worker-template.tar.gz +0 -0
- {datashare_python-0.2.15.dist-info → datashare_python-0.2.20.dist-info}/METADATA +2 -2
- {datashare_python-0.2.15.dist-info → datashare_python-0.2.20.dist-info}/RECORD +6 -5
- {datashare_python-0.2.15.dist-info → datashare_python-0.2.20.dist-info}/WHEEL +0 -0
- {datashare_python-0.2.15.dist-info → datashare_python-0.2.20.dist-info}/entry_points.txt +0 -0
datashare_python/template.py
CHANGED
|
@@ -8,9 +8,8 @@ from typing import Any
|
|
|
8
8
|
import tomlkit
|
|
9
9
|
from hatchling.builders.hooks.plugin.interface import BuildHookInterface
|
|
10
10
|
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
from .constants import PACKAGE_DIR, PACKAGE_ROOT
|
|
11
|
+
PACKAGE_DIR = Path(__file__).parent
|
|
12
|
+
PACKAGE_ROOT = PACKAGE_DIR.parent
|
|
14
13
|
|
|
15
14
|
ALLOWED_EXTS = {
|
|
16
15
|
".py",
|
|
@@ -23,7 +22,11 @@ ALLOWED_EXTS = {
|
|
|
23
22
|
|
|
24
23
|
class CopyTemplateHook(BuildHookInterface):
|
|
25
24
|
def initialize(self, version: str, build_data: dict[str, Any]) -> None: # noqa: ARG002
|
|
26
|
-
|
|
25
|
+
# Only generate the worker template when building the sources,
|
|
26
|
+
# the wheel is then generated from this first build
|
|
27
|
+
if self.target_name == "sdist":
|
|
28
|
+
build_template_tarball()
|
|
29
|
+
build_data["artifacts"].append("datashare_python/worker-template.tar.gz")
|
|
27
30
|
|
|
28
31
|
|
|
29
32
|
def build_template_tarball() -> None:
|
|
@@ -44,7 +47,7 @@ def build_template_tarball() -> None:
|
|
|
44
47
|
|
|
45
48
|
def init_project(name: str, path: Path) -> None:
|
|
46
49
|
destination = path / name
|
|
47
|
-
template_tar = files(datashare_python
|
|
50
|
+
template_tar = files("datashare_python")
|
|
48
51
|
with (
|
|
49
52
|
as_file(template_tar / "worker-template.tar.gz") as tar_path,
|
|
50
53
|
tarfile.open(tar_path, mode="r:gz") as tar,
|
|
Binary file
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: datashare-python
|
|
3
|
-
Version: 0.2.
|
|
4
|
-
Summary: Manage
|
|
3
|
+
Version: 0.2.20
|
|
4
|
+
Summary: Manage Pythoœn tasks and local resources in Datashare
|
|
5
5
|
Project-URL: Homepage, https://icij.github.io/datashare-python/
|
|
6
6
|
Project-URL: Documentation, https://icij.github.io/datashare-python/
|
|
7
7
|
Project-URL: Repository, https://github.com/ICIJ/datashare-python
|
|
@@ -10,9 +10,10 @@ datashare_python/exceptions.py,sha256=bVHEAXxDPKfxeeMC0hJXEsrJkgsKO2ESAhxWU96GA4
|
|
|
10
10
|
datashare_python/local_client.py,sha256=GP9MTcHVQ1mcb2eO6TiQ7mzQdx199lZRhK8DRuJqJVQ,2359
|
|
11
11
|
datashare_python/objects.py,sha256=UDc9PDaSXADLgmnfvqGBrDTmPVL-rRpyNHvY277-1x8,4147
|
|
12
12
|
datashare_python/task_client.py,sha256=oTmP8bvZW0UyhLNMi1AV3XIAx7hrdbxNRss2Mw2azEc,8435
|
|
13
|
-
datashare_python/template.py,sha256=
|
|
13
|
+
datashare_python/template.py,sha256=esOppyXgVvWt2FexMVOdndddPVIR6j168dD39qMRwRY,3402
|
|
14
14
|
datashare_python/types_.py,sha256=9Hk1XqpdXbM1TnEzwvJ5G9ABbaCZW9KgBTtiPBVn_7k,649
|
|
15
15
|
datashare_python/utils.py,sha256=mFegsYFoIRzRtPhx12748qrahe-c0rKNx02-r8tTG8Q,12777
|
|
16
|
+
datashare_python/worker-template.tar.gz,sha256=NtHCgIz6TUNBgJCPQRb5J04le32PgVPR5I4o7EszjjQ,142445
|
|
16
17
|
datashare_python/worker.py,sha256=E1cECV0q2XcGI234gZZ5eBvqeULlTK0FUb0VSWkRQUI,2924
|
|
17
18
|
datashare_python/cli/__init__.py,sha256=5MGSE_0SwlOiwbyPwsP8RIXlTBB2_GGP0zDg4l6UAIY,1479
|
|
18
19
|
datashare_python/cli/local.py,sha256=S-7qMpSqzi0oMvu01TCFEb8tayEvpw4pXMdCszKEYtU,986
|
|
@@ -20,7 +21,7 @@ datashare_python/cli/project.py,sha256=w32Gy9AOL5B00uDT4in7YUCt2g68FnNbvwg2M3a8G
|
|
|
20
21
|
datashare_python/cli/task.py,sha256=9If5OC7loG4C4gWWl4iOeqPJ4GOLlCWXQfuNLUHORrQ,5860
|
|
21
22
|
datashare_python/cli/utils.py,sha256=p69CQb0zfixuyBkiZprhdMCc_NuYwXyAn6vC9H1UzAw,911
|
|
22
23
|
datashare_python/cli/worker.py,sha256=lmxeZDhLbGb-98XplCERN3R3Yo-sU0UkhO7KIo9Zbo4,4401
|
|
23
|
-
datashare_python-0.2.
|
|
24
|
-
datashare_python-0.2.
|
|
25
|
-
datashare_python-0.2.
|
|
26
|
-
datashare_python-0.2.
|
|
24
|
+
datashare_python-0.2.20.dist-info/METADATA,sha256=kmwue8v3rDgYRG-NYwr4vEFE6X9L39FkqiMNeGIwupw,959
|
|
25
|
+
datashare_python-0.2.20.dist-info/WHEEL,sha256=QccIxa26bgl1E6uMy58deGWi-0aeIkkangHcxk2kWfw,87
|
|
26
|
+
datashare_python-0.2.20.dist-info/entry_points.txt,sha256=ILE7auxabHWiu3GC-AunWnzjhOI_SbZp7D4GqZHlLw4,68
|
|
27
|
+
datashare_python-0.2.20.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|