-
-
Notifications
You must be signed in to change notification settings - Fork 422
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
build command doesn't detect version from latest git tag from inside a sub-folder #2108
Comments
Can you change to |
Hello, @TommyDuc @frostming I was also interested in this issue and tried changing the backend.
However, an error occurred and the build failed.
There seems to be a problem in pyproject.toml. The following changes made it work. [tool.pdm]
#version = { use_scm = true }
version = { source = "scm"} |
Nice, problem seems solved? |
@quag-cactus @frostming Changing the |
Steps to reproduce
In an empty directory:
Content of
python/pyproject.toml
:Actual behavior
python_test_project-0.0.0-py3-none-any.whl python-test-project-0.0.0.tar.gz
Expected behavior
python_test_project-1.0.0-py3-none-any.whl python-test-project-1.0.0.tar.gz
# Paste the output of `pdm info && pdm info --env` below:
PDM version:
2.8.0a2
Python Interpreter:
/home/tommy/projects/misc/test/python/.venv/bin/python (3.11)
Project Root:
/home/tommy/projects/misc/test/python
Local Packages:
{
"implementation_name": "cpython",
"implementation_version": "3.11.1",
"os_name": "posix",
"platform_machine": "x86_64",
"platform_release": "5.15.0-76-generic",
"platform_system": "Linux",
"platform_version": "#83-Ubuntu SMP Thu Jun 15 19:16:32 UTC 2023",
"python_full_version": "3.11.1",
"platform_python_implementation": "CPython",
"python_version": "3.11",
"sys_platform": "linux"
}
The text was updated successfully, but these errors were encountered: