-
Notifications
You must be signed in to change notification settings - Fork 94
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
Odd __version__
reported
#336
Comments
Seeing the same as well from conda and from pypi but not from source |
I can confirm this is still an issue with conda packages, but installing from source works properly. |
I think PR ( #448 ) should address this. |
With the new packages, this is now reported correctly. In [1]: import dask_cuda
In [2]: dask_cuda.__version__
Out[2]: '0.17.0a+46.ge77a3fe' |
Reopening as we had to revert part of PR ( #448 ) with PR ( #466 ) as it was breaking PyPI uploads. See issue ( pypi/warehouse#8891 ) for more context as to why that is. Am reopening this as the issue presents (at least based on my local testing) with that reversion. Will need to figure out another way forward that doesn't breaking PyPI uploads and does include the version. |
This issue has been marked stale due to no recent activity in the past 30d. Please close this issue if no further response or action is needed. Otherwise, please respond with a comment indicating any updates or changes to the original issue and/or confirm this issue still needs to be addressed. This issue will be marked rotten if there is no activity in the next 60d. |
This is still an issue. We tried to fix it, but the fix broke package building and uploading. So we had to revert. Need to investigate a new fix |
This issue has been labeled |
Just for a quick update, this issue still remains. |
This issue has been labeled |
This issue has been labeled |
cc @wence- |
Per PEP440, local version identifiers are disallowed for uploads to public index servers. In CI, when we build pypi packages, we override the versioneer-provided version with a PEP440-compatible version by defining GIT_DESCRIBE_TAG and VERSION_SUFFIX. These are glued together to produce a version which we then use to override the version produced by versioneer. This leaves us free to use the command classes provided by versioneer in all circumstances. Closes rapidsai#336.
The `GIT_DESCRIBE_TAG` and `VERSION_SUFFIX` environment variables are used to control the name and version of the created conda/pypi package. They should, however, not be used to control the version of the installed package by overriding the versioneer cmdclass since that leaves an unmodified _version.py file in the installed package directory. A consequence is that the version reported by `dask_cuda.__version__` is `"0+unknown"`. We cannot always use the versioneer-provided cmdclass unmodified since PEP440 specifically forbids PyPI from accepting packages that have local version identifiers (as used by versioneer). To get around this, when setup.py detects it is building a PyPI package (`GIT_DESCRIBE_TAG` is in the environment), patch the version returned from versioneer with a PyPI-compatible one. While we're here, bring the conda version string into line with the rest of the rapids ecosystem. Closes #336. Authors: - Lawrence Mitchell (https://github.com/wence-) Approvers: - AJ Schmidt (https://github.com/ajschmidt8) - Peter Andreas Entschev (https://github.com/pentschev) URL: #948
Appears the version may not be working correctly here.
The text was updated successfully, but these errors were encountered: