-
-
Notifications
You must be signed in to change notification settings - Fork 213
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
migrate setup.py to pyproject.toml #299
migrate setup.py to pyproject.toml #299
Conversation
hmm funny, I don't have this circular/partial import error on my computer through tox. |
Hey, thanks for the contribution!
What brought this PR about? |
we use this project and I found it is still using setup.py, so I offer the conversion to setup.cfg, which is superior |
Do you have any resources about setup.cfg's superiority? Is setup.py prior to this PR causing problems? I've been using pyproject.toml in personal projects. I thought that was the new hotness. But after cursory Googling, the winning project configuration format is unclear to me! 😅 |
I reproduced the failure by deleting the local, ignored file tldextract/_version.py. I wonder if there's a way to clean the file for tox tests, to make reproducing the failure easier. Anyway, in 2b42b48, I restored some lost code from the transition. Tests pass now. According to setuptools_scm's older docs, its configuration must remain in setup.py. (The newest release of their docs only give pyproject.toml instructions.) |
https://setuptools.pypa.io/en/latest/references/keywords.html:
Not per se, but its paradigm is deprecated (executing arbitrary code just to describe a package), it's more complex than setup.cfg, allows for error to slip in and support will eventually be dropped in a not-so-far future.
It is. But the change is (quite) bigger than the simple |
2b42b48
to
b4efdb3
Compare
OK I just discovered the |
And setuptools_scm seems to not work only with setup.cfg, arg. I will either spend some time trying to do the conversion to pyproject.toml or close the PR. |
Thank you for the explanation on the different config options! That makes sense. I'm open to migrating away from the very legacy setup.py approach. However, rather than migrate setup.py to setup.cfg, and (soon?) migrate setup.cfg to pyproject.toml, I'd rather leap to pyproject.toml directly, to save some churn. I'd welcome that conversion. 🙏
Yes, I fixed it in 2b42b48, which you seemed to force-push over. 😉 If we're not doing setup.cfg anyway, no sweat. |
f6029ef
to
1635a41
Compare
4fa4dd2
to
0f1f3a9
Compare
Hmmm, there you go. Only the pypy job is failing, I don't really get why but I guess it has to do with just being too old versions of pypy or something similar. Since python 3.7 is EOL for 3 weeks now, you might want considering to just drop the support. |
Wow. Here you go. You don't even have to drop support for python 3.7, just use the latest 3.7 of pypy, lucky you. |
Beautiful! Thank you! |
No description provided.