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
Explore using isort to manage imports #31
Conversation
Oh I love that you're consolidating things in You might also consider adding the following and simplifying
Then you can remove the Docs link: https://docs.pytest.org/en/6.2.x/customize.html#pyproject-toml |
In fact, for recent (maybe too recent for octo's taste) versions of setuptools and Python, it's possible to use ONLY pyproject.toml. I was playing with this last month at https://github.com/bbkane/simple-python-package . |
Nice. Done.
Will explore that, at some point but not in this PR/thread. I have looked at, and not liked, the newer setuptools replacement stuff like poetry. If at some point it's possible to replace setup.py itself and stick with the tooling I wouldn't complain. There's definitely times when it'd be nice to be able to process config rather than have to run setup.py to get answers (e.g. ./script/update-requirements.) I assume the pyproject.toml stuff is mostly just moving stuff out of setup.cfg there... |
Sorry, I didn't get notified of your reply for some reason. I also don't like the |
I'll try to make an experimental PR just to see if CI passes for all Python versions after this PR gets merged. |
So I started playing with the "migrate everything to pyproject.toml but still use setuptools/build packages" idea and it turns out that relies on some beta functionality of setuptools:
I've commented in pypa/setuptools#3632 and subscribed to pypa/setuptools#3683 and pypa/setuptools#3347 in hopes that someone will mention that the functionality is stabilizing. Once/If it stabilizes, I'll bring this back idea back up, but for now it's probably not worth its own issue/PR to track |
Thanks for digging into it! Will keep an eye on those as well. |
Fairly happy with the results here. If we want to go forward with this it'll need ported over into https://github.com/octodns/octodns-template and https://github.com/octodns/octodns and then applied to a whole bunch of repos.
/cc #29 (comment) @bkane-msft for the suggestion