-
-
Notifications
You must be signed in to change notification settings - Fork 28
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
When using [project.readme] it gets shifted to inside [project] and breaks pyproject.toml. #110
Comments
PR welcome to fix it. |
I'd be happy to if I understand first:
|
Yes to both. |
Hey, I have tried to come up with a solution for this but think it’s actually an issue with the usage of the TOML-syntax. In their docs it’s emphasized, that you should not introduce sub-tables (e.g. [project.readme]
text = '''netCDF version 4 has many features not found in earlier versions of the library...
'''
content-type = "text/x-rst"
[project]
name = "netcdf4"
description = "Provides an object-oriented python interface to the netCDF version 4 library"
dynamic = [
"version",
] This should not break your file. |
I just encountered this - minimal example: [project]
name = "widgetizer"
keywords = ["widgets"]
[project.readme]
file = "README.rst" …gets reformatted to: [project]
name = "widgetizer"
[project.readme]
file = "README.rst"
keywords = [
"widgets",
] Sorting [project.readme]
file = "README.rst"
[project]
name = "widgetizer"
keywords = [
"widgets",
] |
PR welcome 👍 |
I think per diazona/setuptools-pyproject-migration#112 and diazona/setuptools-pyproject-migration#114 , it would be a good feature if |
Sorry if I'm doing something wrong but when running the
pyproject-fmt
it breaks our pyproject.toml and moving it manually to below the "dynamic" entry fixes it.One can see that in first commit of Unidata/netcdf4-python#1267 in Unidata/netcdf4-python@1872af6.
Thanks for the awesome tool!
Feel free to close this if what I'm doing is out of scope for this tool.
The text was updated successfully, but these errors were encountered: