File tree Expand file tree Collapse file tree 2 files changed +9
-1
lines changed Expand file tree Collapse file tree 2 files changed +9
-1
lines changed Original file line number Diff line number Diff line change @@ -9,10 +9,19 @@ PATH_TO_SYNC_SPANNER_KEYS = `pwd`/service-account.json
9
9
# Assumes you've cloned the server-syncstorage repo locally into a peer dir.
10
10
# https://github.com/mozilla-services/server-syncstorage
11
11
PATH_TO_GRPC_CERT = ../server-syncstorage/local/lib/python2.7/site-packages/grpc/_cython/_credentials/roots.pem
12
+ INSTALL_STAMP := .install.stamp
13
+ POETRY := $(shell command -v poetry 2> /dev/null)
12
14
13
15
SRC_ROOT = $(shell pwd)
14
16
PYTHON_SITE_PACKGES = $(shell $(SRC_ROOT ) /venv/bin/python -c "from distutils.sysconfig import get_python_lib; print(get_python_lib() )")
15
17
18
+ .PHONY : install
19
+ install : $(INSTALL_STAMP ) # # Install dependencies with poetry
20
+ $(INSTALL_STAMP ) : pyproject.toml poetry.lock
21
+ @if [ -z $( POETRY) ]; then echo " Poetry could not be found. See https://python-poetry.org/docs/" ; exit 2; fi
22
+ $(POETRY ) install
23
+ touch $(INSTALL_STAMP )
24
+
16
25
clippy_mysql :
17
26
# Matches what's run in circleci
18
27
cargo clippy --workspace --all-targets --no-default-features --features=syncstorage-db/mysql --features=py_verifier -- -D warnings
Original file line number Diff line number Diff line change @@ -21,7 +21,6 @@ mypy = "^1.10.1"
21
21
pydocstyle = " ^6.3.0"
22
22
bandit = " ^1.7.9"
23
23
24
-
25
24
[build-system ]
26
25
requires = [" poetry-core" ]
27
26
build-backend = " poetry.core.masonry.api"
You can’t perform that action at this time.
0 commit comments