Skip to content

Commit aefa529

Browse files
Merge pull request #3 from Adwaith-Rajesh/errors
target now run on empty file depends
2 parents b4561ef + 1816f61 commit aefa529

File tree

4 files changed

+18
-17
lines changed

4 files changed

+18
-17
lines changed

README.md

+12-12
Original file line numberDiff line numberDiff line change
@@ -82,17 +82,17 @@ this is from bar target
8282

8383
More docs can be found here: [Docs](/docs/buildme.md)
8484

85-
- [Buildme](/docs/buildme.md#buildme-scripts)
86-
- [Target](/docs/buildme.md#target)
87-
- [Creating a target](/docs/buildme.md#creating-a-target)
88-
- [Target depending on another target](/docs/buildme.md#target-depending-on-another-target)
89-
- [Target depending on files](/docs/buildme.md#target-depending-on-files)
90-
- [Targets that creates files](/docs/buildme.md#targets-that-creates-files)
91-
- [CommandRunner](/docs/buildme.md#commandrunner)
92-
- [Receiving Command line args](/docs/buildme.md#receiving-command-line-args)
93-
- [Getting info about the target itself](/docs/buildme.md#getting-info-about-the-target-itself)
94-
- [Dynamic 'creates'](/docs/buildme.md#dynamic-creates)
95-
- [Combining Ideas](/docs/buildme.md#the-above-two-ides-can-combined-to-do-this)
96-
- [Helper functions](/docs/buildme.md#helper-functions)
85+
- [Buildme](https://github.com/Adwaith-Rajesh/buildme/blob/master/docs/buildme.md#buildme-scripts)
86+
- [Target](https://github.com/Adwaith-Rajesh/buildme/blob/master/docs/buildme.md#target)
87+
- [Creating a target](https://github.com/Adwaith-Rajesh/buildme/blob/master/docs/buildme.md#creating-a-target)
88+
- [Target depending on another target](https://github.com/Adwaith-Rajesh/buildme/blob/master/docs/buildme.md#target-depending-on-another-target)
89+
- [Target depending on files](https://github.com/Adwaith-Rajesh/buildme/blob/master/docs/buildme.md#target-depending-on-files)
90+
- [Targets that creates files](https://github.com/Adwaith-Rajesh/buildme/blob/master/docs/buildme.md#targets-that-creates-files)
91+
- [CommandRunner](https://github.com/Adwaith-Rajesh/buildme/blob/master/docs/buildme.md#commandrunner)
92+
- [Receiving Command line args](https://github.com/Adwaith-Rajesh/buildme/blob/master/docs/buildme.md#receiving-command-line-args)
93+
- [Getting info about the target itself](https://github.com/Adwaith-Rajesh/buildme/blob/master/docs/buildme.md#getting-info-about-the-target-itself)
94+
- [Dynamic 'creates'](https://github.com/Adwaith-Rajesh/buildme/blob/master/docs/buildme.md#dynamic-creates)
95+
- [Combining Ideas](https://github.com/Adwaith-Rajesh/buildme/blob/master/docs/buildme.md#the-above-two-ides-can-combined-to-do-this)
96+
- [Helper functions](https://github.com/Adwaith-Rajesh/buildme/blob/master/docs/buildme.md#helper-functions)
9797

9898
# Bye....

buildme/core.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -134,7 +134,7 @@ def _decide_target_exec(name: str) -> bool:
134134
if not t_data:
135135
return False
136136

137-
if not t_data.creates.files:
137+
if not t_data.creates.files or not t_data.depends.files:
138138
return True
139139

140140
n_creates = [Path(i) for i in t_data.creates.files]

docs/buildme.md

+3-2
Original file line numberDiff line numberDiff line change
@@ -22,8 +22,9 @@ A target is a python function that can be called from the CLI.
2222
A target will run when invoked if:
2323

2424
- The target does not create any file (`@target(creates=[])`).
25-
- One of the files mentioned in `creates` does not exist
26-
- max mtimes (creates) < min mtimes (depends) (basically, if one of the files in `depends` updates)
25+
- The target does not depend on any files (`@target(depends=[])`).
26+
- One of the files mentioned in `creates` does not exist.
27+
- max mtimes (creates) < min mtimes (depends) (basically, if one of the files in `depends` updates).
2728
- kind of how makefile work.
2829

2930
---

setup.cfg

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
[metadata]
22
name = buildme
3-
version = 0.3.0
3+
version = 0.3.1
44
author = Adwaith Rajesh
55
author_email = adwaithrajesh3180@gmail.com
6-
description = A simple command runner disguised as a build system.
6+
description = Yep, Its another build system
77
long_description = file: README.md
88
long_description_content_type = text/markdown
99
url = https://github.com/Adwaith-Rajesh/buildme

0 commit comments

Comments
 (0)