question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Introduce setup.cfg

See original GitHub issue

The 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:closed
  • Created 6 years ago
  • Reactions:4
  • Comments:18

github_iconTop GitHub Comments

1reaction
ofekcommented, Sep 1, 2017

-1 to setup.cfg, it’ll be deprecated soon anyway

0reactions
KOLANICHcommented, Jul 23, 2019
Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found