forked from wolfswolke/aniworld_scraper
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtasks.py
37 lines (28 loc) · 1.17 KB
/
tasks.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
"""
"""
# ------------------------------------------------------- #
# imports
# ------------------------------------------------------- #
from invoke import task
# ------------------------------------------------------- #
# definitions
# ------------------------------------------------------- #
VIRTUALENV_NAME = "py310_AniWorldScraper"
# ------------------------------------------------------- #
# global variables
# ------------------------------------------------------- #
# ------------------------------------------------------- #
# functions
# ------------------------------------------------------- #
def _update_requirements_txt(c):
c.run("pip freeze > requirements.txt")
# ------------------------------------------------------- #
# classes
# ------------------------------------------------------- #
# ------------------------------------------------------- #
# tasks
# ------------------------------------------------------- #
@task
def update_requirements(c):
with c.prefix("workon {}".format(VIRTUALENV_NAME)):
_update_requirements_txt(c)