Metadata-Version: 2.1
Name: buildfile
Version: 1.1.0
Summary: Buildfile runs annoying tasks automatically.
Author-email: Stuntlover <stuntlover@aluvia.de>
Project-URL: Homepage, https://github.com/Stuntlover-TM/buildfile
Project-URL: Bug Tracker, https://github.com/Stuntlover-TM/buildfile/issues
Classifier: Programming Language :: Python :: 3
Classifier: License :: OSI Approved :: MIT License
Classifier: Operating System :: OS Independent
Requires-Python: >=3.9
Description-Content-Type: text/markdown
License-File: LICENSE

# buildfile
Buildfile runs annoying tasks automatically. [PyPI Page here](https://pypi.org/project/buildfile/)

# Docs

## Installation

Run `python -m pip install buildfile` in your terminal.

## Usage

You can use buildfile as a command, or as a module.

Example for using as a command:
```
> python -m buildfile build
Hello
```
You can specify buildfile filename with the following: `python -m buildfile tablename filename`

This will run the `build` table of the build file, note that the build file must be in the directory you're running the script from, example build file:

```
(build)
echo Hello
```

---

`python -m buildfile build temp` is the equivalent of this:

```py
import buildfile

buildfile.run("build", filename="temp")
```

---

You can declare variables in the buildfile using:
```
(table)
variable = some text

echo {_variable_}
```
`some text`

You can also declare variables like this:
```py
import buildfile

buildfile.add_var("variable", "some text")
buildfile.run("table")
```

And then this will also output `some text`:
```
(table)
echo {_variable_}
```

---

# Changelog
## 1.1.0
- Add variables in buildfiles and `add_var()` function
