Skip to content
This repository has been archived by the owner on Oct 29, 2024. It is now read-only.

Commit

Permalink
chore: inprove taskfile
Browse files Browse the repository at this point in the history
  • Loading branch information
trim21 committed May 28, 2024
1 parent 902da4f commit 47db166
Showing 1 changed file with 3 additions and 24 deletions.
27 changes: 3 additions & 24 deletions taskfile.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,37 +13,17 @@ tasks:
cmd: clang-format -i src/bencode_c/*.c src/bencode_c/*.h

build:
deps:
- build:windows
- build:linux

build:windows:
silent: true
internal: true
platforms:
- windows
sources:
- setup.py
- ./src/bencode_c/*.c
- ./src/bencode_c/*.h
generates:
- ./src/**/*.pyd
- ./src/**/*.{pyd,so}
cmds:
- cmd: python setup.py build_ext --inplace

build:linux:
silent: true
internal: true
platforms:
- linux
sources:
- setup.py
- ./src/bencode_c/*.c
- ./src/bencode_c/*.h
generates:
- ./src/**/*.so
cmds:
- cmd: python setup.py build_ext --inplace

dev:
sources:
Expand All @@ -54,10 +34,9 @@ tasks:
- tests/*.py
- "*.py"
generates:
- src/**/*.so
- src/**/*.pyd
- src/**/*.{so,pyd}
deps:
- build:dev
- build
env:
# CFLAGS: "-O0 -g"
PYTHONPATH: src
Expand Down

0 comments on commit 47db166

Please sign in to comment.