Skip to content

Commit 95ee064

Browse files
committed
use action='store_true' to avoid need of int parameter
1 parent 6bca027 commit 95ee064

File tree

3 files changed

+14
-8
lines changed

3 files changed

+14
-8
lines changed

.github/workflows/fpm-deployment.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ jobs:
3636
fpm-version: 'v0.10.0'
3737

3838
- run: |
39-
python config/fypp_deployment.py --deploy_stdlib_fpm 1
39+
python config/fypp_deployment.py --deploy_stdlib_fpm
4040
fpm test --profile release
4141
4242
# Update and deploy the f90 files generated by github-ci to the `stdlib-fpm` branch.

README.md

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -193,18 +193,24 @@ fpm build --profile release
193193
or the short-cut
194194

195195
```sh
196-
python config/fypp_deployment.py --build 1
196+
python config/fypp_deployment.py --build
197197
```
198198

199199
To modify the `maxrank` macro for instance:
200200
```sh
201-
python config/fypp_deployment.py --maxrank 7 --build 1
201+
python config/fypp_deployment.py --maxrank 7 --build
202202
```
203203

204204
To see all the options:
205205
```sh
206206
python config/fypp_deployment.py --help
207207
```
208+
209+
Dependencies can be intalled from the `requirement.txt`
210+
```sh
211+
pip install --upgrade -r config/requirements.txt
212+
```
213+
208214
**Note**: If you use a compiler different than GNU compilers, the script will try to catch it from the environment variables `FPM_FC`, `FPM_CC`, `FPM_CXX`.
209215

210216
**Option 2**: From the `stdlib-fpm` branch which has already been preprocessed with default macros:

config/fypp_deployment.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -138,12 +138,12 @@ def fpm_build(args,unknown):
138138

139139
parser.add_argument("--njob", type=int, default=4, help="Number of parallel jobs for preprocessing")
140140
parser.add_argument("--maxrank",type=int, default=7, help="Set the maximum allowed rank for arrays")
141-
parser.add_argument("--with_qp",type=bool, default=False, help="Include WITH_QP in the command")
142-
parser.add_argument("--with_xdp",type=bool, default=False, help="Include WITH_XDP in the command")
143-
parser.add_argument("--lnumbering",type=bool, default=False, help="Add line numbering in preprocessed files")
144-
parser.add_argument("--deploy_stdlib_fpm",type=bool, default=False, help="create the stdlib-fpm folder")
141+
parser.add_argument("--with_qp",action='store_true', help="Include WITH_QP in the command")
142+
parser.add_argument("--with_xdp",action='store_true', help="Include WITH_XDP in the command")
143+
parser.add_argument("--lnumbering",action='store_true', help="Add line numbering in preprocessed files")
144+
parser.add_argument("--deploy_stdlib_fpm",action='store_true', help="create the stdlib-fpm folder")
145145
# external libraries arguments
146-
parser.add_argument("--build",type=bool, default=False, help="Build the project")
146+
parser.add_argument("--build", action='store_true', help="Build the project")
147147

148148
args, unknown = parser.parse_known_args()
149149
#==========================================

0 commit comments

Comments
 (0)