Skip to content

Commit

Permalink
Merge pull request #486 from davvid/garden
Browse files Browse the repository at this point in the history
garden: add a garden file for jsonpickle.github.io update tasks
  • Loading branch information
Theelx committed Mar 19, 2024
2 parents ba46008 + 6262101 commit 91b0159
Show file tree
Hide file tree
Showing 3 changed files with 34 additions and 0 deletions.
1 change: 1 addition & 0 deletions .gitignore
Expand Up @@ -7,6 +7,7 @@
/env*
/htmlcov
/tags
/pages
/.pytest_cache
/.tox
/.idea
Expand Down
2 changes: 2 additions & 0 deletions CHANGES.rst
Expand Up @@ -3,6 +3,8 @@ v3.0.4
* Fixed an issue with django.SafeString and other classes inheriting from
str having read-only attribute errors (#478) (+481)
* The test suite was made compatible with `pytest-ruff>=0.3.0`. (+482)
* A `garden.yaml` file was added for use with the
`garden <https://crates.io/crates/garden-tools>_` command runner. (+486)

v3.0.3
======
Expand Down
31 changes: 31 additions & 0 deletions garden.yaml
@@ -0,0 +1,31 @@
# Use "cargo install garden-tools" to install garden https://gitlab.com/garden-rs/garden
#
# # Usage
# garden doc # Build the jsonpickle.github.io documentation
trees:
jsonpickle:
description: Two-way conversion of complex Python objects into JSON.
path: ${GARDEN_CONFIG_DIR}
url: git@github.com:jsonpickle/jsonpickle.git
remotes:
Theelx: git@github.com:Theelx/jsonpickle.git
davvid: git@github.com:davvid/jsonpickle.git
commands:
bench: |
python3 -m pytest \
--benchmark-verbose \
--benchmark-only \
--benchmark-histogram=./images/benchmark-${timestamp} \
./jsonpickle_benchmarks.py
doc: |
test -d pages || garden grow pages
python3 -m sphinx docs pages
fmt: black --skip-string-normalization --target-version py310 jsonpickle tests
test: python3 -m pytest ${GARDEN_CMD_VERBOSE} jsonpickle tests "$@"
tox: tox run-parallel --parallel-live "$@" ${GARDEN_CMD_VERBOSE}
pages:
description: The jsonpickle.github.io website.
url: git@github.com:jsonpickle/jsonpickle.github.io.git

variables:
timestamp: $ date +%Y-%m-%dT%T%z

0 comments on commit 91b0159

Please sign in to comment.