Support setup.cfg use rather than setup.py
See original GitHub issueI honestly don’t know what form an implementation of this would take nor whether the system allows a reasonable solution presently. But… There is a shift towards setup.cfg
over setup.py
. I am unaware of any way to define command classes in setup.cfg
. Maybe something relating to in-tree backends? Though I’m not sure how you nicely compose those for projects with their own. And sure, by the time you include an in-tree backend, perhaps you are losing a chunk of the value of static setup.cfg
files.
Issue Analytics
- State:
- Created 3 years ago
- Reactions:4
- Comments:6 (2 by maintainers)
Top Results From Across the Web
setup.py vs setup.cfg in Python - Towards Data Science
The setup. cfg is an ini file, containing option defaults for setup.py commands. You can pretty much specify every keyword we used in...
Read more >What's the difference between setup.py and setup.cfg in ...
Traditionally, setup.py has been used to build a Python package, i.e., python setup.py build. Like any old Python file, setup.py can contain lots...
Read more >Configuring setuptools using setup.cfg files
Setuptools allows using configuration files (usually setup.cfg ) to define a package's metadata and other options that are normally supplied to the setup() ......
Read more >3. Writing the Setup Configuration File — Python 3.11.1 ...
The setup configuration file is a useful middle-ground between the setup script—which, ideally, would be opaque to installers 1—and the command-line to the ......
Read more >Understanding setup.py, setup.cfg and pyproject.toml in Python
The setup.py and setup.cfg files are artefacts of the setuptools module which is designed to help with the packaging process. It is used...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
I think the correct thing would be not to use
version
at all but providing abuild-backend
that just fills in theversion
metadata for you. I’ll probably give this a shot in the near future, though others are welcome to jump in first.To add to this, there is actually a move from setup.cfg to pyproject.toml. See #146