Commit Graph

35 Commits

Author SHA1 Message Date
shx2 a2d87aa59f New functions: uninstall(), is_installed()
Plus some minor changes:
- added unittests to test reset() functionality
- fixed a minor bug in __init__.py where py2 module was import first when running on py3
- prevent pyc files from being written during unittests, to protect later tests from finding pyc files written by earlier tests

NOTE: reset() and uninstall() don't fully work in py2, and their tests currently fail on py2,
until issue#2 is resolved (https://github.com/elfsternberg/polyloader/issues/2)
2016-11-10 11:05:51 +02:00
Elf M. Sternberg 39e93c354f Better, I think. 2016-09-03 13:22:44 -07:00
Elf M. Sternberg 0cba079542 Better title. 2016-09-02 21:13:01 -07:00
Elf M. Sternberg 67e57d7492 ELI5-ification underway\! 2016-09-02 21:12:04 -07:00
Elf M. Sternberg 6506acd861 Still working out the docs. 2016-09-01 10:55:16 -07:00
Elf M. Sternberg 7e811c0387 Again, trying. 2016-09-01 10:48:27 -07:00
Elf M. Sternberg 52726a53cf Trying to make static work. 2016-09-01 10:43:46 -07:00
Elf M. Sternberg dbdac0fda6 Docs pass. 2016-09-01 10:36:52 -07:00
Elf M. Sternberg f19fa34ac5 Remove debugging tracer. 2016-07-09 18:21:01 -07:00
Elf M. Sternberg c5f63db5f0 Compilers should be static when they're just functions; when they're callable objects, they control their own instance of 'self'. 2016-07-09 17:46:21 -07:00
Elf M. Sternberg 0cfa023bc1 Initial support for Python 3 completed. 2016-07-09 14:53:45 -07:00
Elf M. Sternberg 34342a0b3b Python 3's testing suite is radically different from 2's. I'm trying
to keep them in the same ballpark, more or less.

There was a VERY embarassing bug in the iter_modules shim.  That's been fixed.
2016-07-09 13:54:59 -07:00
Elf M. Sternberg adc00f0517 Merging. 2016-07-09 10:56:01 -07:00
Elf M. Sternberg 4eee86b2bc More changes. 2016-07-09 10:52:30 -07:00
Elf M. Sternberg f010aecd40 Updating. 2016-07-09 10:51:54 -07:00
Elf M. Sternberg 631f31c688 Python 3 version completely broken. 2016-07-08 22:34:22 -07:00
Elf M. Sternberg 34bc2ec25a Refactor as I plan out Python3 architecture. 2016-07-08 21:55:54 -07:00
Elf M. Sternberg 1cc09df2ff Named tuples make everything much more readable. 2016-07-08 21:31:27 -07:00
Elf M. Sternberg 9fac406305 Working toward making dirsep and extsep cross-platform 2016-07-08 20:43:58 -07:00
Elf M. Sternberg be7c4e4d21 Fixed build issue. Skipped pypy bytecode-without-source tests. 2016-07-03 16:43:09 -07:00
Elf M. Sternberg 3d02248afe PyPy compatibility tests! (tested with v5.3.1 - Python 2.7 compatible - working) 2016-06-30 23:04:22 -07:00
Elf M. Sternberg 8ea931cf8f Typos in the Readme. 2016-06-30 22:22:58 -07:00
Elf M. Sternberg 0e03ef38e0 Polyloader for Python 2 (2.6 and 2.7) is GREEN. Woot!
Unit tests included to ensure that Polyloader doesn't interfere with
standard Python import behavior, while still allowing for arbitrary
compilers to be associated with new file suffixes on the fly.

WOOT!

I wrote unit tests!

The syntax of the compilers has been change; I chose to trust Python's
source file loaders, so now we get a default stream in whatever format
the current version of Python is most comfortable with.

Made a note in my TODO about a Context Manager for making Polyloaders
"live" and then removing them automatically when a procedure goes out
of scope.

I have this weird sensation that this might actually work...
2016-06-30 22:11:10 -07:00
Elf M. Sternberg d6ea4d2dcf Working editions, plus some blog entries. 2016-06-30 11:05:28 -07:00
Elf M. Sternberg e8dfad4721 Heading toward a final draft of the Py-2 instances. 2016-06-17 17:22:51 -07:00
Elf M. Sternberg df657c6b46 Updated readme with a clear explanation of the problem statement. 2016-06-17 07:53:27 -07:00
Elf M. Sternberg 1b614cb103 Revising for 2/3 split. This isn't working. Just checking in to move to a new machine. 2016-06-06 07:41:39 -07:00
Elf M. Sternberg 613db3c2f6 Unit tests working, with pkgutil not broken, on Python 3.3!!! 2016-06-05 09:15:12 -07:00
Elf M. Sternberg 2ad2b0e4fa Yet more name change stuff. 2016-06-04 18:05:16 -07:00
Elf M. Sternberg 53e766b41f Name change. Pain in the neck. 2016-06-04 18:01:27 -07:00
Elf M. Sternberg 382c8f9cbf Still cleaning up. 2016-06-04 17:55:21 -07:00
Elf M. Sternberg f4c8944241 Initial check-in of Cookiecutter version. 2016-06-04 17:54:28 -07:00
Elf M. Sternberg 1eaa8f73e0 Fix Typo. 2016-05-29 09:46:13 -07:00
Elf M. Sternberg d92224cc80 Moving to MD. Never did like RST. 2016-05-29 09:45:35 -07:00
Elf M. Sternberg c508173e7d Sorta an initial check-in.
This is broken out from a week-long development cycle for the
[Hy](http://docs.hylang.org/en/latest/) programming language,
which I can't recommend enough.
2016-05-29 09:42:34 -07:00