pycargoebuild 0.15.3__tar.gz → 0.16.0__tar.gz

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.
Files changed (42) hide show
  1. {pycargoebuild-0.15.3 → pycargoebuild-0.16.0}/PKG-INFO +1 -1
  2. pycargoebuild-0.16.0/integration_test/fish-shell-4.8.0.ebuild +204 -0
  3. {pycargoebuild-0.15.3 → pycargoebuild-0.16.0}/integration_test/license-mapping.conf +4 -0
  4. {pycargoebuild-0.15.3 → pycargoebuild-0.16.0}/integration_test/test_integration.py +7 -0
  5. {pycargoebuild-0.15.3 → pycargoebuild-0.16.0}/pycargoebuild/__init__.py +1 -1
  6. {pycargoebuild-0.15.3 → pycargoebuild-0.16.0}/pycargoebuild/cargo.py +8 -1
  7. {pycargoebuild-0.15.3 → pycargoebuild-0.16.0}/test/test_cargo.py +66 -2
  8. {pycargoebuild-0.15.3 → pycargoebuild-0.16.0}/COPYING +0 -0
  9. {pycargoebuild-0.15.3 → pycargoebuild-0.16.0}/README.rst +0 -0
  10. {pycargoebuild-0.15.3 → pycargoebuild-0.16.0}/data/share/bash-completion/completions/pycargoebuild +0 -0
  11. {pycargoebuild-0.15.3 → pycargoebuild-0.16.0}/integration_test/__init__.py +0 -0
  12. {pycargoebuild-0.15.3 → pycargoebuild-0.16.0}/integration_test/alass-2.0.0.ebuild +0 -0
  13. {pycargoebuild-0.15.3 → pycargoebuild-0.16.0}/integration_test/attest-0.1.0.ebuild +0 -0
  14. {pycargoebuild-0.15.3 → pycargoebuild-0.16.0}/integration_test/bindgen-0.63.0.ebuild +0 -0
  15. {pycargoebuild-0.15.3 → pycargoebuild-0.16.0}/integration_test/blake3-0.3.3.ebuild +0 -0
  16. {pycargoebuild-0.15.3 → pycargoebuild-0.16.0}/integration_test/cryptography-38.0.3.ebuild +0 -0
  17. {pycargoebuild-0.15.3 → pycargoebuild-0.16.0}/integration_test/fractal-5.0.0.ebuild +0 -0
  18. {pycargoebuild-0.15.3 → pycargoebuild-0.16.0}/integration_test/lemmy_server-0.18.0.ebuild +0 -0
  19. {pycargoebuild-0.15.3 → pycargoebuild-0.16.0}/integration_test/mdbook-linkcheck-0.7.7.ebuild +0 -0
  20. {pycargoebuild-0.15.3 → pycargoebuild-0.16.0}/integration_test/milkshake-terminal-0.0.0.ebuild +0 -0
  21. {pycargoebuild-0.15.3 → pycargoebuild-0.16.0}/integration_test/news_flash_gtk-0.0.0.ebuild +0 -0
  22. {pycargoebuild-0.15.3 → pycargoebuild-0.16.0}/integration_test/qiskit-terra-0.22.3.ebuild +0 -0
  23. {pycargoebuild-0.15.3 → pycargoebuild-0.16.0}/integration_test/ruffle_core-0.1.0.ebuild +0 -0
  24. {pycargoebuild-0.15.3 → pycargoebuild-0.16.0}/integration_test/rustic-rs-0.5.0.ebuild +0 -0
  25. {pycargoebuild-0.15.3 → pycargoebuild-0.16.0}/integration_test/rustls-0.20.7.ebuild +0 -0
  26. {pycargoebuild-0.15.3 → pycargoebuild-0.16.0}/integration_test/rustworkx-0.12.1.ebuild +0 -0
  27. {pycargoebuild-0.15.3 → pycargoebuild-0.16.0}/integration_test/setuptools-rust-1.5.2.ebuild +0 -0
  28. {pycargoebuild-0.15.3 → pycargoebuild-0.16.0}/integration_test/synapse-0.1.0.ebuild +0 -0
  29. {pycargoebuild-0.15.3 → pycargoebuild-0.16.0}/integration_test/watchfiles-0.18.1.ebuild +0 -0
  30. {pycargoebuild-0.15.3 → pycargoebuild-0.16.0}/pycargoebuild/__main__.py +0 -0
  31. {pycargoebuild-0.15.3 → pycargoebuild-0.16.0}/pycargoebuild/ebuild.py +0 -0
  32. {pycargoebuild-0.15.3 → pycargoebuild-0.16.0}/pycargoebuild/fetch.py +0 -0
  33. {pycargoebuild-0.15.3 → pycargoebuild-0.16.0}/pycargoebuild/format.py +0 -0
  34. {pycargoebuild-0.15.3 → pycargoebuild-0.16.0}/pycargoebuild/license.py +0 -0
  35. {pycargoebuild-0.15.3 → pycargoebuild-0.16.0}/pyproject.toml +0 -0
  36. {pycargoebuild-0.15.3 → pycargoebuild-0.16.0}/test/__init__.py +0 -0
  37. {pycargoebuild-0.15.3 → pycargoebuild-0.16.0}/test/conftest.py +0 -0
  38. {pycargoebuild-0.15.3 → pycargoebuild-0.16.0}/test/test_ebuild.py +0 -0
  39. {pycargoebuild-0.15.3 → pycargoebuild-0.16.0}/test/test_fetch.py +0 -0
  40. {pycargoebuild-0.15.3 → pycargoebuild-0.16.0}/test/test_format.py +0 -0
  41. {pycargoebuild-0.15.3 → pycargoebuild-0.16.0}/test/test_license.py +0 -0
  42. {pycargoebuild-0.15.3 → pycargoebuild-0.16.0}/tox.ini +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: pycargoebuild
3
- Version: 0.15.3
3
+ Version: 0.16.0
4
4
  Summary: A generator for Rust/Cargo ebuilds written in Python
5
5
  Author-email: Michał Górny <mgorny@gentoo.org>
6
6
  Requires-Python: >=3.10
@@ -0,0 +1,204 @@
1
+ # Copyright 2026 Gentoo Authors
2
+ # Distributed under the terms of the GNU General Public License v2
3
+
4
+ # Autogenerated by pycargoebuild 0.15.3
5
+
6
+ EAPI=8
7
+
8
+ CRATES="
9
+ aho-corasick@1.1.4
10
+ allocator-api2@0.2.21
11
+ anstream@1.0.0
12
+ anstyle-parse@1.0.0
13
+ anstyle-query@1.1.5
14
+ anstyle-wincon@3.0.11
15
+ anstyle@1.0.14
16
+ anyhow@1.0.102
17
+ assert_matches@1.5.0
18
+ autocfg@1.5.1
19
+ bitflags@2.11.1
20
+ block-buffer@0.10.4
21
+ bstr@1.12.1
22
+ cc@1.2.63
23
+ cfg-if@1.0.4
24
+ cfg_aliases@0.2.1
25
+ chacha20@0.10.0
26
+ clap@4.6.1
27
+ clap_builder@4.6.0
28
+ clap_complete@4.6.5
29
+ clap_derive@4.6.1
30
+ clap_lex@1.1.0
31
+ colorchoice@1.0.5
32
+ cpufeatures@0.2.17
33
+ cpufeatures@0.3.0
34
+ crossbeam-deque@0.8.6
35
+ crossbeam-epoch@0.9.18
36
+ crossbeam-utils@0.8.21
37
+ crypto-common@0.1.7
38
+ digest@0.10.7
39
+ dirs-sys@0.5.0
40
+ dirs@6.0.0
41
+ displaydoc@0.2.6
42
+ either@1.16.0
43
+ equivalent@1.0.2
44
+ errno@0.3.14
45
+ fastrand@2.4.1
46
+ find-msvc-tools@0.1.9
47
+ fluent-langneg@0.13.1
48
+ foldhash@0.1.5
49
+ foldhash@0.2.0
50
+ generic-array@0.14.7
51
+ getrandom@0.2.17
52
+ getrandom@0.3.4
53
+ getrandom@0.4.2
54
+ globset@0.4.18
55
+ hashbrown@0.15.5
56
+ hashbrown@0.17.1
57
+ heck@0.5.0
58
+ id-arena@2.3.0
59
+ ignore@0.4.25
60
+ indexmap@2.14.0
61
+ intl_pluralrules@7.0.2
62
+ is_executable@1.0.5
63
+ is_terminal_polyfill@1.70.2
64
+ itertools@0.14.0
65
+ itoa@1.0.18
66
+ jobserver@0.1.34
67
+ leb128fmt@0.1.0
68
+ libc@0.2.186
69
+ libredox@0.1.17
70
+ lock_api@0.4.14
71
+ log@0.4.30
72
+ lru@0.18.0
73
+ macro_rules_attribute-proc_macro@0.2.2
74
+ macro_rules_attribute@0.2.2
75
+ memchr@2.8.1
76
+ nix@0.30.1
77
+ nix@0.31.3
78
+ num-traits@0.2.19
79
+ once_cell@1.21.4
80
+ once_cell_polyfill@1.70.2
81
+ option-ext@0.2.0
82
+ parking_lot@0.12.5
83
+ parking_lot_core@0.9.12
84
+ paste@1.0.15
85
+ phf@0.13.1
86
+ phf_codegen@0.13.1
87
+ phf_generator@0.13.1
88
+ phf_shared@0.13.1
89
+ pkg-config@0.3.33
90
+ portable-atomic@1.13.1
91
+ prettyplease@0.2.37
92
+ proc-macro2@1.0.106
93
+ quote@1.0.45
94
+ r-efi@5.3.0
95
+ r-efi@6.0.0
96
+ rand@0.10.1
97
+ rand_core@0.10.1
98
+ redox_syscall@0.5.18
99
+ redox_users@0.5.2
100
+ regex-automata@0.4.14
101
+ regex-syntax@0.8.10
102
+ rsconf@0.3.0
103
+ rust-embed-impl@8.11.0
104
+ rust-embed-utils@8.11.0
105
+ rust-embed@8.11.0
106
+ rustc-hash@2.1.2
107
+ rustc_version@0.4.1
108
+ same-file@1.0.6
109
+ scc@2.4.0
110
+ scopeguard@1.2.0
111
+ sdd@3.0.10
112
+ self_cell@1.2.2
113
+ semver@1.0.28
114
+ serde@1.0.228
115
+ serde_core@1.0.228
116
+ serde_derive@1.0.228
117
+ serde_json@1.0.150
118
+ serial_test@3.4.0
119
+ serial_test_derive@3.4.0
120
+ sha2@0.10.9
121
+ shellexpand@3.1.2
122
+ shlex@1.3.0
123
+ shlex@2.0.1
124
+ siphasher@1.0.3
125
+ smallvec@1.15.1
126
+ strsim@0.11.1
127
+ strum_macros@0.28.0
128
+ syn@2.0.117
129
+ thiserror-impl@2.0.18
130
+ thiserror@2.0.18
131
+ tinystr@0.8.3
132
+ type-map@0.5.1
133
+ typenum@1.20.1
134
+ unic-langid-impl@0.9.6
135
+ unic-langid@0.9.6
136
+ unicode-ident@1.0.24
137
+ unicode-segmentation@1.13.2
138
+ unicode-width@0.2.2
139
+ unicode-xid@0.2.6
140
+ unix_path@1.0.1
141
+ unix_str@1.0.0
142
+ utf8parse@0.2.2
143
+ version_check@0.9.5
144
+ walkdir@2.5.0
145
+ wasi@0.11.1+wasi-snapshot-preview1
146
+ wasip2@1.0.1+wasi-0.2.4
147
+ wasip3@0.4.0+wasi-0.3.0-rc-2026-01-06
148
+ wasm-encoder@0.244.0
149
+ wasm-metadata@0.244.0
150
+ wasmparser@0.244.0
151
+ widestring@1.2.1
152
+ winapi-util@0.1.11
153
+ windows-link@0.2.1
154
+ windows-sys@0.60.2
155
+ windows-sys@0.61.2
156
+ windows-targets@0.53.5
157
+ windows_aarch64_gnullvm@0.53.1
158
+ windows_aarch64_msvc@0.53.1
159
+ windows_i686_gnu@0.53.1
160
+ windows_i686_gnullvm@0.53.1
161
+ windows_i686_msvc@0.53.1
162
+ windows_x86_64_gnu@0.53.1
163
+ windows_x86_64_gnullvm@0.53.1
164
+ windows_x86_64_msvc@0.53.1
165
+ wit-bindgen-core@0.51.0
166
+ wit-bindgen-rust-macro@0.51.0
167
+ wit-bindgen-rust@0.51.0
168
+ wit-bindgen@0.46.0
169
+ wit-bindgen@0.51.0
170
+ wit-component@0.244.0
171
+ wit-parser@0.244.0
172
+ xterm-color@1.0.2
173
+ zerofrom@0.1.8
174
+ zerovec@0.11.6
175
+ zmij@1.0.21
176
+ "
177
+
178
+ declare -A GIT_CRATES=(
179
+ [fluent-bundle]='https://github.com/danielrainer/fluent-rs;cf712bced280b217b6307edabc2089b3e57204ab;fluent-rs-%commit%/fluent-bundle'
180
+ [fluent-ftl-tools]='https://codeberg.org/danielrainer/fluent-ftl-tools;5917664c8f2e4928ef1e480ff5c13bbe1e226066;fluent-ftl-tools;gitea'
181
+ [fluent-syntax]='https://github.com/danielrainer/fluent-rs;cf712bced280b217b6307edabc2089b3e57204ab;fluent-rs-%commit%/fluent-syntax'
182
+ [fluent]='https://github.com/danielrainer/fluent-rs;cf712bced280b217b6307edabc2089b3e57204ab;fluent-rs-%commit%/fluent'
183
+ [gettext-po-file-parser]='https://codeberg.org/danielrainer/fluent-ftl-tools;5917664c8f2e4928ef1e480ff5c13bbe1e226066;fluent-ftl-tools/crates/gettext-po-file-parser;gitea'
184
+ [intl-memoizer]='https://github.com/danielrainer/fluent-rs;cf712bced280b217b6307edabc2089b3e57204ab;fluent-rs-%commit%/intl-memoizer'
185
+ [pcre2-sys]='https://github.com/fish-shell/rust-pcre2;85b7afba1a9d9bd445779800e5bcafeb732e4421;rust-pcre2-%commit%/pcre2-sys'
186
+ [pcre2]='https://github.com/fish-shell/rust-pcre2;85b7afba1a9d9bd445779800e5bcafeb732e4421;rust-pcre2-%commit%'
187
+ )
188
+
189
+ inherit cargo
190
+
191
+ DESCRIPTION="proc-macro for extracting IDs for fluent translation"
192
+ HOMEPAGE=""
193
+ SRC_URI="
194
+ ${CARGO_CRATE_URIS}
195
+ "
196
+
197
+ LICENSE="GPL-2 LGPL-2+ MIT PSF-2"
198
+ # Dependent crate licenses
199
+ LICENSE+="
200
+ Apache-2.0 MIT MPL-2.0 Unicode-3.0 ZLIB
201
+ || ( AGPL-3 GPL-2 )
202
+ "
203
+ SLOT="0"
204
+ KEYWORDS="~amd64"
@@ -10,14 +10,18 @@ BSL-1.0 = Boost-1.0
10
10
  CC0-1.0 = CC0-1.0
11
11
  EPL-2.0 = EPL-2.0
12
12
  ISC = ISC
13
+ GPL-2.0-only = GPL-2
13
14
  GPL-3.0-only = GPL-3
14
15
  GPL-3.0-or-later = GPL-3+
16
+ LGPL-2.0-or-later = LGPL-2+
15
17
  LGPL-3.0-only = LGPL-3
16
18
  MIT = MIT
17
19
  MIT-0 = MIT-0
18
20
  MPL-2.0 = MPL-2.0
19
21
  OFL-1.1 = OFL-1.1
22
+ PSF-2.0 = PSF-2
20
23
  Ubuntu-font-1.0 = UbuntuFontLicense-1.0
24
+ Unicode-3.0 = Unicode-3.0
21
25
  Unicode-DFS-2016 = Unicode-DFS-2016
22
26
  Unlicense = Unlicense
23
27
  Zlib = ZLIB
@@ -175,6 +175,13 @@ PACKAGES = {
175
175
  has_crates_without_license=True,
176
176
  uses_license_file=True,
177
177
  use_features=True),
178
+ "fish-shell-4.8.0.ebuild": Package(
179
+ url="https://github.com/fish-shell/fish-shell/archive/"
180
+ "refs/tags/4.8.0.tar.gz",
181
+ checksum="c27e91e3812608d70654cd0640670438"
182
+ "60f39d9e3fa1171e3af326c852f3e209",
183
+ directories=["fish-shell-4.8.0/crates/fluent-extraction"],
184
+ expected_filename="fish-fluent-extraction-0.0.0.ebuild"),
178
185
  }
179
186
 
180
187
 
@@ -4,4 +4,4 @@
4
4
 
5
5
  """A generator for Rust/Cargo ebuilds written in Python"""
6
6
 
7
- __version__ = "0.15.3"
7
+ __version__ = "0.16.0"
@@ -61,6 +61,7 @@ class GitHost(enum.Enum):
61
61
  GITHUB = enum.auto()
62
62
  GITLAB = enum.auto()
63
63
  GITLAB_SELFHOSTED = enum.auto()
64
+ GITEA = enum.auto()
64
65
 
65
66
 
66
67
  @dataclasses.dataclass(frozen=True)
@@ -79,6 +80,8 @@ class GitCrate(Crate):
79
80
  return GitHost.GITLAB
80
81
  if self.repository.startswith("https://gitlab."):
81
82
  return GitHost.GITLAB_SELFHOSTED
83
+ if self.repository.startswith("https://codeberg.org/"):
84
+ return GitHost.GITEA
82
85
  raise RuntimeError("Unsupported git crate source: "
83
86
  f"{self.repository}")
84
87
 
@@ -96,13 +99,15 @@ class GitCrate(Crate):
96
99
  return ".gl"
97
100
  case GitHost.GITLAB_SELFHOSTED:
98
101
  return ""
102
+ case GitHost.GITEA:
103
+ return ".gt"
99
104
  case _ as host:
100
105
  typing.assert_never(host)
101
106
 
102
107
  @property
103
108
  def download_url(self) -> str:
104
109
  match self.repo_host:
105
- case GitHost.GITHUB:
110
+ case GitHost.GITHUB | GitHost.GITEA:
106
111
  return f"{self.repository}/archive/{self.commit}.tar.gz"
107
112
  case GitHost.GITLAB | GitHost.GITLAB_SELFHOSTED:
108
113
  return (f"{self.repository}/-/archive/{self.commit}/"
@@ -165,6 +170,8 @@ class GitCrate(Crate):
165
170
  match self.repo_host:
166
171
  case GitHost.GITHUB | GitHost.GITLAB:
167
172
  return f"{self.repository};{self.commit};{subdir}"
173
+ case GitHost.GITEA:
174
+ return f"{self.repository};{self.commit};{subdir};gitea"
168
175
  case GitHost.GITLAB_SELFHOSTED:
169
176
  crate_uri = self.download_url.replace(self.commit, "%commit%")
170
177
  return f"{crate_uri};{self.commit};{subdir}"
@@ -69,6 +69,12 @@ CARGO_LOCK_TOML = b'''
69
69
  version = "0.8.0"
70
70
  source = """git+https://gitlab.freedesktop.org/pipewire/pipewire-rs\\
71
71
  ?tag=v0.8.0#449bf53f5d5edc8d0be6c0c80bc19d882f712dd7"""
72
+
73
+ [[package]]
74
+ name = "fluent-ftl-tools"
75
+ version = "0.1.0"
76
+ source = """git+https://codeberg.org/danielrainer/fluent-ftl-tools\\
77
+ #1234567890abcdef1234567890abcdef12345678"""
72
78
  '''
73
79
 
74
80
  PREHISTORIC_CARGO_LOCK_TOML = b"""
@@ -126,6 +132,9 @@ CRATES = [
126
132
  GitCrate("pipewire", "0.8.0",
127
133
  "https://gitlab.freedesktop.org/pipewire/pipewire-rs",
128
134
  "449bf53f5d5edc8d0be6c0c80bc19d882f712dd7"),
135
+ GitCrate("fluent-ftl-tools", "0.1.0",
136
+ "https://codeberg.org/danielrainer/fluent-ftl-tools",
137
+ "1234567890abcdef1234567890abcdef12345678"),
129
138
  ]
130
139
 
131
140
 
@@ -265,6 +274,35 @@ license = "MIT"
265
274
  """
266
275
 
267
276
 
277
+ @pytest.mark.parametrize(
278
+ "repository,commit,download_url,filename",
279
+ [("https://github.com/01mf02/regex", "90eebbdb",
280
+ "https://github.com/01mf02/regex/archive/90eebbdb.tar.gz",
281
+ "regex-90eebbdb.gh.tar.gz"),
282
+ ("https://gitlab.com/virtio-fs/virtiofsd", "af439fbf",
283
+ ("https://gitlab.com/virtio-fs/virtiofsd/-/archive/af439fbf/"
284
+ "virtiofsd-af439fbf.tar.gz"),
285
+ "virtiofsd-af439fbf.gl.tar.gz"),
286
+ ("https://gitlab.freedesktop.org/pipewire/pipewire-rs", "449bf53f",
287
+ ("https://gitlab.freedesktop.org/pipewire/pipewire-rs/-/archive/449bf53f/"
288
+ "pipewire-rs-449bf53f.tar.gz"),
289
+ "pipewire-rs-449bf53f.tar.gz"),
290
+ ("https://codeberg.org/danielrainer/fluent-ftl-tools", "12345678",
291
+ ("https://codeberg.org/danielrainer/fluent-ftl-tools/archive/"
292
+ "12345678.tar.gz"),
293
+ "fluent-ftl-tools-12345678.gt.tar.gz"),
294
+ ])
295
+ def test_git_crate_urls(repository, commit, download_url, filename):
296
+ crate = GitCrate("test", "0.1", repository, commit)
297
+ assert crate.download_url == download_url
298
+ assert crate.filename == filename
299
+
300
+
301
+ def test_git_crate_unsupported_host():
302
+ with pytest.raises(RuntimeError):
303
+ GitCrate("test", "0.1", "https://example.com/foo/bar", "0123abcd")
304
+
305
+
268
306
  @pytest.mark.parametrize(
269
307
  "name,expected",
270
308
  [("toplevel", ""),
@@ -274,7 +312,7 @@ license = "MIT"
274
312
  def test_git_crate_package_directory(tmp_path, name, expected):
275
313
  commit = "5ace474ad2e92da836de60afd9014cbae7bdd481"
276
314
  crate = GitCrate(name, "0.1",
277
- "https://github.com/projg2/pycargoebuild",
315
+ "https://github.com/gentoo/pycargoebuild",
278
316
  commit)
279
317
  basename = f"pycargoebuild-{commit}"
280
318
 
@@ -298,7 +336,7 @@ def test_git_crate_package_directory(tmp_path, name, expected):
298
336
  def test_git_crate_root_directory(tmp_path, have_lock):
299
337
  commit = "5ace474ad2e92da836de60afd9014cbae7bdd481"
300
338
  crate = GitCrate("pycargoebuild", "0.1",
301
- "https://github.com/projg2/pycargoebuild",
339
+ "https://github.com/gentoo/pycargoebuild",
302
340
  commit)
303
341
  basename = f"pycargoebuild-{commit}"
304
342
 
@@ -314,3 +352,29 @@ def test_git_crate_root_directory(tmp_path, have_lock):
314
352
  tarf.addfile(tar_info, io.BytesIO(b""))
315
353
 
316
354
  assert crate.get_root_directory(tmp_path) == PurePath(basename)
355
+
356
+
357
+ @pytest.mark.parametrize(
358
+ "repository,expected",
359
+ [("https://github.com/gentoo/pycargoebuild",
360
+ "https://github.com/gentoo/pycargoebuild;{commit};{basename}/sub"),
361
+ ("https://codeberg.org/gentoo/pycargoebuild",
362
+ ("https://codeberg.org/gentoo/pycargoebuild;{commit};{basename}/sub;"
363
+ "gitea")),
364
+ ])
365
+ def test_git_crate_entry(tmp_path, repository, expected):
366
+ commit = "5ace474ad2e92da836de60afd9014cbae7bdd481"
367
+ crate = GitCrate("subpkg", "0.1", repository, commit)
368
+ basename = f"pycargoebuild-{commit}"
369
+
370
+ with tarfile.open(tmp_path / crate.filename, "x:gz") as tarf:
371
+ tar_info = tarfile.TarInfo(f"{basename}/Cargo.toml")
372
+ tar_info.size = len(TOP_CARGO_TOML)
373
+ tarf.addfile(tar_info, io.BytesIO(TOP_CARGO_TOML))
374
+ tar_info = tarfile.TarInfo(f"{basename}/sub/Cargo.toml")
375
+ tar_info.size = len(SUB_CARGO_TOML)
376
+ tarf.addfile(tar_info, io.BytesIO(SUB_CARGO_TOML))
377
+
378
+ assert (crate.get_git_crate_entry(tmp_path) ==
379
+ expected.format(commit=commit,
380
+ basename="pycargoebuild-%commit%"))
File without changes
File without changes