-
-
Notifications
You must be signed in to change notification settings - Fork 92
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
Adopt pyproject.toml #1618
Adopt pyproject.toml #1618
Conversation
@RogerHaase I put your name/email into maintainer list (as found in git logs). @UlrichB22 I didn't find a usable email in git logs, so I didn't add you into maintainer list yet. Are you both ok with adopting ruff instead of flake8? The latter still can't read its settings from pyproject.toml. |
91ba34a
to
e2b6b57
Compare
Note: I didn't do much practical testing of this yet, help is appreciated. |
I started testing in a fresh install from a git clone (for developers). Following tests were successful after short check:
Now I'm testing For me it is fine not to be on the list of maintainers. |
@UlrichB22 thanks for testing. translations: maybe the size difference comes from (missing) comments? iirc, there is an option to include src file / line no as a comment. |
Regarding babel, please change babel.cfg to
and add following options to the
|
When reviewers think this is ready, please approve. After that, I'ld like to squash some commits before merging. |
I tested clone on windows, all OK except for test 3 errors (Cannot create a file when that file already exists:) that did not repeat on 2nd try. This happens occasionally on Windows, workaround is to rerun. |
@RogerHaase Are you saying this problem is new, caused by my changes and does not happen in master branch? |
Not a new problem. Windows seems to have problems dealing with tests that delete a file and then recreate a file with same name. Happens around 1 in 50 or 100 tests. Cannot reproduce. |
@RogerHaase OK, guess that should be in a ticket then, not in this PR. I remember we have seen very strange windows fs effects in the past, too. |
The translation with pybabel works fine now. |
I manually and automatically compared the sdist *.tgz files produced by this PR and master branch - there were no unexpected differences. So, if there is nothing else, I'll squash some commits and make it ready to merge. |
- setuptools build-system - replace deprecated and problematic setup_requires by build-system.requires - move setuptools_scm's config there
TODO: message_extractors for babel
instead of its setuptools integration. for now, keep a minimal setup.py so it can still be called.
note really needed, it works with conf.py and Makefile / make.bat.
Let's focus on python packaging and leave the many kinds of Linux (and other) dist packaging to the dist package maintainers.
ruff supports pyproject.toml (and is quite fast).
install -> pip install ... sdist / bdist -> python -m build upload -> twine ... translations -> pybabel ...
306ddba
to
59f28b0
Compare
Squashed some fix commits and force-pushed. Ready AFAIAC. |
Modern python packaging expects to find a
pyproject.toml
, which can also be used to contain configuration information for a lot of python-related tools.Direct calls to
setup.py
are deprecated. Fixes #1619.Fixes #1571.