Skip to content

Commit

Permalink
garden: add virtualenvs to the garden commands
Browse files Browse the repository at this point in the history
Install all of our dependencies using the files specified in setup.cfg.
Drop the `requirements.txt` file since it is no longer needed.
  • Loading branch information
davvid committed Apr 11, 2024
1 parent ea2eb5c commit 60b6dc7
Show file tree
Hide file tree
Showing 3 changed files with 21 additions and 22 deletions.
14 changes: 12 additions & 2 deletions garden.yaml
Expand Up @@ -31,15 +31,25 @@ trees:
find . -type d -name __pycache__ -print0 | xargs -0 rm -fr
doc: |
test -d pages || garden grow pages
python3 -m sphinx docs pages
${activate} python3 -m sphinx docs pages
fmt: |
${activate}
black --skip-string-normalization --target-version py37 "$@" jsonpickle tests
isort --profile=black "$@" jsonpickle tests
test: python3 -m pytest ${GARDEN_CMD_VERBOSE} "$@" jsonpickle tests
setup: |
python3 -m venv env3
garden ${GARDEN_CMD_VERBOSE} setup/dev
setup/dev: ${activate} pip install --editable '.[dev,docs]'
setup/packaging: ${activate} pip install --editable '.[packaging]'
test: ${activate} 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:
activate: |
test -n "$VIRTUAL_ENV" ||
test ! -d env3 ||
source env3/bin/activate
timestamp: $ date +%Y-%m-%dT%T%z
20 changes: 0 additions & 20 deletions requirements-dev.txt

This file was deleted.

9 changes: 9 additions & 0 deletions setup.cfg
Expand Up @@ -51,13 +51,18 @@ testing =
pytest-ruff >= 0.2.1

# local
bson
ecdsa
feedparser
gmpy2; python_version<"3.12"
numpy
pandas
pymongo
pytest-benchmark
pytest-benchmark[histogram]
scikit-learn
scipy>=1.9.3; python_version>"3.10"
scipy; python_version<="3.10"
simplejson
sqlalchemy
ujson
Expand All @@ -70,4 +75,8 @@ docs =

# local

packaging =
build
twine

[options.entry_points]

0 comments on commit 60b6dc7

Please sign in to comment.