-
Notifications
You must be signed in to change notification settings - Fork 27
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
128 changed files
with
2,681 additions
and
2,062 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
#!/bin/bash | ||
# http://redsymbol.net/articles/unofficial-bash-strict-mode/ | ||
set -o errexit # abort on nonzero exitstatus | ||
set -o nounset # abort on unbound variable | ||
set -o pipefail # don't hide errors within pipes | ||
IFS=$'\n\t' | ||
|
||
install() { | ||
bash ci/helpers/ensure_python_pip.bash | ||
make devenv | ||
# shellcheck source=/dev/null | ||
source .venv/bin/activate | ||
pushd packages/aws-library | ||
make install-ci | ||
popd | ||
.venv/bin/pip list --verbose | ||
} | ||
|
||
test() { | ||
# shellcheck source=/dev/null | ||
source .venv/bin/activate | ||
pushd packages/aws-library | ||
make tests-ci | ||
popd | ||
} | ||
|
||
typecheck() { | ||
pushd packages/aws-library | ||
make mypy | ||
popd | ||
} | ||
|
||
# Check if the function exists (bash specific) | ||
if declare -f "$1" >/dev/null; then | ||
# call arguments verbatim | ||
"$@" | ||
else | ||
# Show a helpful error | ||
echo "'$1' is not a known function name" >&2 | ||
exit 1 | ||
fi |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,49 @@ | ||
# | ||
# Targets for DEVELOPMENT of aws Library | ||
# | ||
include ../../scripts/common.Makefile | ||
include ../../scripts/common-package.Makefile | ||
|
||
.PHONY: requirements | ||
requirements: ## compiles pip requirements (.in -> .txt) | ||
@$(MAKE_C) requirements reqs | ||
|
||
|
||
.PHONY: install-dev install-prod install-ci | ||
install-dev install-prod install-ci: _check_venv_active ## install app in development/production or CI mode | ||
# installing in $(subst install-,,$@) mode | ||
pip-sync requirements/$(subst install-,,$@).txt | ||
|
||
|
||
.PHONY: tests tests-ci | ||
tests: ## runs unit tests | ||
# running unit tests | ||
@pytest \ | ||
--asyncio-mode=auto \ | ||
--color=yes \ | ||
--cov-config=../../.coveragerc \ | ||
--cov-report=term-missing \ | ||
--cov=aws_library \ | ||
--durations=10 \ | ||
--exitfirst \ | ||
--failed-first \ | ||
--pdb \ | ||
-vv \ | ||
$(CURDIR)/tests | ||
|
||
tests-ci: ## runs unit tests | ||
# running unit tests | ||
@pytest \ | ||
--asyncio-mode=auto \ | ||
--color=yes \ | ||
--cov-append \ | ||
--cov-config=../../.coveragerc \ | ||
--cov-report=term-missing \ | ||
--cov-report=xml \ | ||
--cov=aws_library \ | ||
--durations=10 \ | ||
--log-date-format="%Y-%m-%d %H:%M:%S" \ | ||
--log-format="%(asctime)s %(levelname)s %(message)s" \ | ||
--verbose \ | ||
-m "not heavy_load" \ | ||
$(CURDIR)/tests |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
# simcore AWS library | ||
|
||
Provides a wrapper around AWS python libraries. | ||
|
||
Requirements to be compatible with the library: | ||
|
||
- only AWS-related code | ||
|
||
|
||
## Installation | ||
|
||
```console | ||
make help | ||
make install-dev | ||
``` | ||
|
||
## Test | ||
|
||
```console | ||
make help | ||
make test-dev | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
0.1.0 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
# | ||
# Targets to pip-compile requirements | ||
# | ||
include ../../../requirements/base.Makefile | ||
|
||
# Add here any extra explicit dependency: e.g. _migration.txt: _base.txt |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
# | ||
# Specifies third-party dependencies for 'aws-library' | ||
# | ||
--constraint ../../../requirements/constraints.txt | ||
--requirement ../../../packages/models-library/requirements/_base.in | ||
--requirement ../../../packages/service-library/requirements/_base.in | ||
--requirement ../../../packages/settings-library/requirements/_base.in | ||
|
||
aioboto3 | ||
aiocache | ||
pydantic[email] | ||
types-aiobotocore[ec2] |
Oops, something went wrong.