-
-
Notifications
You must be signed in to change notification settings - Fork 213
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
missing _version.py
after package installation
#1089
Comments
Please include the configuration of setuptools_scm in the question Version files are a opt in |
this is the configuration from [build-system]
requires = ["setuptools>=64", "setuptools-scm>=8", "build"]
build-backend = "setuptools.build_meta"
[project]
...
dynamic = ["version"]
[project.scripts]
lightning = "sdk.cli.entrypoint:main_cli"
[tool.setuptools_scm]
version_file = "sdk/_version.py"
[tool.setuptools]
include-package-data = true
[tool.setuptools.package-data]
"sdk" = ["_version.py"]
[tool.setuptools.packages.find]
exclude = ["tests*", "examples*"] |
There's need for extra details Based on the provided information things should work |
sure, but what kind of information would be helpful... |
whats helpful |
Hello, I may have a silly question but could find a solution. We wanted to use this package version but for some reason, the generated
_version.py
file is missing the insulation. I have checked and when I build the package the file is there but after installing when I wrap the import withtry/expect
and list files in the root module the file is missingso I have also added the file to
MANIFEST.in
and mention it in package data -
pyproject.toml
The text was updated successfully, but these errors were encountered: