pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/net/py-moto py-moto: updated to 4.0.8



details:   https://anonhg.NetBSD.org/pkgsrc/rev/0cbcca30cf35
branches:  trunk
changeset: 387310:0cbcca30cf35
user:      adam <adam%pkgsrc.org@localhost>
date:      Wed Oct 26 12:58:04 2022 +0000

description:
py-moto: updated to 4.0.8

4.0.8

General:
    * Unpins the werkzeug-dependency - Moto now works with werkzeug==2.2.2
    * Fixes the Docker-build to run on M1 Macbooks.

New Services:
    * ServiceQuotas:
        * get_service_quota()
        * list_aws_default_service_quotas()

New Methods:
    * CloudFront: list_invalidations()
    * RDS: modify_db_cluster()

Miscellaneous:
    * Lambda:delete_function() - fixed an issue where the wrong Function would be deleted when providing a qualifier
    * ECR:put_image() now removes any existing images that have the provided tag
    * IAM:detach_user/group/role_policy() now throws the correct error message when the policy is not attached in the first place
    * S3:list_object_versions(): Fix delimiter to take prefix into account
    * S3: Now closes file handles as early as possible when deleting files/multipart uploads
    * Sagamaker:describe_training_job() now throws the correct exception when trying to explain a non-existing job

diffstat:

 net/py-moto/ALTERNATIVES |    2 +-
 net/py-moto/Makefile     |   32 +-
 net/py-moto/PLIST        |  680 ++++++++++++++++++++++++++++++++++++++++------
 net/py-moto/distinfo     |    8 +-
 4 files changed, 610 insertions(+), 112 deletions(-)

diffs (truncated from 1011 to 300 lines):

diff -r 60f33773f309 -r 0cbcca30cf35 net/py-moto/ALTERNATIVES
--- a/net/py-moto/ALTERNATIVES  Wed Oct 26 12:52:34 2022 +0000
+++ b/net/py-moto/ALTERNATIVES  Wed Oct 26 12:58:04 2022 +0000
@@ -1,1 +1,1 @@
-bin/moto_server @PREFIX@/bin/moto_server@PYVERSSUFFIX@
+bin/moto_server @PREFIX@/bin/moto_server-@PYVERSSUFFIX@
diff -r 60f33773f309 -r 0cbcca30cf35 net/py-moto/Makefile
--- a/net/py-moto/Makefile      Wed Oct 26 12:52:34 2022 +0000
+++ b/net/py-moto/Makefile      Wed Oct 26 12:58:04 2022 +0000
@@ -1,6 +1,6 @@
-# $NetBSD: Makefile,v 1.8 2022/10/19 13:56:32 nia Exp $
+# $NetBSD: Makefile,v 1.9 2022/10/26 12:58:04 adam Exp $
 
-DISTNAME=      moto-3.0.3
+DISTNAME=      moto-4.0.8
 PKGNAME=       ${PYPKGPREFIX}-${DISTNAME}
 CATEGORIES=    net devel python
 MASTER_SITES=  ${MASTER_SITE_PYPI:=m/moto/}
@@ -11,40 +11,40 @@
 LICENSE=       apache-2.0
 
 DEPENDS+=      ${PYPKGPREFIX}-boto3>=1.9.201:../../net/py-boto3
-DEPENDS+=      ${PYPKGPREFIX}-botocore-[0-9]*:../../net/py-botocore
+DEPENDS+=      ${PYPKGPREFIX}-botocore>=1.12.201:../../net/py-botocore
+DEPENDS+=      ${PYPKGPREFIX}-dateutil>=2.1:../../time/py-dateutil
+DEPENDS+=      ${PYPKGPREFIX}-jinja2>=2.10.1:../../textproc/py-jinja2
+DEPENDS+=      ${PYPKGPREFIX}-markupsafe>=2.0.1:../../textproc/py-markupsafe
+DEPENDS+=      ${PYPKGPREFIX}-pytz-[0-9]*:../../time/py-pytz
 DEPENDS+=      ${PYPKGPREFIX}-requests>=2.5:../../devel/py-requests
+DEPENDS+=      ${PYPKGPREFIX}-responses>=0.13.0:../../net/py-responses
+DEPENDS+=      ${PYPKGPREFIX}-werkzeug>=2.2.2:../../www/py-werkzeug
 DEPENDS+=      ${PYPKGPREFIX}-xmltodict-[0-9]*:../../textproc/py-xmltodict
-DEPENDS+=      ${PYPKGPREFIX}-werkzeug-[0-9]*:../../www/py-werkzeug
-DEPENDS+=      ${PYPKGPREFIX}-pytz-[0-9]*:../../time/py-pytz
-DEPENDS+=      ${PYPKGPREFIX}-dateutil>=2.1:../../time/py-dateutil
-DEPENDS+=      ${PYPKGPREFIX}-responses>=0.9.0:../../net/py-responses
-DEPENDS+=      ${PYPKGPREFIX}-jinja2>=2.10.1:../../textproc/py-jinja2
 # unlisted but used
 DEPENDS+=      ${PYPKGPREFIX}-flask-[0-9]*:../../www/py-flask
 DEPENDS+=      ${PYPKGPREFIX}-pyaml-[0-9]*:../../textproc/py-pyaml
-
 TEST_DEPENDS+= ${PYPKGPREFIX}-test-[0-9]*:../../devel/py-test
 # unlisted but used
+TEST_DEPENDS+= ${PYPKGPREFIX}-flask-cors-[0-9]*:../../www/py-flask-cors
 TEST_DEPENDS+= ${PYPKGPREFIX}-freezegun-[0-9]*:../../devel/py-freezegun
+TEST_DEPENDS+= ${PYPKGPREFIX}-openapi-spec-validator>=0.2.8:../../textproc/py-openapi-spec-validator
 TEST_DEPENDS+= ${PYPKGPREFIX}-sure>=1.2.24:../../devel/py-sure
 
 USE_PKG_RESOURCES=     yes
 
-TEST_ENV+=     PYTHONPATH=${WRKSRC}/build/lib
-
-PYTHON_VERSIONS_INCOMPATIBLE=  27 # py-sure
+PYTHON_VERSIONS_INCOMPATIBLE=  27
 
 .include "../../lang/python/pyversion.mk"
-
-.if ${PYPKGPREFIX} == "py37"
+.if ${_PYTHON_VERSION} == 37
 DEPENDS+=      ${PYPKGPREFIX}-importlib-metadata-[0-9]*:../../devel/py-importlib-metadata
 .endif
 
 post-install:
-       cd ${DESTDIR}${PREFIX}/bin && ${MV} moto_server moto_server${PYVERSSUFFIX} || ${TRUE}
+       cd ${DESTDIR}${PREFIX}/bin && \
+       ${MV} moto_server moto_server-${PYVERSSUFFIX} || ${TRUE}
 
 do-test:
-       cd ${WRKSRC}/tests && ${SETENV} ${TEST_ENV} pytest-${PYVERSSUFFIX}
+       cd ${WRKSRC} && ${SETENV} ${TEST_ENV} pytest-${PYVERSSUFFIX} tests
 
 .include "../../lang/python/egg.mk"
 PYTHON_VERSIONED_DEPENDENCIES+=        cryptography
diff -r 60f33773f309 -r 0cbcca30cf35 net/py-moto/PLIST
--- a/net/py-moto/PLIST Wed Oct 26 12:52:34 2022 +0000
+++ b/net/py-moto/PLIST Wed Oct 26 12:58:04 2022 +0000
@@ -1,5 +1,5 @@
-@comment $NetBSD: PLIST,v 1.3 2022/02/15 15:32:09 wiz Exp $
-bin/moto_server${PYVERSSUFFIX}
+@comment $NetBSD: PLIST,v 1.4 2022/10/26 12:58:04 adam Exp $
+bin/moto_server-${PYVERSSUFFIX}
 ${PYSITELIB}/${EGG_INFODIR}/PKG-INFO
 ${PYSITELIB}/${EGG_INFODIR}/SOURCES.txt
 ${PYSITELIB}/${EGG_INFODIR}/dependency_links.txt
@@ -12,6 +12,9 @@
 ${PYSITELIB}/moto/acm/__init__.py
 ${PYSITELIB}/moto/acm/__init__.pyc
 ${PYSITELIB}/moto/acm/__init__.pyo
+${PYSITELIB}/moto/acm/exceptions.py
+${PYSITELIB}/moto/acm/exceptions.pyc
+${PYSITELIB}/moto/acm/exceptions.pyo
 ${PYSITELIB}/moto/acm/models.py
 ${PYSITELIB}/moto/acm/models.pyc
 ${PYSITELIB}/moto/acm/models.pyo
@@ -24,6 +27,24 @@
 ${PYSITELIB}/moto/acm/utils.py
 ${PYSITELIB}/moto/acm/utils.pyc
 ${PYSITELIB}/moto/acm/utils.pyo
+${PYSITELIB}/moto/amp/__init__.py
+${PYSITELIB}/moto/amp/__init__.pyc
+${PYSITELIB}/moto/amp/__init__.pyo
+${PYSITELIB}/moto/amp/exceptions.py
+${PYSITELIB}/moto/amp/exceptions.pyc
+${PYSITELIB}/moto/amp/exceptions.pyo
+${PYSITELIB}/moto/amp/models.py
+${PYSITELIB}/moto/amp/models.pyc
+${PYSITELIB}/moto/amp/models.pyo
+${PYSITELIB}/moto/amp/responses.py
+${PYSITELIB}/moto/amp/responses.pyc
+${PYSITELIB}/moto/amp/responses.pyo
+${PYSITELIB}/moto/amp/urls.py
+${PYSITELIB}/moto/amp/urls.pyc
+${PYSITELIB}/moto/amp/urls.pyo
+${PYSITELIB}/moto/amp/utils.py
+${PYSITELIB}/moto/amp/utils.pyc
+${PYSITELIB}/moto/amp/utils.pyo
 ${PYSITELIB}/moto/apigateway/__init__.py
 ${PYSITELIB}/moto/apigateway/__init__.pyc
 ${PYSITELIB}/moto/apigateway/__init__.pyo
@@ -180,6 +201,18 @@
 ${PYSITELIB}/moto/batch/utils.py
 ${PYSITELIB}/moto/batch/utils.pyc
 ${PYSITELIB}/moto/batch/utils.pyo
+${PYSITELIB}/moto/batch_simple/__init__.py
+${PYSITELIB}/moto/batch_simple/__init__.pyc
+${PYSITELIB}/moto/batch_simple/__init__.pyo
+${PYSITELIB}/moto/batch_simple/models.py
+${PYSITELIB}/moto/batch_simple/models.pyc
+${PYSITELIB}/moto/batch_simple/models.pyo
+${PYSITELIB}/moto/batch_simple/responses.py
+${PYSITELIB}/moto/batch_simple/responses.pyc
+${PYSITELIB}/moto/batch_simple/responses.pyo
+${PYSITELIB}/moto/batch_simple/urls.py
+${PYSITELIB}/moto/batch_simple/urls.pyc
+${PYSITELIB}/moto/batch_simple/urls.pyo
 ${PYSITELIB}/moto/budgets/__init__.py
 ${PYSITELIB}/moto/budgets/__init__.pyc
 ${PYSITELIB}/moto/budgets/__init__.pyo
@@ -195,6 +228,21 @@
 ${PYSITELIB}/moto/budgets/urls.py
 ${PYSITELIB}/moto/budgets/urls.pyc
 ${PYSITELIB}/moto/budgets/urls.pyo
+${PYSITELIB}/moto/ce/__init__.py
+${PYSITELIB}/moto/ce/__init__.pyc
+${PYSITELIB}/moto/ce/__init__.pyo
+${PYSITELIB}/moto/ce/exceptions.py
+${PYSITELIB}/moto/ce/exceptions.pyc
+${PYSITELIB}/moto/ce/exceptions.pyo
+${PYSITELIB}/moto/ce/models.py
+${PYSITELIB}/moto/ce/models.pyc
+${PYSITELIB}/moto/ce/models.pyo
+${PYSITELIB}/moto/ce/responses.py
+${PYSITELIB}/moto/ce/responses.pyc
+${PYSITELIB}/moto/ce/responses.pyo
+${PYSITELIB}/moto/ce/urls.py
+${PYSITELIB}/moto/ce/urls.pyc
+${PYSITELIB}/moto/ce/urls.pyo
 ${PYSITELIB}/moto/cloudformation/__init__.py
 ${PYSITELIB}/moto/cloudformation/__init__.pyc
 ${PYSITELIB}/moto/cloudformation/__init__.pyo
@@ -267,6 +315,21 @@
 ${PYSITELIB}/moto/cloudwatch/utils.py
 ${PYSITELIB}/moto/cloudwatch/utils.pyc
 ${PYSITELIB}/moto/cloudwatch/utils.pyo
+${PYSITELIB}/moto/codebuild/__init__.py
+${PYSITELIB}/moto/codebuild/__init__.pyc
+${PYSITELIB}/moto/codebuild/__init__.pyo
+${PYSITELIB}/moto/codebuild/exceptions.py
+${PYSITELIB}/moto/codebuild/exceptions.pyc
+${PYSITELIB}/moto/codebuild/exceptions.pyo
+${PYSITELIB}/moto/codebuild/models.py
+${PYSITELIB}/moto/codebuild/models.pyc
+${PYSITELIB}/moto/codebuild/models.pyo
+${PYSITELIB}/moto/codebuild/responses.py
+${PYSITELIB}/moto/codebuild/responses.pyc
+${PYSITELIB}/moto/codebuild/responses.pyo
+${PYSITELIB}/moto/codebuild/urls.py
+${PYSITELIB}/moto/codebuild/urls.pyc
+${PYSITELIB}/moto/codebuild/urls.pyo
 ${PYSITELIB}/moto/codecommit/__init__.py
 ${PYSITELIB}/moto/codecommit/__init__.pyc
 ${PYSITELIB}/moto/codecommit/__init__.pyo
@@ -335,6 +398,21 @@
 ${PYSITELIB}/moto/cognitoidp/utils.py
 ${PYSITELIB}/moto/cognitoidp/utils.pyc
 ${PYSITELIB}/moto/cognitoidp/utils.pyo
+${PYSITELIB}/moto/comprehend/__init__.py
+${PYSITELIB}/moto/comprehend/__init__.pyc
+${PYSITELIB}/moto/comprehend/__init__.pyo
+${PYSITELIB}/moto/comprehend/exceptions.py
+${PYSITELIB}/moto/comprehend/exceptions.pyc
+${PYSITELIB}/moto/comprehend/exceptions.pyo
+${PYSITELIB}/moto/comprehend/models.py
+${PYSITELIB}/moto/comprehend/models.pyc
+${PYSITELIB}/moto/comprehend/models.pyo
+${PYSITELIB}/moto/comprehend/responses.py
+${PYSITELIB}/moto/comprehend/responses.pyc
+${PYSITELIB}/moto/comprehend/responses.pyo
+${PYSITELIB}/moto/comprehend/urls.py
+${PYSITELIB}/moto/comprehend/urls.pyc
+${PYSITELIB}/moto/comprehend/urls.pyo
 ${PYSITELIB}/moto/config/__init__.py
 ${PYSITELIB}/moto/config/__init__.pyc
 ${PYSITELIB}/moto/config/__init__.pyo
@@ -354,6 +432,15 @@
 ${PYSITELIB}/moto/core/__init__.py
 ${PYSITELIB}/moto/core/__init__.pyc
 ${PYSITELIB}/moto/core/__init__.pyo
+${PYSITELIB}/moto/core/base_backend.py
+${PYSITELIB}/moto/core/base_backend.pyc
+${PYSITELIB}/moto/core/base_backend.pyo
+${PYSITELIB}/moto/core/botocore_stubber.py
+${PYSITELIB}/moto/core/botocore_stubber.pyc
+${PYSITELIB}/moto/core/botocore_stubber.pyo
+${PYSITELIB}/moto/core/common_models.py
+${PYSITELIB}/moto/core/common_models.pyc
+${PYSITELIB}/moto/core/common_models.pyo
 ${PYSITELIB}/moto/core/custom_responses_mock.py
 ${PYSITELIB}/moto/core/custom_responses_mock.pyc
 ${PYSITELIB}/moto/core/custom_responses_mock.pyo
@@ -369,12 +456,24 @@
 ${PYSITELIB}/moto/core/responses_custom_registry.py
 ${PYSITELIB}/moto/core/responses_custom_registry.pyc
 ${PYSITELIB}/moto/core/responses_custom_registry.pyo
-${PYSITELIB}/moto/core/urls.py
-${PYSITELIB}/moto/core/urls.pyc
-${PYSITELIB}/moto/core/urls.pyo
 ${PYSITELIB}/moto/core/utils.py
 ${PYSITELIB}/moto/core/utils.pyc
 ${PYSITELIB}/moto/core/utils.pyo
+${PYSITELIB}/moto/databrew/__init__.py
+${PYSITELIB}/moto/databrew/__init__.pyc
+${PYSITELIB}/moto/databrew/__init__.pyo
+${PYSITELIB}/moto/databrew/exceptions.py
+${PYSITELIB}/moto/databrew/exceptions.pyc
+${PYSITELIB}/moto/databrew/exceptions.pyo
+${PYSITELIB}/moto/databrew/models.py
+${PYSITELIB}/moto/databrew/models.pyc
+${PYSITELIB}/moto/databrew/models.pyo
+${PYSITELIB}/moto/databrew/responses.py
+${PYSITELIB}/moto/databrew/responses.pyc
+${PYSITELIB}/moto/databrew/responses.pyo
+${PYSITELIB}/moto/databrew/urls.py
+${PYSITELIB}/moto/databrew/urls.pyc
+${PYSITELIB}/moto/databrew/urls.pyo
 ${PYSITELIB}/moto/datapipeline/__init__.py
 ${PYSITELIB}/moto/datapipeline/__init__.pyc
 ${PYSITELIB}/moto/datapipeline/__init__.pyo
@@ -468,64 +567,67 @@
 ${PYSITELIB}/moto/dynamodb/comparisons.py
 ${PYSITELIB}/moto/dynamodb/comparisons.pyc
 ${PYSITELIB}/moto/dynamodb/comparisons.pyo
-${PYSITELIB}/moto/dynamodb/models.py
-${PYSITELIB}/moto/dynamodb/models.pyc
-${PYSITELIB}/moto/dynamodb/models.pyo
+${PYSITELIB}/moto/dynamodb/exceptions.py
+${PYSITELIB}/moto/dynamodb/exceptions.pyc
+${PYSITELIB}/moto/dynamodb/exceptions.pyo
+${PYSITELIB}/moto/dynamodb/limits.py
+${PYSITELIB}/moto/dynamodb/limits.pyc
+${PYSITELIB}/moto/dynamodb/limits.pyo
+${PYSITELIB}/moto/dynamodb/models/__init__.py
+${PYSITELIB}/moto/dynamodb/models/__init__.pyc
+${PYSITELIB}/moto/dynamodb/models/__init__.pyo
+${PYSITELIB}/moto/dynamodb/models/dynamo_type.py
+${PYSITELIB}/moto/dynamodb/models/dynamo_type.pyc
+${PYSITELIB}/moto/dynamodb/models/dynamo_type.pyo
+${PYSITELIB}/moto/dynamodb/models/utilities.py
+${PYSITELIB}/moto/dynamodb/models/utilities.pyc
+${PYSITELIB}/moto/dynamodb/models/utilities.pyo
+${PYSITELIB}/moto/dynamodb/parsing/__init__.py
+${PYSITELIB}/moto/dynamodb/parsing/__init__.pyc
+${PYSITELIB}/moto/dynamodb/parsing/__init__.pyo
+${PYSITELIB}/moto/dynamodb/parsing/ast_nodes.py
+${PYSITELIB}/moto/dynamodb/parsing/ast_nodes.pyc
+${PYSITELIB}/moto/dynamodb/parsing/ast_nodes.pyo
+${PYSITELIB}/moto/dynamodb/parsing/executors.py
+${PYSITELIB}/moto/dynamodb/parsing/executors.pyc
+${PYSITELIB}/moto/dynamodb/parsing/executors.pyo
+${PYSITELIB}/moto/dynamodb/parsing/expressions.py
+${PYSITELIB}/moto/dynamodb/parsing/expressions.pyc
+${PYSITELIB}/moto/dynamodb/parsing/expressions.pyo
+${PYSITELIB}/moto/dynamodb/parsing/key_condition_expression.py
+${PYSITELIB}/moto/dynamodb/parsing/key_condition_expression.pyc
+${PYSITELIB}/moto/dynamodb/parsing/key_condition_expression.pyo
+${PYSITELIB}/moto/dynamodb/parsing/reserved_keywords.py
+${PYSITELIB}/moto/dynamodb/parsing/reserved_keywords.pyc
+${PYSITELIB}/moto/dynamodb/parsing/reserved_keywords.pyo
+${PYSITELIB}/moto/dynamodb/parsing/reserved_keywords.txt
+${PYSITELIB}/moto/dynamodb/parsing/tokens.py
+${PYSITELIB}/moto/dynamodb/parsing/tokens.pyc
+${PYSITELIB}/moto/dynamodb/parsing/tokens.pyo
+${PYSITELIB}/moto/dynamodb/parsing/validators.py
+${PYSITELIB}/moto/dynamodb/parsing/validators.pyc
+${PYSITELIB}/moto/dynamodb/parsing/validators.pyo
 ${PYSITELIB}/moto/dynamodb/responses.py
 ${PYSITELIB}/moto/dynamodb/responses.pyc
 ${PYSITELIB}/moto/dynamodb/responses.pyo
 ${PYSITELIB}/moto/dynamodb/urls.py
 ${PYSITELIB}/moto/dynamodb/urls.pyc



Home | Main Index | Thread Index | Old Index