Add [tools.setuptools_scm] to pyproject.toml
See original GitHub issueDescription
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:
- Created 2 years ago
- Comments:17 (17 by maintainers)
Top 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 >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 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
As an aside, the fact that GitHub can’t use setup.cfg is a GitHub ‘bug’ rather than an issue with our infrastructure 😂