relaxed-poetry
relaxed-poetry copied to clipboard
dev-dependencies, labels, url installation
Hi! First of all, Thank you for your fork! It's really faster than the original poetry and supports labels (ex. torch==1.10.0+cu113)!
I have 3 questions:
- As I see, you have dropped
dev-dependencies
section andgroups
. They are ignored withrp install
. Are there any other options to manage dev dependencies with rp? - Packages with a label in the version are installed correctly when I write it into pyproject.toml directly. But it fails when I try to use
rp install torch==1.10.0+cu113 --source pytorch
. It installs 1.10.0 from PyPI. Source:
[[tool.poetry.source]]
name = "pytorch"
url = "https://eternalphane.github.io/pytorch-pypi/"
secondary = true
- I have some problems with URL installation.
rp install https://download.openmmlab.com/mmcv/dist/cu113/torch1.10.0/mmcv_full-1.4.0-cp39-cp39-manylinux1_x86_64.whl
returns
TypeError
fetch() missing 1 required positional argument: 'authenticator'
at ~/.local/share/relaxed-poetry/venv/lib/python3.9/site-packages/poetry/puzzle/provider.py:384 in get_package_from_url
380│
381│ @classmethod
382│ def get_package_from_url(cls, url: str) -> Package:
383│ from poetry.app.relaxed_poetry import rp
→ 384│ file = rp.artifacts.fetch(url)
385│ package = cls.get_package_from_file(file)
386│
387│ # with temporary_directory() as temp_dir:
388│ # temp_dir = Path(temp_dir)
authenticator
is optional but still required
def fetch(self, link: Union[Link, str], authenticator: Optional[Authenticator], io: Printer = NullPrinter,
package: Optional[Package] = None) -> Path:
def _download_archive(self, authenticator: Optional[Authenticator], link: Link, printer: Printer) -> Path: