package lacks `__version__`, results installed as version 0.0.0
See original GitHub issueHi,
After commit b7601dd0d208602d07a80d9c6ab154f715d8f700, the metadata in setup.cfg
lacks the version number resulting in pygls
being installed (in Archlinux) as version 0.0.0
when checked with:
from importlib.metadata import version
print(version('pygls'))
or the corresponding method with pkg_resources
.
This causes conflicts with other packages requiring some pygls
versions (e.g. anakin-language-server).
Issue Analytics
- State:
- Created 2 years ago
- Comments:13 (6 by maintainers)
Top Results From Across the Web
path.py installed as version 0.0.0 · Issue #809 - GitHub
After some searching, I came across a similar problem here. The problem is that when setuptools_scm is used, github package does not contain...
Read more >Package lacks a "Version" or "Package-Version" error, even if ...
I want to use my elisp through cask . But it failed with error: Dependency pinyin-mode failed to install: Package lacks a "Version"...
Read more >How can I get the version defined in setup.py (setuptools) in ...
Interrogate version string of already-installed distribution. To retrieve the version from inside your package at runtime (what your question appears to ...
Read more >ODAC 19c Release 1 Installation Instructions, Setup, and ...
ODAC 19c Release 1 (19.3.0.0.0) Installation Instructions, Setup, and Notes. December 2019. Download includes the following products:.
Read more >Fix list for IBM MQ Version 9.0.0 LTS
IBM MQ provides periodic fixes for release 9.0. The following is a complete listing of available and scheduled fixes for Version 9.0 with...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Ohh, this is weird.
I reproduced the steps used on the
PKGBUILD
to build the package in Archlinux and now I magically have the right version.So to conclude: using any installation method (
pip
orsetup.py
,local
orglobal
, with or without your suggestions) it works. It has to be something to do with the packaging process. I’ll open an issue thereSorry, by “the setuptools_scm stuff” I was referring to “the requirements list” in build-system.requires.