Introduce setup.cfg
See original GitHub issueThe best development in the python packaging field in the last years is the introduction of the setup.cfg:
- declarative description
- simple to read
- easy to diff
It reduces the need for error prone, cargo cult boilerplate code in the setup.py. A nice setup.py should look like this (if it should exist at all):
from setuptools import setup
if __name__ == "__main__":
setup()
IMHO, the rest should be declaratively described without arbitrary code execution in the setup.cfg
Issue Analytics
- State:
- Created 6 years ago
- Reactions:4
- Comments:18
Top Results From Across the Web
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 >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 >3. Writing the Setup Configuration File — Python 3.11.1 ...
cfg , for users to edit is a cheap and easy way to solicit it. Configuration files also let you provide default values...
Read more >Understanding setup.py, setup.cfg and pyproject.toml in Python
This blog post is designed to clarify my thinking around installing Python packages and the use of setup.py, setup.cfg and pyproject.toml ...
Read more >Issues - GitHub
Introduction. travis build status. setup.cfg is a cheekily named Python package which supports providing all of a Python distribution's metadata and build ...
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
-1 to setup.cfg, it’ll be deprecated soon anyway
@navdeep-G