You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

14 lines
377 B
Python

2 years ago
import os
import sys
from invoke import task
@task
def sync_env(c):
"""Update the local virtualenv with pip-sync"""
if not os.environ.get('VIRTUAL_ENV'):
print("You are operating outside of a virtualenv. Skipping sync...")
sys.exit(1)
print("Updating your virtualenv dependencies!")
c.run("pip-sync ./requirements.txt ./dev_requirements.txt")