You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Using import() with .version is certainly cleaner, but the problem is that you actually import that file, meaning you are running code here. Say if you had some further imports in the init-file, those would get imported too and so on and so on. You might end up with race conditions or difficulties with relative imports...
That's why I went for the more inelegant version of parsing the file line by line while applying a regex.
Well, my 2 cents on the topic..
I would like to propose a way to automatically load the version info from the package (init.py) into setup.py:
and then you just do
Adapted from stackoverflow.com
The text was updated successfully, but these errors were encountered: