Skip to content

Failing to use hatch-vcs with tox #31

Answered by Midnighter
Midnighter asked this question in Q&A
Discussion options

You must be logged in to vote

The answer is to not define packages = ["src/dummy"] for [tool.hatch.build] which is like settings sources to ["src"] and also keeps only the final component ("dummy") for the distributed sources.

So a possible solution is to define this for the wheel target only and restrict what is included in the sdist as shown here.

Instead of including only the "src" directory one could also set tool.hatch.build.only-packages = true.

Replies: 3 comments 6 replies

Comment options

You must be logged in to vote
3 replies
@Midnighter
Comment options

@Midnighter
Comment options

@Midnighter
Comment options

Comment options

You must be logged in to vote
2 replies
@Midnighter
Comment options

@Midnighter
Comment options

Comment options

You must be logged in to vote
1 reply
@ofek
Comment options

Answer selected by Midnighter
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants