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.

Add [tools.setuptools_scm] to pyproject.toml

See original GitHub issue

Description

I noticed that GitHub can’t build a dependency graph for astropy at https://github.com/astropy/astropy/network/dependencies because we use a setup.cfg not setup.py or pyproject.toml. Looking at https://pypi.org/project/setuptools-scm/ setup.cfg and setup.py are deprecated and pyproject.toml is the new standard. I haven’t looked into the downstream effects, so maybe a @astropy/core-release-maintainers could weigh in, but it seems we should begin transitioning as much as we can to pyproject.toml.

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:17 (17 by maintainers)

github_iconTop GitHub Comments

1reaction
Cadaircommented, Oct 29, 2021

I think at the time we added the scm line to setup.py it was still recommended for backwards compat in their docs. @astrofrog and I are already scheming to see if we can burn the whole setup.py file 😉 https://github.com/astropy/extension-helpers/issues/32

1reaction
astrofrogcommented, Oct 29, 2021

As an aside, the fact that GitHub can’t use setup.cfg is a GitHub ‘bug’ rather than an issue with our infrastructure 😂

Read more comments on GitHub >

github_iconTop Results From Across the Web

pypa/setuptools_scm: the blessed package to manage ...
setuptools_scm extracts Python package versions from git or hg metadata instead of declaring them as the version argument or in a SCM managed...
Read more >
Configuring setuptools using pyproject.toml files
Starting with PEP 621, the Python community selected pyproject.toml as a standard way of specifying project metadata. Setuptools has adopted this standard ...
Read more >
Frequently Asked Questions
If you still want to remove setuptools_scm (a build-time dependency we add by default), it's actually really simple: Within setup.py just remove the ......
Read more >
setuptools-scm [python-library]
The preferred way to configure setuptools_scm is to author settings in a tool.setuptools_scm section of pyproject.toml . This feature requires Setuptools 42 ...
Read more >
Packaging
Packages should provide a pyproject.toml file that at least looks like this: ... requires setuptools_scm and toml unless you add a workaround to...
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