-
-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
Packaging cleanup, migration to full setuptools without distutils #4294
Packaging cleanup, migration to full setuptools without distutils #4294
Conversation
acce8ad
to
7920451
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I would prefer if the metadata where to be defined in setup.cfg
instead. See here, for reference: https://setuptools.readthedocs.io/en/latest/userguide/declarative_config.html
It might also make sense to separate the build system changes from the removal of bin
, debian
, and man
and put that in another MR.
I opened another MR to separate removal of legacy build file and setuptools migration. Regarding the move to |
495c643
to
1291354
Compare
Nevermind that, most of it is doable with setup.cfg. For version we have |
956743b
to
d86f090
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Left some comments. Even if you add an extras_require
, please don't remove the requirements_test.txt
files. They are need to pin exact versions for CI testing.
d86f090
to
4dd77c2
Compare
I thought the the |
86a2aa3
to
5cde83e
Compare
Unfortunately |
we do run tests and build the documentation during debian package build, but dont worry about that: i've been gradually migrating all my packages from fetching new upstream releases from PyPI to GitHub releases: it's just easier downstream (we get all the files that we need) and you can keep the PyPI release small (without extra files end users dont really need when pip installing pylint) -- thanks for asking tho! |
42ac2e4
to
e0c97a3
Compare
Amazing, we're going to be able to make the package a lot smaller ! |
@Pierre-Sassoulas Regarding the failing benchmark test. The reason is that the test tries to import all modules in the root dir to check for a from unittest.mock import patch
# ....
def test_baseline_benchmark_j1_all_checks_lots_of_files(self, benchmark):
# ...
with patch("os.listdir", return_value=["pylint", "tests"]):
register_plugins(
linter, os.path.abspath(os.path.join(os.path.dirname(__file__), "..", ".."))
)
# ... |
You should also be able to include |
As it's already a dependencie but with less constraint. See pylint-dev#4294
As it's not used in debian packaging at all
Temporary before pyproject.toml see, https://docs.pytest.org/en/stable/customize.html#setup-cfg
See comments on review here: pylint-dev#4294
2c0a049
to
95994e5
Compare
As it's already a dependencie but with less constraint. See #4294
See comments on review here: #4294
Description
Move from distutil to setuptools. (Second step toward pyproject.toml after #4295 ).
We might also want to remove
doc/
andtests/
directory from the packaging ? Are you using the tests when packaging for debian @sandrotosi ?Type of Changes
Related Issue
Relates to #4193