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.

Custom scripts shortcut with --system option

See original GitHub issue

The problem

I use quite often pipenv and Docker container. In docker container I want to avoid virtualenv so my install script is:

> pipenv install --system --deploy

I’m always frustrated when i need to retype commands on both Pipfile and ci-config.yml

[scripts]
test = pytest --option1=foo --option2=bar
test:
  before_script:
    - pipenv install --system --deploy
  script: 
    - pytest --option1=foo --option2=bar # cannot use pipenv here

Describe the solution you’d like

I would like to specify my custom command with its own option once and call it via Pipenv

test:
  before_script:
    - pipenv install --system --deploy
  script: 
    - pipenv run --system test # or pipenv --system run test

Issue Analytics

  • State:open
  • Created a year ago
  • Reactions:1
  • Comments:7

github_iconTop GitHub Comments

1reaction
webartolicommented, Jun 24, 2022

Just tried, bust the real focus of the issue was not dependencies install but script executions.

On single purpose containers I try to avoid venvs in order to limit encapsulation levels and make better accessibile container for sysadmins.

In this case pipenv’s script section works well on dev (venv) environment but cannot be used to in a context with no venv (like ci or containerized env).

0reactions
matteiuscommented, Aug 6, 2022

Edited: @webartoli Ah sorry your last comment must not have loaded when I responded last, so thanks for taking a look at it and that branch is not finalized yet, so I will consider this report when I revisit it.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Create a desktop shortcut with Windows Script Host
Describes how to create desktop shortcuts by using the Windows Scripting Host from within Visual FoxPro.
Read more >
Create Your Own Windows and macOS Keyboard Shortcuts
Finally, you can create your own custom keyboard shortcuts in a few applications, including Microsoft Word. Open Options from the main ...
Read more >
10 Cool AutoHotkey Scripts (And How to Make Your Own!)
AutoHotkey lets you make custom Windows shortcuts, macros, and more! Here are some useful AutoHotkey scripts to get you started.
Read more >
Pages '09: Custom scripts and keyboard shortcuts - Betalogue
In Pages '09, you have the following options. You can assign custom keyboard shortcuts to any menu command using Mac OS X's system-wide ......
Read more >
How do I assign a keyboard shortcut to an AppleScript I wrote?
Now go to System Preferences > Keyboard > Shortcuts. ... use a launcher that supports setting global hot keys and executing AppleScripts (Alfred, ......
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