FS#70779 - [python-pygls] is installed egg-info version 0.0.0

Attached to Project: Community Packages
Opened by Mauro (pinku) - Monday, 10 May 2021, 11:03 GMT
Last edited by Daniel M. Capella (polyzen) - Monday, 10 May 2021, 11:56 GMT
Task Type Bug Report
Category Packages
Status Closed
Assigned To Daniel M. Capella (polyzen)
Architecture All
Severity Low
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 0
Private No

Details

Description:

In the latest version of `python-pygls` (0.10.3-1), the package is installed in the usual path (/usr/lib/python3.9/site-packages) with version 0.0.0.
```
- /usr/lib/python3.9/site-packages/pygls
- /usr/lib/python3.9/site-packages/pygls-0.0.0-py3.9.egg-info
```

The following python script returns `0.0.0`
```python
from importlib.metadata import version
print(version('pygls'))
```

If the package is installed "by-hand" following the steps below:
* download the source files by either pythonhosted.org or github.com
* install as user or globally (sudo) with `pip install` or `python setup.py install`
the package reports the expected value for its version (0.10.3).

Even if following step by step the PKGBUILD found at the [github mirror](https://github.com/archlinux/svntogit-community/blob/packages/python-pygls/trunk/PKGBUILD)

```
build() {
cd $_name-$pkgver
python setup.py build
}

check() {
cd $_name-$pkgver
pytest
}

package() {
cd $_name-$pkgver
python setup.py install --root="$pkgdir" --optimize=1 --skip-build
}
```
then the installed package still reports the right version.

I've reported upstream (https://github.com/openlawlibrary/pygls/issues/189) but realized soon that following the "manual process" gave no issues.

This task depends upon

Closed by  Daniel M. Capella (polyzen)
Monday, 10 May 2021, 11:56 GMT
Reason for closing:  Fixed
Additional comments about closing:  https://github.com/archlinux/svntogit-co mmunity/commit/6d7c1a85c6d4032276e01b9b0 e960474cb97db68 (Didn't back out of the commit properly so the commit doesn't contain details.)
Comment by Eli Schwartz (eschwartz) - Monday, 10 May 2021, 11:21 GMT
  • Field changed: Summary (python-pygls is installed egg-info version 0.0.0 → [python-pygls] is installed egg-info version 0.0.0)
  • Field changed: Status (Unconfirmed → Assigned)
  • Task assigned to Daniel M. Capella (polyzen)
Missing critical makedepends on setuptools_scm infrastructure
Comment by Mauro (pinku) - Monday, 10 May 2021, 11:27 GMT
After further commenting with upstream, installing python-pygls AFTER python-toml, seems to solve the issue.
(pacman cache need to be cleared).

Maybe it's a dependency issue.

Loading...