question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

better support for using poetry-managed scripts in crontabs

See original GitHub issue

As requested on Discord…

@sdispater 's current answer was: Well, since Poetry needs to be run inside the directory of the project, you would have to create a shell script that cd into the project’s directory then execute poetry install and finally poetry run my-script.

I hope that install step would only need to be done once? I’m wondering if using cd /abs/to/folder-containing-pyprojects.toml/ && /abs/to/poetry run my_command and --its options would currently work?

Anyway, this feature request is to support this with something nice, the idea I suggested was:

/abs/to/poetry -p /abs/to/folder-containing-pyprojects.toml/ run my_command and --its options

Maybe -p could even be --cd. I’m happy to work on a PR for this as soon as it’s confirmed that it would likely be merged…

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Reactions:3
  • Comments:5 (1 by maintainers)

github_iconTop GitHub Comments

2reactions
cjw296commented, Nov 15, 2019

My workaround is to directly use the entrypoints installed in the poetry-managed virtualenv, but this is definitely not stale.

0reactions
finswimmercommented, Sep 27, 2020

Hello,

similar discussion is going on in https://github.com/python-poetry/poetry/issues/2179. So I will close this one here.

fin swimmer

Read more comments on GitHub >

github_iconTop Results From Across the Web

Automate your Linux system tasks with cron | Enable Sysadmin
The user command to work with the cron service is crontab (cron table). The crontab file is a simple text file that instructs...
Read more >
Run Jobs or Scripts Using Crontab on Boot - Linode
This guide explains how to use the cron utility and the crontab file to run jobs or scripts when your Linode boots, as...
Read more >
Cron Jobs: A Comprehensive Guide - SitePoint
Learn what cron is and how to use it. This guide covers the basics of cron jobs, as well as some more advanced...
Read more >
How To Use Cron to Automate Tasks on Ubuntu 18.04
Cron jobs are recorded and managed in a special file known as a crontab . Each user profile on the system can have...
Read more >
How to Create Thumbnails/posters for YouTube using Photoshop
Crontabula: Parse Crontab Expressions with Python ... Show more. likes replies 0 GEEKGEEK ... A Cookiecutter Template for Poetry Managed Python Projects.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found