When you have a setup.py
file, you can get the name of the package via the command:
C:\some\dir>python setup.py --name
And this would print the name of the package to the command line.
In an attempt to adhere to best practice, I'm trying to migrate away from setup.py
by putting everything in setup.cfg
since everything that was previously in setup.py
was static content.
But our build pipeline depends on being able to call python setup.py --name
. I'm looking to rewrite the pipeline in such a way that I don't need to create a setup.py
file.
Is there way to get the name of the package when you have a setup.cfg
but not a setup.py
file?