Automate conda version by extracting it from setup.py#782
Conversation
|
@maxbriel, how do we update the project version with this approach? Is the idea that we'd edit in |
|
This branch still has It should be possible to test this on Linux with This basically removes the manual step of updating the |
|
thanks @maxbriel I think this looks good. I tested this locally and it appears to pick up the correct version. I believe we could still have e.g., custom versions for development branches if we wanted, using e.g., to set a custom tag for the branch locally. Otherwise, the local branch should always report the nearest version tag associated with that branch's commit. |
Extracts the versioneer version using conda's build in function to add it inside
meta.yaml.I wasn't able to test properly, because my local
condabuild fails (also without this change).See here for an example: https://docs.conda.io/projects/conda-build/en/stable/resources/define-metadata.html#loading-data-from-other-files