PyMine-Server icon indicating copy to clipboard operation
PyMine-Server copied to clipboard

Add support for poetry in the startserver scripts

Open Iapetus-11 opened this issue 3 years ago • 5 comments

  • We use poetry to manage dependencies cleanly, and the startserver scripts should have support for it!

Iapetus-11 avatar Apr 08 '21 15:04 Iapetus-11

how is it not supported?

456dev avatar Apr 08 '21 15:04 456dev

Like when attempting to run the server, add options like poetry run py pymine and poetry run python3 pymine

Iapetus-11 avatar Apr 08 '21 16:04 Iapetus-11

it assumes that whatever virtual enviroment thing is already activated (by default). normally, with venv or whatevery you would source the activate file, but poetry by the loogs of it uses poetry shell?

456dev avatar Apr 11 '21 15:04 456dev

i think this is out of scope of a shell script, but maybe a seperate tool could be created to assist with server creation, and lifetime (start,stop,restart), and possibly a "form" style thing for configuration.

456dev avatar Jun 28 '21 11:06 456dev

If you are looking for a tool that will allow you to create predefined commands for poetry. Have a look at Taskipy

It allows you to specify these commands under aliases and then execute them.

I may have misunderstood your question tho.

GDWR avatar Feb 17 '22 19:02 GDWR