-
Notifications
You must be signed in to change notification settings - Fork 9
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
Value of setup.cfg [options.package_data]
entry * = [...]
is converted to a string representation of [...]
#35
Comments
Hi @bskinn thank you very much for reporting this.
There is an example on the setuptools website about this: https://setuptools.pypa.io/en/latest/userguide/declarative_config.html So I don't think Does this make sense to you? |
Oh, interesting -- I didn't realize that was a limitation of the INI format. Yes, it makes total sense! Would it make sense to add a warning, displayed to the user, if |
That is one of the reasons why people want to move towards TOML. It is easier to work with.
That is a bit tricky... Do you know if there is a validator for |
I don't offhand, unfortunately. Perhaps there's something in the guts of That said -- perhaps a "sloppy" warning would be good enough? E.g., emitting a warning that 'an array may be present', any time a string value contains both (It seems like the multiline strings are interpreted well by |
I guess declaring dependencies would be one time that |
I checked... setuptools does not seem to have any kind of checks for this problem. This can be done directly in Would you like to give it a try and propose a PR? |
Sure, I'll take a look and see if I can come up with something. Can't make any promises on a timeline, though. |
Thank you very much @bskinn, there is absolutely no pressure and no rush. This is a "nice to have", but if too complicated or if none of us has the bandwidth, we can still use the package like it is nowadays. |
First -- thank you for all your work around
pyproject.toml
andsetuptools
, and for this conversion helper -- very much appreciated!!I'm using
ini2toml
0.10 and Python 3.9.11. The following piece of mysetup.cfg
is being converted to
I'm pretty sure it should just be
This was the only array value in the entire
setup.cfg
, so I don't have any other array values to compare to. Is this parse case just not implemented yet?The text was updated successfully, but these errors were encountered: