• Home
  • Raw
  • Download

Lines Matching full:source

26         source = self.tmpdir / 'source'
27 source.mkdir()
28 (source / '__main__.py').touch()
29 target = self.tmpdir / 'source.pyz'
30 zipapp.create_archive(str(source), str(target))
34 # Test packing a directory using Path objects for source and target.
35 source = self.tmpdir / 'source'
36 source.mkdir()
37 (source / '__main__.py').touch()
38 target = self.tmpdir / 'source.pyz'
39 zipapp.create_archive(source, target)
44 source = self.tmpdir / 'source'
45 source.mkdir()
46 (source / '__main__.py').touch()
47 (source / 'foo').mkdir()
48 (source / 'bar').mkdir()
49 (source / 'foo' / '__init__.py').touch()
51 zipapp.create_archive(str(source), target)
62 source = self.tmpdir / 'source'
63 source.mkdir()
64 (source / '__main__.py').touch()
65 (source / 'test.py').touch()
66 (source / 'test.pyc').touch()
67 target = self.tmpdir / 'source.pyz'
69 zipapp.create_archive(source, target, filter=skip_pyc_files)
78 # is relative to the source location, as expected).
81 source = self.tmpdir / 'source'
82 source.mkdir()
83 (source / '__main__.py').touch()
84 (source / 'test.py').touch()
85 (source / 'dummy').mkdir()
86 (source / 'dummy' / 'test2.py').touch()
87 target = self.tmpdir / 'source.pyz'
89 zipapp.create_archive(source, target, filter=skip_dummy_dir)
97 source = self.tmpdir / 'source'
98 source.mkdir()
99 (source / '__main__.py').touch()
100 zipapp.create_archive(str(source))
101 expected_target = self.tmpdir / 'source.pyz'
107 source = self.tmpdir / 'source'
108 source.mkdir()
109 (source / '__main__.py').touch()
110 (source / 'test.py').touch()
111 target = self.tmpdir / 'source.pyz'
113 zipapp.create_archive(source, target, compressed=True)
121 source = self.tmpdir / 'source'
122 source.mkdir()
123 (source / 'foo.py').touch()
124 target = self.tmpdir / 'source.pyz'
126 zipapp.create_archive(str(source), str(target))
130 source = self.tmpdir / 'source'
131 source.mkdir()
132 (source / '__main__.py').touch()
133 target = self.tmpdir / 'source.pyz'
135 zipapp.create_archive(str(source), str(target), main='pkg.mod:fn')
139 source = self.tmpdir / 'source'
140 source.mkdir()
141 (source / 'foo.py').touch()
142 target = self.tmpdir / 'source.pyz'
143 zipapp.create_archive(str(source), str(target), main='pkg.mod:fn')
152 source = self.tmpdir / 'source'
153 source.mkdir()
158 (source / 'foo.py').touch()
159 (source / 'bar.py').touch()
160 target = self.tmpdir / 'source.pyz'
161 zipapp.create_archive(str(source), str(target), main='pkg.mod:fn')
167 source = self.tmpdir / 'source'
168 source.mkdir()
169 target = self.tmpdir / 'source.pyz'
177 zipapp.create_archive(str(source), str(target), main=main)
181 source = self.tmpdir / 'source'
182 source.mkdir()
183 (source / '__main__.py').touch()
184 target = self.tmpdir / 'source.pyz'
185 zipapp.create_archive(str(source), str(target))
192 source = self.tmpdir / 'source'
193 source.mkdir()
194 (source / '__main__.py').touch()
195 target = self.tmpdir / 'source.pyz'
196 zipapp.create_archive(str(source), str(target), interpreter='python')
203 source = self.tmpdir / 'source'
204 source.mkdir()
205 (source / '__main__.py').touch()
207 zipapp.create_archive(str(source), target, interpreter='python')
212 source = self.tmpdir / 'source'
213 source.mkdir()
214 (source / '__main__.py').touch()
215 target = self.tmpdir / 'source.pyz'
216 zipapp.create_archive(str(source), str(target), interpreter='python')
221 source = self.tmpdir / 'source'
222 source.mkdir()
223 (source / '__main__.py').touch()
224 target = self.tmpdir / 'source.pyz'
225 zipapp.create_archive(str(source), str(target))
230 source = self.tmpdir / 'source'
231 source.mkdir()
232 (source / '__main__.py').touch()
233 target = self.tmpdir / 'source.pyz'
234 zipapp.create_archive(str(source), str(target), interpreter='python')
242 source = self.tmpdir / 'source'
243 source.mkdir()
244 (source / '__main__.py').touch()
245 target = self.tmpdir / 'source.pyz'
246 zipapp.create_archive(str(source), str(target), interpreter='python')
253 # for the source.
254 source = self.tmpdir / 'source'
255 source.mkdir()
256 (source / '__main__.py').touch()
259 zipapp.create_archive(source, target1, interpreter='python')
265 source = self.tmpdir / 'source'
266 source.mkdir()
267 (source / '__main__.py').touch()
268 target = self.tmpdir / 'source.pyz'
270 zipapp.create_archive(str(source), temp_archive, interpreter='python')
278 source = self.tmpdir / 'source'
279 source.mkdir()
280 (source / '__main__.py').touch()
281 target = self.tmpdir / 'source.pyz'
282 zipapp.create_archive(str(source), str(target), interpreter='python')
289 source = self.tmpdir / 'source'
290 source.mkdir()
291 (source / '__main__.py').touch()
293 zipapp.create_archive(str(source), target, interpreter='python')
306 source = self.tmpdir / 'source'
307 source.mkdir()
308 (source / '__main__.py').touch()
309 target = self.tmpdir / 'source.pyz'
310 zipapp.create_archive(str(source), str(target), interpreter='python')
317 source = self.tmpdir / 'source'
318 source.mkdir()
319 (source / '__main__.py').touch()
320 target = self.tmpdir / 'source.pyz'
321 zipapp.create_archive(str(source), str(target), interpreter=None)
336 source = self.tmpdir / 'source'
337 source.mkdir()
338 (source / '__main__.py').touch()
339 target = self.tmpdir / 'source.pyz'
340 zipapp.create_archive(source, target)
345 source = self.tmpdir / 'source'
346 source.mkdir()
347 (source / '__main__.py').touch()
348 args = [str(source)]
350 target = source.with_suffix('.pyz')