Skip to content
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

Version reported as 0.0.0 for dev versions when using conda or pip #1252

Closed
lorenzncode opened this issue Jan 28, 2023 · 4 comments · Fixed by #1286
Closed

Version reported as 0.0.0 for dev versions when using conda or pip #1252

lorenzncode opened this issue Jan 28, 2023 · 4 comments · Fixed by #1286

Comments

@lorenzncode
Copy link
Member

>>> import cadquery
>>> cadquery.__version__
'0.0.0'
@lorenzncode
Copy link
Member Author

This is true at least for master.

Perhaps #1245 will correct the version for the release but then does it go back to 0.0.0 for master?

@jmwright
Copy link
Member

@lorenzncode Maybe it's related to the environment variable mentioned in #1085 ? Start here and ready the previous few comments to get the context.

@lorenzncode
Copy link
Member Author

@jmwright Thanks, I see it's set here with build variable Build.SourceBranchName.

https://github.com/CadQuery/conda-packages/blob/40f77ee43585a70e5958f6d7890e793337630ce1/conda-build.yml#L71

@adam-urbanczyk
Copy link
Member

This is not a "when installing with conda" issue, but rather "when installing a dev version" issue.

Release version for at least 2.2 reports __version__ correctly.

@adam-urbanczyk adam-urbanczyk changed the title Version reported as 0.0.0 when installing with conda Version reported as 0.0.0 for dev versions when using conda or pip Mar 14, 2023
@adam-urbanczyk adam-urbanczyk linked a pull request Mar 14, 2023 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants