Skip to content

Add --use-vcs and --no-use-vcs flags for build commands#625

Merged
takluyver merged 2 commits into
mainfrom
use-vcs-flag
Feb 21, 2023
Merged

Add --use-vcs and --no-use-vcs flags for build commands#625
takluyver merged 2 commits into
mainfrom
use-vcs-flag

Conversation

@takluyver

Copy link
Copy Markdown
Member

From the discussion on #522, this adds an option to not use the VCS to get the list of files to include in the sdist. So flit build --no-use-vcs is equivalent to python -m build with flit_core as a backend. The idea is that in a future version (4.0?), this will become the default, and you will need to use --use-vcs to explicitly choose the sdist-files-from-vcs behaviour.

I've also tried to improve the documentation about what gets included in the sdist by default.

@pfmoore

pfmoore commented Jan 27, 2023

Copy link
Copy Markdown
Member

+1 from me. The docs changes look good, and the plan for switching the default seems reasonable. I can't really comment on the code so I'll leave that for others.

One thing that I'd like which is missing, is a clear description of what files will be put in the wheel. Is it just "the stuff in the sdist that's from the package directory"? Having it explicitly stated would avoid any guessing.

@takluyver

Copy link
Copy Markdown
Member Author

@Carreau @pradyunsg I'm planning to merge this in a couple more days, so if you're not happy with this direction, now's the time to say so. 🙂

@Carreau Carreau left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

+1 from me.

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.

3 participants