4 ms·
Why use str constants with setuptools?
When we use setuptools for packaging our Python library, why write like this?
setup(
name='mymodule',
version='0.1',
)
not this?
import mymodule
setup(
name=mymodule.__name__,
version=mymodule.__version__,
)
Please answer.