Skip to content

Include statics as artifacts in both wheel and sdist #2544

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

Merged
merged 1 commit into from
Apr 23, 2025

Conversation

r4victor
Copy link
Collaborator

Fixes #2543

Release 0.19.4 did not include UI due to migration to hatching (#2455). By default, hatching does not include files listed in .gitignore even if there are specified in tool.hatch.build.targets.wheel.shared-data.

The correct approach seems to be to specify artifacts:

If you want to include files that are ignored by your VCS, such as those that might be created by build hooks, you can use the artifacts option. This option is semantically equivalent to include.

Note that unlike artifacts, include does not work with files in .gitignore.

Also, included files has to be specified for different build targets separately: wheel and sdist.

@r4victor r4victor merged commit a2cc68a into master Apr 23, 2025
24 checks passed
@r4victor r4victor deleted the issue_2543_no_ui branch April 23, 2025 05:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Bug]: UI redirects to Swagger UI (api/docs)
1 participant