grimen / python-rootpath

Python project/package root path detection.
https://pypi.org/project/rootpath
MIT License
23 stars 14 forks source link

Poetry install error #12

Open hute37 opened 2 years ago

hute37 commented 2 years ago

Problem appears after upgrading from Python 3.9 to 3.10 (probably related to setuptools upgrade) I'm trying to fix it in my fork. If resolved, I'll propose a pull-request


With poetry, installing package for forked repository:

[tool.poetry.dependencies.rootpath]                                                             
git = "https://github.com/hute37/python-rootpath"                                               
branch = "stable"                                                                               

raises this error:

$ poetry install

Installing dependencies from lock file
Package operations: 1 install, 0 updates, 0 removals
  • Installing rootpath (0.1.1 96ed35b): Failed
...
    Getting requirements to build wheel: started
    Getting requirements to build wheel: finished with status 'error'
    error: subprocess-exited-with-error  
    × Getting requirements to build wheel did not run successfully.

The current environment is (Linux: Ubuntu 20.04):

$ poetry env info

Virtualenv
Python:         3.10.5
Implementation: CPython
Path:           /home/user/.cache/pypoetry/virtualenvs/dve-sample-py-1sUhEi8s-py3.10
Executable:     /home/user/.cache/pypoetry/virtualenvs/dve-sample-py-1sUhEi8s-py3.10/bin/python
Valid:          True

System
Platform:   linux
OS:         posix
Python:     3.10.5
Path:       /home/user/.pyenv/versions/3.10.5
Executable: /home/user/.pyenv/versions/3.10.5/bin/python3.10
hute37 commented 2 years ago

Submitted a pull-request: