-
Notifications
You must be signed in to change notification settings - Fork 273
Add __version__ #15
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
Add __version__ #15
Conversation
Added __version__ attr to package so that scripts that check local packages to see if newer versions are available can work. Almost all Python packages have a version attr, and the vast majority of them name it "__version__"
|
Alternatively you can simply use setuptools/distutils to do this. The metadata should be provided when you install the package. This seems like an unnecessary duplication |
|
5 of those are exactly the same and work under the same conditions (pip, setuptools, wheel, OS package manager, manual installation via |
|
Further, even if we wanted to add this attribute, we would then have the version declared in two places and one or the other would be guaranteed to fall out of sync and in all likelihood it would be the |
|
By manual installation I meant unzipping the package in the right place, not Some projects do this in Others generate a
|
Yeah. Don't do that.
Except that is very fragile. Import errors could then easily trigger a failure to install the package.
We could certainly generate a The other thing is to note the fact that certifi carries no metadata on the module itself. There's no precedent for adding this except to allow users of bad practice to continue using their bad practices. |
|
Requests has always had |
|
This is really not worth arguing about. =) I merged this by hand so I could update the |
|
To be clear, you won't actually find this in |
Added version attr to package so that scripts that check local
packages to see if newer versions are available can work.
Almost all Python packages have a version attr, and the vast majority of
them name it "version"