| 1 |
# Use "cargo install garden-tools" to install garden https://gitlab.com/garden-rs/garden |
| 2 |
# |
| 3 |
# # Usage |
| 4 |
# garden doc # Build the jsonpickle.github.io documentation |
| 5 |
# garden fmt # Apply code formatting |
| 6 |
# garden test # Run tests |
| 7 |
# garden tox # Run tests using "tox" |
| 8 |
# garden bench # Run benchmarks |
| 9 |
trees: |
| 10 |
jsonpickle: |
| 11 |
description: Two-way conversion of complex Python objects into JSON. |
| 12 |
path: "${GARDEN_CONFIG_DIR}" |
| 13 |
url: "[email protected]:jsonpickle/jsonpickle.git" |
| 14 |
commands: |
| 15 |
bench: | |
| 16 |
make benchmark |
| 17 |
check>: |
| 18 |
- test |
| 19 |
- check/fmt |
| 20 |
- check/pyupgrade |
| 21 |
- doc |
| 22 |
check/fmt: "garden fmt ${GARDEN_CMD_VERBOSE} -- --check" |
| 23 |
check/pyupgrade: | |
| 24 |
${activate} |
| 25 |
if type pyupgrade >/dev/null 2>&1 |
| 26 |
then |
| 27 |
pyupgrade --py38-plus jsonpickle/*.py jsonpickle/*/*.py tests/*.py fuzzing/fuzz-targets/*.py |
| 28 |
fi |
| 29 |
clean: | |
| 30 |
rm -fr build dist jsonpickle.egg-info |
| 31 |
find . -type d -name __pycache__ -print0 | xargs -0 rm -fr |
| 32 |
doc: | |
| 33 |
test -d pages || garden grow pages |
| 34 |
${activate} python3 -m sphinx docs pages |
| 35 |
fmt: | |
| 36 |
${activate} |
| 37 |
black --skip-string-normalization --target-version py38 "$@" jsonpickle tests fuzzing/fuzz-targets |
| 38 |
isort --profile=black "$@" jsonpickle tests fuzzing/fuzz-targets |
| 39 |
setup: | |
| 40 |
test -d env3 || python3 -m venv env3 |
| 41 |
garden setup/dev ${GARDEN_CMD_VERBOSE} |
| 42 |
setup/dev: | |
| 43 |
${activate} pip install --editable '.[dev,docs,testing]' |
| 44 |
setup/packaging: | |
| 45 |
${activate} pip install --editable '.[packaging]' |
| 46 |
test: | |
| 47 |
${activate} python3 -m pytest ${GARDEN_CMD_VERBOSE} "$@" jsonpickle tests |
| 48 |
tox: | |
| 49 |
tox run-parallel --parallel-live "$@" ${GARDEN_CMD_VERBOSE} |
| 50 |
wheel: | |
| 51 |
${activate} |
| 52 |
python3 -m build -n . |
| 53 |
publish: | |
| 54 |
${activate} |
| 55 |
twine upload dist/*.whl dist/*.tar.gz |
| 56 |
remotes: |
| 57 |
aldanor: "[email protected]:aldanor/jsonpickle.git" |
| 58 |
davvid: "[email protected]:davvid/jsonpickle.git" |
| 59 |
DaveLak: "[email protected]:DaveLak/jsonpickle.git" |
| 60 |
dwagon: "[email protected]:dwagon/jsonpickle.git" |
| 61 |
eoghanmurray: "[email protected]:eoghanmurray/jsonpickle.git" |
| 62 |
GREsau: "[email protected]:GREsau/jsonpickle.git" |
| 63 |
hartwork: "[email protected]:hartwork/jsonpickle.git" |
| 64 |
hroncok: "[email protected]:hroncok/jsonpickle.git" |
| 65 |
jaraco: "[email protected]:jaraco/jsonpickle.git" |
| 66 |
marcintustin: "[email protected]:marcintustin/jsonpickle.git" |
| 67 |
paulocheque: "[email protected]:paulocheque/jsonpickle.git" |
| 68 |
Squadrick: "[email protected]:Squadrick/jsonpickle.git" |
| 69 |
synapticarbors: "[email protected]:synapticarbors/jsonpickle.git" |
| 70 |
Theelx: "[email protected]:Theelx/jsonpickle.git" |
| 71 |
pages: |
| 72 |
description: The jsonpickle.github.io website. |
| 73 |
url: "[email protected]:jsonpickle/jsonpickle.github.io.git" |
| 74 |
|
| 75 |
variables: |
| 76 |
activate: | |
| 77 |
test -n "$VIRTUAL_ENV" || |
| 78 |
test ! -d env3 || |
| 79 |
source env3/bin/activate |
| 80 |
timestamp: $ date +%Y-%m-%dT%T%z |