-
-
Notifications
You must be signed in to change notification settings - Fork 211
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
How to filter out .gitignore
with python -m build --sdist
#1058
Comments
Manifest is good for such exclusions and way simpler than gut export ignores |
Just to be clear, so you're saying instead of More just trying to understand, I agree it sounds more hacky than |
setuptools-scm asks git archive for the file list to correctly manage export ignores and export substitutions, that part is pretty hacky but does its job - the most painless way to better controll the archive content is the manifest when using setuptools, or the hatch pattersn when using hatch |
Thank you again, that makes sense. I added a docs contribution related to this to help future devs. Cheers! |
I have a
pyproject.toml
like the below:I noticed after running
python -m build --sdist
that the built.tar.gz
contains version controlled files like.gitignore
or folders like.github
.Reading the
setuptools
docs, it talks aboutsetuptools_scm
and including files: https://setuptools.pypa.io/en/stable/userguide/extension.html#adding-support-for-revision-control-systemsIs there some way to, within
pyproject.toml
, specify tosetuptools_scm
how to exclude files and folders? Or should one fall back ontoMANIFEST.in
for exclusions like that?The text was updated successfully, but these errors were encountered: