-
-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
Remove dead-code from setup.py #4659
base: main
Are you sure you want to change the base?
Conversation
This theoretically may have some effect (I am not sure). |
It is probably good to add some sanity checks/regression tests in the style of https://github.com/pypa/setuptools/blob/v75.1.0/setuptools/tests/test_sdist.py#L969-L975 (but instead of sdist, checking the wheel) for those removals. In particular we want to make sure that all the licenses of the vendored code is included (because that is kind of a legal obligation). |
Thanks for the feedback. Note that there are already tests for the I didn't yet check regarding testing LICENSE etc., but note that it is declared in the MANIFEST ( Line 13 in 3106af0
setuptools is doing the right thing. I can see a little value in those things, so if you want me to proceed would be fine adding the test.
|
8d0dcfd
to
38ca0b5
Compare
I'm sorry to say that I forgot to install pre-commit, and the tests failed on lint. Have now installed, and re-pushed. |
I think it would be interesting to add this, as they would work as regression tests if in the future we change the configuration. |
Summary of changes
Removes the dead code in
setup.py
:pyproject.toml
we declareinclude-package-data=true
(from Install all the files #4479)pypi_link
function has no effectI hesitated to also remove the
os.chdir
functionality, but considered that maybe this is important for something else (although unusual).Pull Request Checklist
(not applicable)
newsfragments/
].(See [documentation][PR docs] for details)