https://pantsbuild.org/ logo
#general
Title
# general
a

acceptable-guitar-79854

03/04/2021, 9:58 PM
hey, is there a way to store the python_distribution version argument in a file? in most python libraries one can do
import x
x.___version___
and i was thinking of not duplicating that information (existing setup.py-s were reading the version number from a module file)?
h

hundreds-father-404

03/04/2021, 10:02 PM
Yeah, via a small plugin hook if I understand your question correctly: https://www.pantsbuild.org/docs/plugins-setup-py
a

acceptable-guitar-79854

03/04/2021, 10:03 PM
awesome, thank you ♥️
❤️ 1
4 Views