prjemian/punx

BUG fails to get version

prjemian opened this issue · 0 comments

As seen, punx fails to get its version when run:

(base) $ conda env create --force -n punx --force -f ./environment.yml --solver=libmamba
(base) $ conda activate punx                                                                                                                                                                                                 
(punx) $ which punx                                                                                                                                                                                                                    
(punx) $ pip install -e .                                                                                                                                                                                                              
Obtaining file ...                                                                                                                                                                                          
  Installing build dependencies ... done                                                                                                                                                                                                                               
  Checking if build backend supports build_editable ... done                                                                                                                                                                                                           
  Getting requirements to build editable ... done                                                                                                                                                                                                                      
  Installing backend dependencies ... done                                                                                                                                                                                                                             
  Preparing editable metadata (pyproject.toml) ... done                                                                                                                                                                                                                
Building wheels for collected packages: punx
  Building editable for punx (pyproject.toml) ... done
  Created wheel for punx: filename=punx-0.3.2-0.editable-py3-none-any.whl size=7913 sha256=fad83f512fb8fa4a06f42256013a9232a82515f177bd9a2f7caefc9a3ea2be5c
  Stored in directory: /tmp/pip-ephem-wheel-cache-zphdsuvh/wheels/0a/54/e5/aff9bd4830f057140f5e6186c56864dd4cbd0c9d9c429a0fce
Successfully built punx
Installing collected packages: punx
Successfully installed punx-0.3.2
(punx) $ punx --version
Traceback (most recent call last):
  File "./punx/punx/__init__.py", line 71, in <module>
    from setuptools_scm import get_version
ModuleNotFoundError: No module named 'setuptools_scm'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File ".../envs/punx/bin/punx", line 5, in <module>
    from punx.main import main
  File "./punx/punx/__init__.py", line 78, in <module>
    __version__ = version("pkgdemo")
  File ".../envs/punx/lib/python3.10/importlib/metadata/__init__.py", line 996, in version
    return distribution(distribution_name).version
  File ".../envs/punx/lib/python3.10/importlib/metadata/__init__.py", line 969, in distribution
    return Distribution.from_name(distribution_name)
  File ".../envs/punx/lib/python3.10/importlib/metadata/__init__.py", line 548, in from_name
    raise PackageNotFoundError(name)
importlib.metadata.PackageNotFoundError: No package metadata was found for pkgdemo