nox-poetry icon indicating copy to clipboard operation
nox-poetry copied to clipboard

feat: use pip sources config from poetry

Open raddessi opened this issue 1 year ago • 2 comments

This is a continuation of https://github.com/cjolowicz/nox-poetry/pull/679 which was closed because I didn't create a feature branch :/ my apologies.

Closes https://github.com/cjolowicz/nox-poetry/issues/398

What do you think about this version? I'm not sure where the best place to put the args at is.. either in the install command as args or in the constraints file.

raddessi avatar Sep 13 '22 21:09 raddessi

This current setup produces a constraints file ./.nox/test/tmp/requirements.txt for the example project with contents

--index-url=https://pypi.python.org/simple
--trusted-host=pypi.python.org
first==2.0.2
pycodestyle==2.9.1; python_version >= "3.6"
pyflakes==2.5.0; python_version >= "3.6"
pygments==2.13.0; python_version >= "3.6"

I'm not sure if this index will be read correctly when in the constrains file, I will have to test that.

raddessi avatar Sep 13 '22 22:09 raddessi