-
Notifications
You must be signed in to change notification settings - Fork 27
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
the module does not expose its version #190
Comments
In Lines 15 to 22 in 4f6c43a
There is no standard that I'm aware of that says the version string must be defined at the top-level package (though it seems sensible). By putting it in You can get PyDelphin's version programmatically as follows: >>> from delphin.__about__ import __version__
>>> __version__
'0.9.0' Or from the command line (although the output looks like the command version instead of the library version): $ delphin -V
delphin 0.9.0 It is certainly possible to install a specific version from $ pip install pydelphin==0.8.0
Collecting pydelphin==0.8.0
... If it's important for you to have |
@fcbond can you reproduce a problem caused by the current setup? Or is there a change you'd like to see (and if so, why)? Otherwise I'll consider the issue closed. |
Well, I spent over an hour trying to find a way to work out which version I
was using (as I had two installed in different places). Perhaps someone
cleverer would not have this problem, but I think exposing the version as
delphin.__version__ would save other people in a similar situation.
https://packaging.python.org/guides/single-sourcing-package-version/ did
seem to suggest that packagename.__version__ was the standard place to
expose it.
…On Fri, Oct 26, 2018 at 10:36 AM Michael Wayne Goodman < ***@***.***> wrote:
@fcbond <https://github.com/fcbond> can you reproduce a problem caused by
the current setup? Or is there a change you'd like to see (and if so, why)?
Otherwise I'll consider the issue closed.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#190 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/ABD8xmQVXSgOqM8711LwLpejVqF5iMulks5uo0gdgaJpZM4Xy_Cs>
.
--
Francis Bond <http://www3.ntu.edu.sg/home/fcbond/>
Division of Linguistics and Multilingual Studies
Nanyang Technological University
|
I'm sorry you had so much trouble finding the version. Making the And the 'single-sourcing' link implies Also relevant (but note the "deferred" status): https://www.python.org/dev/peps/pep-0396/ In any case I'll leave this open and decide on something for the next release. |
Next release is actually v0.9.1, so I'm switching the milestone |
Although the version is defined in about.py and it looks as though it is being read in setup.py, I can't actually see it:
This makes it impossible to request a given version, ...
The text was updated successfully, but these errors were encountered: