mirror of
https://github.com/kennethreitz/bake.git
synced 2026-06-05 23:00:17 +00:00
fix
This commit is contained in:
+8
-1
@@ -2,7 +2,7 @@ import sys
|
||||
import click
|
||||
import json
|
||||
|
||||
from .bakefile import Bakefile, NoBakefileFound
|
||||
from .bakefile import Bakefile, TaskFilter, NoBakefileFound
|
||||
from .clint import eng_join
|
||||
|
||||
import pygments
|
||||
@@ -377,6 +377,13 @@ def entrypoint(
|
||||
|
||||
if not no_deps:
|
||||
tasks = task.depends_on(recursive=True) + [task]
|
||||
|
||||
# Re-order tasks, because.
|
||||
for i, task in enumerate(tasks[:]):
|
||||
if isinstance(task, TaskFilter):
|
||||
t = tasks.pop(i)
|
||||
tasks.insert(i - 1, t)
|
||||
|
||||
else:
|
||||
tasks = [task]
|
||||
|
||||
|
||||
@@ -18,7 +18,7 @@ URL = "https://github.com/kennethreitz/bake"
|
||||
EMAIL = "me@kennethreitz.org"
|
||||
AUTHOR = "Kenneth Reitz"
|
||||
REQUIRES_PYTHON = ">=3.6.0"
|
||||
VERSION = "0.4.0"
|
||||
VERSION = "0.4.1"
|
||||
|
||||
# What packages are required for this module to be executed?
|
||||
REQUIRED = ["click", "delegator.py", "pygments", "networkx"]
|
||||
|
||||
Reference in New Issue
Block a user