-
-
Notifications
You must be signed in to change notification settings - Fork 313
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
Allow multiple inclusion of symlinks #276
Comments
Can we do that while also preventing infinite loops? |
I think so, let me come up with a patch. |
hatch/tests/backend/builders/plugin/test_interface.py Lines 152 to 171 in 6ed86c1
|
Does that project currently work with setuptools? Seems like it does the same thing: https://github.com/pypa/setuptools/blob/78cb747d66bda1a6f6649e82690aaf5083a89d69/setuptools/_distutils/filelist.py#L275-L299 |
In |
Yes,
I haven't looked at what is actually being done here yet, but why does edit: Seems like that shouldn't be necessary/a problem with |
Hatchling inclusion is based mostly on pattern filtering rather than raw paths. Let me think about this. |
* Migrate build system to Hatchling and add Hatch configuration in pyproject.toml. - Use pip v21.2+'s ability to handle recursive dependencies to define nested extras. c.f. https://hynek.me/articles/python-recursive-optional-dependencies/ - Use hatch-vcs to dynamically determine the version information from Git. - Use 'only-include' option with `[tool.hatch.build.targets.sdist]` to avoid problem with hatchling discovering the symlink of src/pyhf/schemas under docs/ before src/ and skipping including it in the sdist. c.f. #791 and pypa/hatch#276 * Remove all setuptools related files: setup.py, setup.cfg, MANIFEST.in. * Add .flake8 config file as the config for flake8 had previously been in setup.cfg as flake8 doesn't support pyproject.toml. * Remove use of check-manifest from packaging GitHub Actions workflow. * Remove mention of setup.cfg from release checklist. * Add Scikit-HEP admins info to maintainers metadata. Co-authored-by: Angus Hollands <goosey15@gmail.com> Co-authored-by: Ofek Lev <oss@ofek.dev>
In the process of porting a package to Hatch, I noticed that it was failing to include a directory that was symlinked to elsewhere in the project. At the moment we have a first-seen-wins approach that means the source directory (in this instance) is being ignored.
In general, I think we should want users to be able to treat symlinks are distinct (rather than looking at the inode). Do you agree?
hatch/backend/src/hatchling/builders/utils.py
Lines 16 to 26 in 05f17ca
See scikit-hep/pyhf#1888 for the project in question!
The text was updated successfully, but these errors were encountered: