If setuptools_scm
cannot determine the version, one fix is to export the version manually by adding a line into build()
:
build() {
cd "$_pkgsrc"
export SETUPTOOLS_SCM_PRETEND_VERSION="${pkgver}"
python -m build --wheel --no-isolation
}
Git Clone URL: | https://aur.archlinux.org/python-telegram.git (read-only, click to copy) |
---|---|
Package Base: | python-telegram |
Description: | Python API for the tdlib library |
Upstream URL: | https://github.com/alexander-akhmetov/python-telegram |
Keywords: | Python Telegram |
Licenses: | MIT |
Conflicts: | python-telegram-bot |
Submitter: | j.r |
Maintainer: | None |
Last Packager: | xiota |
Votes: | 1 |
Popularity: | 0.000000 |
First Submitted: | 2020-06-23 20:05 (UTC) |
Last Updated: | 2024-08-07 18:47 (UTC) |
If setuptools_scm
cannot determine the version, one fix is to export the version manually by adding a line into build()
:
build() {
cd "$_pkgsrc"
export SETUPTOOLS_SCM_PRETEND_VERSION="${pkgver}"
python -m build --wheel --no-isolation
}
attempt to build a package on manjaro xahea 24.1.0 ends with the error LookupError: setuptools-scm was unable to detect version for /var/tmp/pamac-build-kostya/python-telegram/src/python-telegram-0.19.0 since the build switched to setuptools_scm, it would be good to transfer pkgbuild from tar.gz to git clone. to check the assumption, the .git directory was placed in the previously downloaded python-telegram-0.19.0.tar.gz after that the build completed without errors
Same thing with the latest version:
ERROR Missing dependencies:
setuptools_scm[toml]>=6.2
==> ERROR: A failure occurred in build().
Aborting...
ERROR Missing dependencies:
setuptools_scm[toml]>=6.2
==> ERROR: A failure occurred in build().
Aborting...
Pinned Comments