Closed 1kastner closed 4 years ago
The ModuleNotFoundError
exception is raised because the regex
module is not loaded at the time of the titlecase
module import—
even though the regex
module is listed in setup_requires
—because
the call to setup()
is not yet executed then.
The Python Packaging User Guide recommends several ways to directly parse the version string without loading the module to avoid situations exactly like this one. PR #54 follows the first of those approaches.
If there exist reasons why another technique might be preferable instead, it can, of course, be discussed. Otherwise, merging #54 should suffice to fix this issue and unblock #52, I believe.
Closed by #55 (really #54, thanks again @iburago!)
The version should be kept somewhere else or other adjustments in the code are necessary.