Lines Matching refs:source
27 source = self.tmpdir / 'source'
28 source.mkdir()
29 (source / '__main__.py').touch()
30 target = self.tmpdir / 'source.pyz'
31 zipapp.create_archive(str(source), str(target))
35 # Test packing a directory using Path objects for source and target.
36 source = self.tmpdir / 'source'
37 source.mkdir()
38 (source / '__main__.py').touch()
39 target = self.tmpdir / 'source.pyz'
40 zipapp.create_archive(source, target)
45 source = self.tmpdir / 'source'
46 source.mkdir()
47 (source / '__main__.py').touch()
48 (source / 'foo').mkdir()
49 (source / 'bar').mkdir()
50 (source / 'foo' / '__init__.py').touch()
52 zipapp.create_archive(str(source), target)
63 source = self.tmpdir / 'source'
64 source.mkdir()
65 (source / '__main__.py').touch()
66 (source / 'test.py').touch()
67 (source / 'test.pyc').touch()
68 target = self.tmpdir / 'source.pyz'
70 zipapp.create_archive(source, target, filter=skip_pyc_files)
79 # is relative to the source location, as expected).
82 source = self.tmpdir / 'source'
83 source.mkdir()
84 (source / '__main__.py').touch()
85 (source / 'test.py').touch()
86 (source / 'dummy').mkdir()
87 (source / 'dummy' / 'test2.py').touch()
88 target = self.tmpdir / 'source.pyz'
90 zipapp.create_archive(source, target, filter=skip_dummy_dir)
98 source = self.tmpdir / 'source'
99 source.mkdir()
100 (source / '__main__.py').touch()
101 zipapp.create_archive(str(source))
102 expected_target = self.tmpdir / 'source.pyz'
108 source = self.tmpdir / 'source'
109 source.mkdir()
110 (source / '__main__.py').touch()
111 (source / 'test.py').touch()
112 target = self.tmpdir / 'source.pyz'
114 zipapp.create_archive(source, target, compressed=True)
122 source = self.tmpdir / 'source'
123 source.mkdir()
124 (source / 'foo.py').touch()
125 target = self.tmpdir / 'source.pyz'
127 zipapp.create_archive(str(source), str(target))
131 source = self.tmpdir / 'source'
132 source.mkdir()
133 (source / '__main__.py').touch()
134 target = self.tmpdir / 'source.pyz'
136 zipapp.create_archive(str(source), str(target), main='pkg.mod:fn')
140 source = self.tmpdir / 'source'
141 source.mkdir()
142 (source / 'foo.py').touch()
143 target = self.tmpdir / 'source.pyz'
144 zipapp.create_archive(str(source), str(target), main='pkg.mod:fn')
153 source = self.tmpdir / 'source'
154 source.mkdir()
159 (source / 'foo.py').touch()
160 (source / 'bar.py').touch()
161 target = self.tmpdir / 'source.pyz'
162 zipapp.create_archive(str(source), str(target), main='pkg.mod:fn')
168 source = self.tmpdir / 'source'
169 source.mkdir()
170 target = self.tmpdir / 'source.pyz'
178 zipapp.create_archive(str(source), str(target), main=main)
182 source = self.tmpdir / 'source'
183 source.mkdir()
184 (source / '__main__.py').touch()
185 target = self.tmpdir / 'source.pyz'
186 zipapp.create_archive(str(source), str(target))
193 source = self.tmpdir / 'source'
194 source.mkdir()
195 (source / '__main__.py').touch()
196 target = self.tmpdir / 'source.pyz'
197 zipapp.create_archive(str(source), str(target), interpreter='python')
204 source = self.tmpdir / 'source'
205 source.mkdir()
206 (source / '__main__.py').touch()
208 zipapp.create_archive(str(source), target, interpreter='python')
213 source = self.tmpdir / 'source'
214 source.mkdir()
215 (source / '__main__.py').touch()
216 target = self.tmpdir / 'source.pyz'
217 zipapp.create_archive(str(source), str(target), interpreter='python')
222 source = self.tmpdir / 'source'
223 source.mkdir()
224 (source / '__main__.py').touch()
225 target = self.tmpdir / 'source.pyz'
226 zipapp.create_archive(str(source), str(target))
231 source = self.tmpdir / 'source'
232 source.mkdir()
233 (source / '__main__.py').touch()
234 target = self.tmpdir / 'source.pyz'
235 zipapp.create_archive(str(source), str(target), interpreter='python')
243 source = self.tmpdir / 'source'
244 source.mkdir()
245 (source / '__main__.py').touch()
246 target = self.tmpdir / 'source.pyz'
247 zipapp.create_archive(str(source), str(target), interpreter='python')
254 # for the source.
255 source = self.tmpdir / 'source'
256 source.mkdir()
257 (source / '__main__.py').touch()
260 zipapp.create_archive(source, target1, interpreter='python')
266 source = self.tmpdir / 'source'
267 source.mkdir()
268 (source / '__main__.py').touch()
269 target = self.tmpdir / 'source.pyz'
271 zipapp.create_archive(str(source), temp_archive, interpreter='python')
279 source = self.tmpdir / 'source'
280 source.mkdir()
281 (source / '__main__.py').touch()
282 target = self.tmpdir / 'source.pyz'
283 zipapp.create_archive(str(source), str(target), interpreter='python')
290 source = self.tmpdir / 'source'
291 source.mkdir()
292 (source / '__main__.py').touch()
294 zipapp.create_archive(str(source), target, interpreter='python')
308 source = self.tmpdir / 'source'
309 source.mkdir()
310 (source / '__main__.py').touch()
311 target = self.tmpdir / 'source.pyz'
312 zipapp.create_archive(str(source), str(target), interpreter='python')
319 source = self.tmpdir / 'source'
320 source.mkdir()
321 (source / '__main__.py').touch()
322 target = self.tmpdir / 'source.pyz'
323 zipapp.create_archive(str(source), str(target), interpreter=None)
338 source = self.tmpdir / 'source'
339 source.mkdir()
340 (source / '__main__.py').touch()
341 target = self.tmpdir / 'source.pyz'
342 zipapp.create_archive(source, target)
347 source = self.tmpdir / 'source'
348 source.mkdir()
349 (source / '__main__.py').touch()
350 args = [str(source)]
352 target = source.with_suffix('.pyz')