Skip to content
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

Should toml be added as a dependency? #100

Closed
max-sixty opened this issue Jul 16, 2021 · 4 comments · Fixed by #101 or #104
Closed

Should toml be added as a dependency? #100

max-sixty opened this issue Jul 16, 2021 · 4 comments · Fixed by #101 or #104

Comments

@max-sixty
Copy link

Hi @keewis !

Our CI is failing with:

  File "/root/.cache/pre-commit/repon4ojay_j/py_env-python3/lib/python3.8/site-packages/blackdoc/blackcompat.py", line 9, in <module>
116    import toml

And I noticed that toml isn't specified in setup.cfg. Should it be?

Thank you!

@keewis
Copy link
Owner

keewis commented Jul 16, 2021

yes, I did miss that. Obviously, if it is used in some part of the code it should be a dependency. Do you want to send in a PR?

As for the reason why it didn't fail before: blackdoc depends on black, which used to depend on toml but recently switched to tomli (the reason I think was that toml has a "lack of maintainership" issue). Given that the code that uses toml is vendored, I think I'll copy the most recent version from black and switch to using tomli when I get the time. I'm not quite sure when that will be so I'll issue a bugfix release with the setup.cfg update.

@max-sixty
Copy link
Author

Yes. I need per-repo approval to contribute to repos, and blackdoc is not yet on that list. It won't be hard to get but takes a few days — as long as that timing is OK with you

@keewis
Copy link
Owner

keewis commented Jul 16, 2021

well, I'd estimate this to be a single line PR so if getting the approval takes more than 5 Minutes it's probably not worth it. Unless you expect to open other PRs? (to be sure, those are always welcome!)

@nzw0301 nzw0301 mentioned this issue Jul 17, 2021
1 task
@keewis
Copy link
Owner

keewis commented Jul 17, 2021

reopening so I don't forget to update the vendored code

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants