conda-incubator / conda-store

Data science environments, for collaboration. ✨
https://conda.store
BSD 3-Clause "New" or "Revised" License
150 stars 50 forks source link

DEV - Set traitlets application version #981

Closed soapy1 closed 1 week ago

soapy1 commented 1 week ago

Fixes https://github.com/conda-incubator/conda-store/issues/977

Description

This pr set's up the traitlets application to know the current version of conda-store. Setting the version property of a traitlets Application will allow the built in trailtlets '--version' flag to work properly.

For example, running conda-store-server --version now works properly

 $ conda-store-server --version 
2024.11.1
 $ conda-store-worker --version
2024.11.1

ref: https://github.com/ipython/traitlets/blob/main/traitlets/config/application.py#L872 https://github.com/ipython/traitlets/blob/main/traitlets/config/application.py#L200

Pull request checklist

netlify[bot] commented 1 week ago

Deploy Preview for conda-store canceled.

Name Link
Latest commit cf5225a99e479d64c2fbd41be97df371b9f5deab
Latest deploy log https://app.netlify.com/sites/conda-store/deploys/673b1b616ee0b30008f37aff
soapy1 commented 1 week ago

The Build and maybe upload PyPI package /... is currently a little broken, but fixed in this pr . Will rebase this pr to pick up the fix once #983 is merged