|
8 | 8 | [](https://pepy.tech/project/blendmodes) |
9 | 9 | [](https://pypi.org/project/blendmodes) |
10 | 10 |
|
11 | | -<!-- omit in TOC --> |
| 11 | +<!-- omit in toc --> |
12 | 12 | # BlendModes |
13 | 13 |
|
14 | 14 | <img src="readme-assets/icons/name.png" alt="Project Icon" width="750"> |
@@ -53,6 +53,8 @@ editors |
53 | 53 | - [How to run](#how-to-run) |
54 | 54 | - [Windows](#windows) |
55 | 55 | - [Linux/ MacOS](#linux-macos) |
| 56 | +- [Building](#building) |
| 57 | +- [Testing](#testing) |
56 | 58 | - [Download Project](#download-project) |
57 | 59 | - [Clone](#clone) |
58 | 60 | - [Using The Command Line](#using-the-command-line) |
@@ -95,8 +97,8 @@ Head to https://pypi.org/project/blendmodes/ for more info |
95 | 97 |
|
96 | 98 | ### Built for |
97 | 99 |
|
98 | | -This program has been written for Python versions 3.7 - 3.10 and has been tested with both 3.7 and |
99 | | -3.10 |
| 100 | +This program has been written for Python versions 3.8 - 3.11 and has been tested with both 3.8 and |
| 101 | +3.11 |
100 | 102 |
|
101 | 103 | ## Install Python on Windows |
102 | 104 |
|
@@ -156,6 +158,36 @@ version. |
156 | 158 | - File |
157 | 159 | `python3.x [file]` or `./[file]` |
158 | 160 |
|
| 161 | +## Building |
| 162 | + |
| 163 | +This project uses https://github.com/FHPythonUtils/FHMake to automate most of the building. This |
| 164 | +command generates the documentation, updates the requirements.txt and builds the library artefacts |
| 165 | + |
| 166 | +Note the functionality provided by fhmake can be approximated by the following |
| 167 | + |
| 168 | +```sh |
| 169 | +handsdown --cleanup -o documentation/reference |
| 170 | +poetry export -f requirements.txt --output requirements.txt |
| 171 | +poetry export -f requirements.txt --with dev --output requirements_optional.txt |
| 172 | +poetry build |
| 173 | +``` |
| 174 | + |
| 175 | +`fhmake audit` can be run to perform additional checks |
| 176 | + |
| 177 | +## Testing |
| 178 | + |
| 179 | +For testing with the version of python used by poetry use |
| 180 | + |
| 181 | +```sh |
| 182 | +poetry run pytest |
| 183 | +``` |
| 184 | + |
| 185 | +Alternatively use `tox` to run tests over python 3.8 - 3.11 |
| 186 | + |
| 187 | +```sh |
| 188 | +tox |
| 189 | +``` |
| 190 | + |
159 | 191 | ## Download Project |
160 | 192 |
|
161 | 193 | ### Clone |
|
0 commit comments