Closed haimat closed 2 years ago
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: https://github.com/cpburnz/python-pathspec/issues/64
@ofek I have followed your advice and tried it with the following option in my pyproject.toml
file:
[tool.hatch.build]
ignore-vcs = true
Unfortunately that does not change anything, I get the same error as before.
show pyproject.toml
Ok I found the problem in my pyproject.toml
file:
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?