Conversation
| ], | ||
|
|
||
| packages = ['cinje'], | ||
| packages = find_packages(), |
There was a problem hiding this comment.
find_packages use has been deprecated? If this corrects the file ending issue that line number mapping triggers, there may be a larger issue?
Official documentation doesn't suggest using this function, which was an older Python 2 approach and theoretical way to "save time" back when it was most typical to have an executable setup.py script invoking setuptools. (See also: old-style namespaces which have a __init__.py files declaring the namespace. See this documentation for a complete description of "native namespace packages" v. "legacy namespace packages". That's also now just static project metadata.)
True, though, that packages should probably be: ['cinje', 'cinje.std', 'cinje.block', 'cinje.inline']
The mere presence of the generated line number mappings causes certain Python versions and configurations to fail to import the template module, generating an inscrutable error about unterminated values. This change eliminates the problem, but reduces debug–ability by removing the "origin line" mapping from each template module.
Corrects #30.