Brett Cannon
776e7014e9
Simplify write_bytecode for importlib.
2009-02-01 06:07:57 +00:00
Brett Cannon
20b56e1a1c
Update importlib notes.
2009-02-01 05:55:23 +00:00
Brett Cannon
ba96f0f89a
Ditch read_source() and read_bytecode() and replace with *_path() and
...
get_data().
2009-02-01 05:43:31 +00:00
Brett Cannon
51c502689c
Expose source_path and bytecode_path on _PyFileLoader.
2009-02-01 05:33:17 +00:00
Brett Cannon
6c3aaf3276
Remove an outdated todo item from importlib.
2009-02-01 05:04:06 +00:00
Brett Cannon
d720b36248
Move import semantic util code to importlib.test.import_.util.
2009-02-01 04:28:04 +00:00
Brett Cannon
bcb26c53c0
Rename importlib.test.support to importlib.test.util.
2009-02-01 04:00:05 +00:00
Brett Cannon
ae9ad186d0
Do not execute the .pyc/.pyo files as well as the .py files.
2009-02-01 03:51:54 +00:00
Brett Cannon
4ee2cdaf65
Split out support code that is specific to source tests out of
...
importlib.test.support to importlib.test.source.util.
2009-02-01 03:08:31 +00:00
Brett Cannon
30b047dc35
Move source loader tests (including reload tests) over to
...
importlib.test.abc.LoaderTests.
2009-02-01 02:05:11 +00:00
Brett Cannon
223a19d8b1
Fix importlib.machinery.FrozenImporter.load_module() to set __package__
...
properly. Discovered by also moving the loader tests over to
importlib.test.abc.LoaderTests.
2009-02-01 01:34:13 +00:00
Brett Cannon
e70485e7c1
Move extension module loader tests over to importlib.test.abc.LoaderTests.
2009-02-01 00:49:41 +00:00
Brett Cannon
d98a6a014d
Move built-in loader tests to importlib.test.abc.LoaderTests.
2009-02-01 00:37:13 +00:00
Brett Cannon
f254a75176
Merge testing ABCs for importlib into importlib.test.abc.
2009-01-30 00:22:35 +00:00
Brett Cannon
a74ccea968
Initial take on importlib.test.loader_tests.
2009-01-27 02:39:33 +00:00
Brett Cannon
dd827c403f
Update importlib NOTES.
2009-01-27 01:46:04 +00:00
Brett Cannon
d197a2b136
Move importlib.test.frozen.test_finder over to importlib.test.finder_tests.
2009-01-27 01:44:50 +00:00
Brett Cannon
1d0b43d24e
Move importlib.test.builtin.test_finder over to importlib.test.finder_tests.
2009-01-27 01:41:57 +00:00
Brett Cannon
97c8a07f1d
Make importlib.test.finder_tests an ABC.
2009-01-27 01:34:30 +00:00
Brett Cannon
c49715f682
Move importlib.test.extension.test_finder over to importlib.test.finder_tests.
2009-01-27 01:33:54 +00:00
Brett Cannon
d0005ff41f
Update NOTES for importlib.
2009-01-26 01:54:40 +00:00
Brett Cannon
78246b6b45
Document both importlib.machinery.BuiltinImporter and FrozenImporter.
2009-01-25 04:56:30 +00:00
Brett Cannon
7f400e1366
Add some comment markers to more clearly delineate what different parts of the
...
code are for. Also add a note that the import * at the end of the file should
eventually go away.
2009-01-22 22:44:04 +00:00
Brett Cannon
5abdc93eb8
Add importlib.machinery with its first tenants, BuitinImporter and
...
FrozenImporter. Docs forthcoming.
I plan on all finders and loaders (and most likely hooks) to live
in imoprtlib.machinery. Utility stuff will end up in importlib.util.
Higher-level API stuff will stay on imoprtlib directly (e.g. import_module).
2009-01-22 22:43:07 +00:00
Brett Cannon
afccd63ac9
Document the (very small) public API for importlib. As time goes on and some
...
key refactorings occur more of the API will be exposed and documented.
2009-01-20 02:21:27 +00:00
Brett Cannon
d994864d54
Remove a debugging print statement that accidentally got left in.
2009-01-19 07:07:58 +00:00
Brett Cannon
b4a1b8c541
Fix a typo in some code that is not tested or supported yet.
...
Closes issue 4993. Thanks Antoine Pitrou for the catch.
2009-01-19 06:56:16 +00:00
Brett Cannon
2c5c79cfc4
Tests of case-sensitivity were being executed on OSs which did not have a
...
case-insensitive file system, leading to test failures. This was due to using
the TestCase objects directly instead of the guard in the test_main() function.
Move over to a class decorator instead to control if the tests should be run.
2009-01-18 06:55:05 +00:00
Brett Cannon
24b6a2cf38
NOTES for importlib should mention the ultimate end-goal for the package.
2009-01-18 00:36:55 +00:00
Brett Cannon
7044d6b848
Skip over any file or folder that starts with a dot (e.g. .svn).
2009-01-18 00:36:22 +00:00
Brett Cannon
23cbd8a656
Add initial implementation of importlib. See the NOTES files for what is
...
planned for the package.
There are no docs yet, but they are coming once the API for the first new
function, importlib.import_module() is finalized.
2009-01-18 00:24:28 +00:00