-
-
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
Confusion about the effects of setting packages
for sdist
#3922
Comments
Hi @doronz88, the However Most of the times, it includes more files than the ones you see in the Sdists are still used when installing your package in a platform for which there are no wheels available and in some OS redistributions of Python packages (e.g. There is some level of agreement in the community that believe it is a good practice to include test files into the If you don't want to include files in the Footnotes
|
packages
for sdist
@abravalheri thanks for the amazingly fast and detailed response! However, both when I remove the |
Hi @doronz88, the default set of files automatically included in To do something different than the default, it is necessary to configure If you want all the files in git to be part of the |
Thanks! I completely understand the rational and behavior now 😃 |
setuptools version
67.7.2
Python version
Python 3.11.3
OS
macOS 13.3.1
Additional environment information
No response
Description
My
pyproject.toml
explicitly specifies apackgaes
list forsetuptools
to include.However,
tests/test_utils.py
is still included in the generated.tar.gz
archive.Also, adding the
exclude
key didn't help.Expected behavior
Not including the
tests/test_utils.py
How to Reproduce
git clone git@github.com:doronz88/pymobiledevice3.git -b refactor/python_package cd pymobiledevice3 python3 -m pip install -U build python3 -m build
Open and view the
dist/*.tar.gz
file.Output
The
tests/test_utils.py
is includedThe text was updated successfully, but these errors were encountered: