这是indexloc提供的服务,不要输入任何密码
Skip to content

Build hook creates _version in the repo not in the src folder #74

@seb5g

Description

@seb5g

I'm using hatch-vcs and want it to produce the _version.py file at the root of the package. However it creates it at the same level as the pyproject.toml file and not in my src folder

So i tried to define the file path as:

[tool.hatch.build.hooks.vcs]
version-file = "./src/my_package/_version.py"

but then when pip installing it, the _version file is nowhere to be found. What am I missing?
Cheers

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions