-
Couldn't load subscription status.
- Fork 14
Description
In #99 we added support for version updates of Python modules. Although it is more common that the version number string __version__ exists in a Python module's __init__.py file, it is possible a Python module to be in the form of a file (like many in the std lib) and not in the form of a directory. If that is the case, then there is not an __init__.py file, but the file name is equivalent to the module name.
More on that here: PEP 396 -- Module Version Numbers
So it is better to rename the preset to something like pythonModule or python. I lean towards python since this is the standard way version numbers are defined in Python.
Another related improvement is the targetFile argument. If we allow this to be a module directory path as well, then it will automatically mean that it targets __init__.py in that directory. So targetFile can be renamed to target or path, which can accept both directory and file paths. The same can be used in #106 and #105 as well instead of targetDir.