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.

Support setup.cfg use rather than setup.py

See original GitHub issue

I 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:open
  • Created 3 years ago
  • Reactions:4
  • Comments:6 (2 by maintainers)

github_iconTop GitHub Comments

1reaction
effigiescommented, Sep 2, 2022

I think the correct thing would be not to use version at all but providing a build-backend that just fills in the version metadata for you. I’ll probably give this a shot in the near future, though others are welcome to jump in first.

1reaction
zerothicommented, Nov 3, 2021

To add to this, there is actually a move from setup.cfg to pyproject.toml. See #146

Read more comments on GitHub >

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

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