-
Notifications
You must be signed in to change notification settings - Fork 33
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
IndexError with my .gitignore file when trying to build a Python package #626
Comments
Please open an issue: https://github.com/cpburnz/python-pathspec For now you can: https://hatch.pypa.io/latest/config/build/#vcs |
@ofek Done. As reference: cpburnz/python-pathspec#64 |
@ofek I have followed your advice and tried it with the following option in my [tool.hatch.build]
ignore-vcs = true Unfortunately that does not change anything, I get the same error as before. |
show |
Ok I found the problem in my include = [
"**"
] As soon as I have removed this option, everything was fine again. |
Problem description
I am trying to package my Python project/library. So first I created a
pyproject.toml
file, following the official Python docs, using hatchling - no fancy stuff here. Then, after upgrading to the latestbuild
version, I ran this command from within the root folder of my project:I do have a
.gitignore
file in my root folder, however, it includes only the default Python project template from Github.Any ideas what is causing this error?
The text was updated successfully, but these errors were encountered: