Is it possible to exclude .gitignore from build? #368
rubenhortas
started this conversation in
General
Replies: 1 comment 3 replies
-
It is not possible because then building the wheel from an sdist would not work properly. If you really need that changed I could not ship it if this is disabled https://hatch.pypa.io/latest/config/build/#vcs |
Beta Was this translation helpful? Give feedback.
3 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi, I'm using Python 3.9.2 and hatch 1.3.1.
The structure of my project is as follows:
project_name/
|- .git/
|- .github/
|- .idea/
|- dist/
|- screenshots/
|- src/
|- tests/
|- venv/
|- .gitignore
|- Changelog.md
|- LICENSE
|- pyproject.toml
|- README.md
|- requirements.txt
In my pyproject.toml file I have
I'm trying to exclude .gitignore from build (I don't see the need to include it), but I'm unable to do it.
I also tried excluding it with expressions like ".", ".git", etc, but is always included on the build.
I search in the issues and discussions (and google, of course), but the closest thing I found is "Always include any root .gitignore file for source distributions" but does not have description.
Any help is appreciated.
Thanks!
Beta Was this translation helpful? Give feedback.
All reactions