py-why / dowhy

DoWhy is a Python library for causal inference that supports explicit modeling and testing of causal assumptions. DoWhy is based on a unified language for causal inference, combining causal graphical models and potential outcomes frameworks.
https://www.pywhy.org/dowhy
MIT License
6.89k stars 916 forks source link

Fixing python publish workflow to run after version tag is created #1100

Closed amit-sharma closed 7 months ago

amit-sharma commented 7 months ago

On version tag creation, the python publish workflow failed.

This PR modifies the workflow so that it can be run again and it can fetch the previous tags. Also it modifies pyproject.toml such that the version number returned by poetry-dynamic-versioning is a simple string that is exactly the tag version number.

Based on: https://github.com/mtkennerly/poetry-dynamic-versioning/issues/78